simple UA and transmit data.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I'm updating the simpleUA example to be able to manage SIP Early Message.
 
I need too add an header on the PRACK message generate automatically by INVITE session intiated with PJSIP_INV_REQUIRE_100REL option.
 
So I have added a function on_tx_response and set it in the pjsip_module. Compilation is ok, but during execution, when PJSIP gnerate the first response (183), an error occurs :
 
 16:58:12.010   dlg0x9498fbc Initial answer Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010   inv0x9498fbc Sending Response msg 183/INVITE/cseq=14875 (tdta0x949fe80) 16:58:12.010   dlg0x9498fbc Reliable response Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) created 16:58:12.010   tsx0x949e2ac Sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0) in state Trying 16:58:12.010   tsx0x949e2ac Error sending Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0): Err=1 (Unknown error 1) 16:58:12.010  sip_resolve.c Target '127.0.0.1:5065' type=UDP resolved to '127.0.0.1:5065' type=UDP (UDP transport) 16:58:12.010   tsx0x949e2ac Failed to send Response msg 183/INVITE/cseq=14875 (tdta0x94a50b0)! err=1 (Unknown error 1) 16:58:12.010   tsx0x949e2ac State changed from Trying to Terminated, event=TRANSPORT_ERROR 16:58:12.010   dlg0x9498fbc Transaction tsx0x949e2ac state changed to Terminated 16:58:12.010     simpleua.c Call DISCONNECTED [reason=503 (Service Unavailable)] 16:58:12.010     simpleua.c One call completed, application quitting...simpleua_early: ../src/pjsip-ua/sip_100rel.c:353: pjsip_100rel_end_session: Assertion `pj_list_empty(&dd->uas_state->tx_data_list)' failed.Abandon
 
 
 
But my function is very simple (just trying add it before do anything else) :
 
static pj_status_t on_tx_response( pjsip_tx_data *tdata ){
 return PJ_TRUE;}
 
I don't uderstand why.
 
Thanks by advance for the responses.
 
C?dric.
_________________________________________________________________
Email envoy? avec Windows Live Hotmail. Dites adieux aux spam et virus, passez ? Hotmail?! C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080916/5f4cb523/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux