Thanks Benny, I changed the URI in Contact Header and it is now working. I have a problem when I try to hang-up the call. I adapted pjsua_call_hangup for my app but when pjsip_dlg_dec_lock(dlg) is called, I get : myapp: ../src/pj/os_core_unix.c:1104: pj_mutex_unlock: Assertion > `mutex->owner == pj_thread_this()' failed. > Aborted > It seems that my thread is not the owner. But I did not create any other thread ! To receive input from user, I use the select function, could it be why it is complaining ? Cheers, Damien On Wed, Jul 16, 2008 at 5:53 PM, Benny Prijono <bennylp at pjsip.org> wrote: > On Wed, Jul 16, 2008 at 4:41 PM, Damien Herraud <d.herraud at gmail.com> > wrote: > >> Hi, >> >> Now that SDP negociation and sending an INVITE method is working for my >> app, I have an issue with the ACK request. >> >> Indeed when I try to make a call between two user agents both built with >> my app, INVITE is sent correctly, OK is received but ACK does not reach the >> callee. So the callee sends OK indefinitely. I have captured the packets >> with Wireshark and the main difference between an ACK packet sent by my app >> and an ACK sent by simpleua (which works) is : >> >> simpleua : Request-Line: ACK sip:bob at 137.122.88.181:5060;transport=UDP >> SIP/2.0 >> my app : Request-Line: ACK sip:bob at open-ims.test SIP/2.0 >> >> I don't know why it's different since I reused simpleua code for invite >> dialog (the main difference is that I register on an IMS network with my >> app). >> >> > The request URI in ACK contains the URI in the Contact header that remote > sends in 2xx response, or, the top-most route in case strict route is used. > So just check these two fields. > > > >> >> >> Even more surprising, when I make a call from my app to pjsua, I get a >> message 488 (Not Acceptable Here, this is normal since I don't have the same >> codecs) from pjsua and my app answers with an ACK that reaches its >> destination ! >> >> > ACK for non-2xx response has different rule (it's sent to the original > INVITE destination rather than the Contact in the response). > > -benny > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080717/2e4e6c25/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: myapp.c Type: text/x-csrc Size: 23297 bytes Desc: not available Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080717/2e4e6c25/attachment-0001.bin