📄 osip.h
字号:
* @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ict_3xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 4xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ict_4xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 5xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ict_5xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 6xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ict_6xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a retransmission of a final response is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ict_3456xx_received2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a transport error happens. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ict_transport_error (osip_t * cf, void (*cb) (transaction_t *, int error));/* callbacks for ist *//** * Register the callback called when the transaction is deleted. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_kill_transaction (osip_t * cf, void (*cb) (transaction_t *));/** * Register the callback called when an INVITE is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_invite_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an INVITE is received again. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_invite_received2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an ACK is received. * NOTE: This method is only called if the final response was not a 2xx * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_ack_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an ACK is received again. * NOTE: This method is only called if the final response was not a 2xx * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_ack_received2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 1xx SIP message is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_1xx_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 1xx SIP message is sent again. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_1xx_sent2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 2xx SIP message is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_2xx_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 2xx SIP message is sent again. * NOTE: This method is never called because the transaction is destroyed * right after the first 200 OK is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_2xx_sent2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 3xx SIP message is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_3xx_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 4xx SIP message is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_4xx_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 5xx SIP message is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_5xx_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 6xx SIP message is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_6xx_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a final response (not 200) is sent again. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_3456xx_sent2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a transport error happens. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_ist_transport_error (osip_t * cf, void (*cb) (transaction_t *, int error));/* callbacks for nict *//** * Register the callback called when the transaction is deleted. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_kill_transaction (osip_t * cf, void (*cb) (transaction_t *));/** * Register the callback called when an REGISTER is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_register_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an BYE is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_bye_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an OPTIONS is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_options_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an INFO is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_info_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an CANCEL is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_cancel_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an NOTIFY is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_notify_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an SUBSCRIBE is sent. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_subscribe_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an UNKNOWN REQUEST is sent. * NOTE: All SIP request that do not have specific callback * will use this one. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_unknown_sent (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an REQUEST is sent again. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_request_sent2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 1xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_1xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 2xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_2xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 2xx SIP message is received again. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_2xx_received2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 3xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_3xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 4xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_4xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 5xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_5xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a 6xx SIP message is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_6xx_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a final response (not 200) is received again. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_3456xx_received2 (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when a transport error happens. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nict_transport_error (osip_t * cf, void (*cb) (transaction_t *, int error)); /* callbacks for nist *//** * Register the callback called when the transaction is deleted. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_kill_transaction (osip_t * cf, void (*cb) (transaction_t *));/** * Register the callback called when an REGISTER is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_register_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an BYE is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_bye_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an OPTIONS is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_options_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an INFO is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_info_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an CANCEL is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_cancel_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an NOTIFY is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_notify_received (osip_t * cf, void (*cb) (transaction_t *, sip_t *));/** * Register the callback called when an SUBSCRIBE is received. * @param cf The osip element attached to the transaction. * @param cb The method we want to register. */ void osip_setcb_nist_subscribe_received (osip_t * cf,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -