Thanks, I'll try it soon. Date: Sun, 21 Sep 2008 23:59:19 +0100From: bennylp@pjsip.orgTo: pjsip at lists.pjsip.orgSubject: Re: simple UA and transmit data. On Tue, Sep 16, 2008 at 4:13 PM, cedric leveque <levequecedric at hotmail.com> wrote: 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. You need to return PJ_SUCCESS and not PJ_TRUE (it's pj_status_t and not pj_bool_t). -benny Thanks by advance for the responses. C?dric. Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur votre mobile ? la r?ponse en vid?o la r?ponse en vid?o_______________________________________________Visit our blog: http://blog.pjsip.orgpjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ Installez gratuitement les 20 ?m?ticones Windows Live Messenger les plus fous ! Cliquez ici ! http://www.emoticones-messenger.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080923/b6b1f3bd/attachment-0001.html