⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__osip__fsm.html

📁 关于OSIP协议栈开发的一个很有用的东东~~~
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<br>&nbsp;&nbsp;<a class="el" href="group__oSIP__FSM.html#gga76a139">OSIP_NIST_STATUS_2XX_SENT_AGAIN</a>, <a class="el" href="group__oSIP__FSM.html#gga76a140">OSIP_NIST_STATUS_3XX_SENT</a>, <a class="el" href="group__oSIP__FSM.html#gga76a141">OSIP_NIST_STATUS_4XX_SENT</a>, <a class="el" href="group__oSIP__FSM.html#gga76a142">OSIP_NIST_STATUS_5XX_SENT</a>, <br>&nbsp;&nbsp;<a class="el" href="group__oSIP__FSM.html#gga76a143">OSIP_NIST_STATUS_6XX_SENT</a>, <a class="el" href="group__oSIP__FSM.html#gga76a144">OSIP_NIST_STATUS_3456XX_SENT_AGAIN</a>, <a class="el" href="group__oSIP__FSM.html#gga76a145">OSIP_MESSAGE_CALLBACK_COUNT</a><br> }</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga77">osip_kill_callback_type</a> { <br>&nbsp;&nbsp;<a class="el" href="group__oSIP__FSM.html#gga77a146">OSIP_ICT_KILL_TRANSACTION</a>, <a class="el" href="group__oSIP__FSM.html#gga77a147">OSIP_IST_KILL_TRANSACTION</a>, <a class="el" href="group__oSIP__FSM.html#gga77a148">OSIP_NICT_KILL_TRANSACTION</a>, <a class="el" href="group__oSIP__FSM.html#gga77a149">OSIP_NIST_KILL_TRANSACTION</a>, <br>&nbsp;&nbsp;<a class="el" href="group__oSIP__FSM.html#gga77a150">OSIP_KILL_CALLBACK_COUNT</a><br> }</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga78">osip_transport_error_callback_type</a> { <br>&nbsp;&nbsp;<a class="el" href="group__oSIP__FSM.html#gga78a151">OSIP_ICT_TRANSPORT_ERROR</a>, <a class="el" href="group__oSIP__FSM.html#gga78a152">OSIP_IST_TRANSPORT_ERROR</a>, <a class="el" href="group__oSIP__FSM.html#gga78a153">OSIP_NICT_TRANSPORT_ERROR</a>, <a class="el" href="group__oSIP__FSM.html#gga78a154">OSIP_NIST_TRANSPORT_ERROR</a>, <br>&nbsp;&nbsp;<a class="el" href="group__oSIP__FSM.html#gga78a155">OSIP_TRANSPORT_ERROR_CALLBACK_COUNT</a><br> }</td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga16">osip_set_message_callback</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, int type, <a class="el" href="group__oSIP__FSM.html#ga11">osip_message_cb_t</a> cb)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga17">osip_set_kill_transaction_callback</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, int type, <a class="el" href="group__oSIP__FSM.html#ga12">osip_kill_transaction_cb_t</a> cb)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga18">osip_set_transport_error_callback</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, int type, <a class="el" href="group__oSIP__FSM.html#ga13">osip_transport_error_cb_t</a> cb)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga19">osip_transaction_init</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> **transaction, <a class="el" href="group__oSIP__FSM.html#ga2">osip_fsm_type_t</a> ctx_type, <a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, <a class="el" href="structosip__message.html">osip_message_t</a> *request)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga20">osip_transaction_free</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga21">osip_transaction_free2</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga22">osip_ict_set_destination</a> (<a class="el" href="structosip__ict.html">osip_ict_t</a> *ict, char *destination, int port)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga23">osip_nict_set_destination</a> (<a class="el" href="structosip__nict.html">osip_nict_t</a> *nict, char *destination, int port)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga24">osip_transaction_add_event</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction, <a class="el" href="structosip__event.html">osip_event_t</a> *evt)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga25">osip_transaction_execute</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction, <a class="el" href="structosip__event.html">osip_event_t</a> *evt)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga26">osip_transaction_set_your_instance</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction, void *instance)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga27">osip_transaction_get_your_instance</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga28">osip_transaction_get_destination</a> (<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *transaction, char **ip, int *port)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga29">osip_init</a> (<a class="el" href="structosip.html">osip_t</a> **<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga30">osip_release</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga31">osip_set_application_context</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, void *pointer)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga32">osip_get_application_context</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga33">osip_remove_transaction</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, <a class="el" href="structosip__transaction.html">osip_transaction_t</a> *ict)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga34">osip_ict_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga35">osip_ist_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga36">osip_nict_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga37">osip_nist_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga38">osip_timers_gettimeout</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, struct timeval *lower_tv)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga39">osip_timers_ict_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga40">osip_timers_ist_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga41">osip_timers_nict_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga42">osip_timers_nist_execute</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structosip__transaction.html">osip_transaction_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga43">osip_transaction_find</a> (<a class="el" href="structosip__list.html">osip_list_t</a> *transactions, <a class="el" href="structosip__event.html">osip_event_t</a> *evt)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga44">osip_find_transaction_and_add_event</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, <a class="el" href="structosip__event.html">osip_event_t</a> *evt)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structosip__transaction.html">osip_transaction_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga45">osip_create_transaction</a> (<a class="el" href="structosip.html">osip_t</a> *<a class="el" href="structosip.html">osip</a>, <a class="el" href="structosip__event.html">osip_event_t</a> *evt)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structosip__event.html">osip_event_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga46">osip_parse</a> (char *buf, size_t length)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structosip__event.html">osip_event_t</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga47">osip_new_outgoing_sipmessage</a> (<a class="el" href="structosip__message.html">osip_message_t</a> *sip)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga48">osip_event_free</a> (<a class="el" href="structosip__event.html">osip_event_t</a> *event)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__FSM.html#ga49">osip_set_cb_send_message</a> (<a class="el" href="structosip.html">osip_t</a> *cf, int(*cb)(<a class="el" href="structosip__transaction.html">osip_transaction_t</a> *, <a class="el" href="structosip__message.html">osip_message_t</a> *, char *, int, int))</td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="ga50" doxytag="osip.h::DEFAULT_T1" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define DEFAULT_T1&nbsp;&nbsp;&nbsp;500          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>You can re-define the default value for T1. (T1 is defined in rfcxxxx) The default value is 500ms.     </td>  </tr></table><a class="anchor" name="ga51" doxytag="osip.h::DEFAULT_T2" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define DEFAULT_T2&nbsp;&nbsp;&nbsp;4000          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>You can re-define the default value for T2. (T2 is defined in rfcxxxx) The default value is 4000ms.     </td>  </tr></table><a class="anchor" name="ga52" doxytag="osip.h::DEFAULT_T4" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define DEFAULT_T4&nbsp;&nbsp;&nbsp;5000          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>You can re-define the default value for T4. (T1 is defined in rfcxxxx) The default value is 5000ms.     </td>  </tr></table><a class="anchor" name="ga65" doxytag="osip.h::EVT_IS_INCOMINGMSG" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define EVT_IS_INCOMINGMSG          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">event&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><b>Value:</b><pre class="fragment"><div>(event-&gt;type&gt;=<a class="code" href="group__oSIP__FSM.html#gga74a69">RCV_REQINVITE</a> \                                       &amp;&amp;event-&gt;type&lt;=<a class="code" href="group__oSIP__FSM.html#gga74a74">RCV_STATUS_3456XX</a>)</div></pre>Check if the sipevent is of an incoming SIP MESSAGE. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>event</em>&nbsp;</td><td>the event to check. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga66" doxytag="osip.h::EVT_IS_INCOMINGREQ" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define EVT_IS_INCOMINGREQ          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">event&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><b>Value:</b><pre class="fragment"><div>(<a class="code" href="group__oSIP__FSM.html#ga53">EVT_IS_RCV_INVITE</a>(event) \                                       ||<a class="code" href="group__oSIP__FSM.html#ga54">EVT_IS_RCV_ACK</a>(event) \                                       ||<a class="code" href="group__oSIP__FSM.html#ga55">EVT_IS_RCV_REQUEST</a>(event))</div></pre>Check if the sipevent is of an incoming SIP REQUEST. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>event</em>&nbsp;</td><td>the event to check. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga67" doxytag="osip.h::EVT_IS_INCOMINGRESP" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define EVT_IS_INCOMINGRESP          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">event&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -