Hi Harry as you saied , pjsip will auto create connectio directly to to UAS , i check pjsip trace log found this section : 13:26:10.525 tcpc056169C4 TCP client transport created 13:26:10.525 tcpc056169C4 TCP transport 192.168.23.200:1901 is connecting to 192.168.23.138:2624... 13:26:10.525 pjsua_core.c TX 395 bytes Request msg ACK/cseq=25142 (tdta05615970) to TCP 192.168.23.138:2624: ACK sip:87262 at 192.168.23.138:2624;transport=TCP;ob SIP/2.0 Via: SIP/2.0/TCP 192.168.23.200:1901;rport;branch=z9hG4bKPjba749e54db324359b986776680686094;alias Max-Forwards: 70 From: sip:87261@192.168.17.151;tag=22ecfb3b19f946bbba65c62ec98da2ba To: sip:87262 at 192.168.17.151;tag=abf7511075504f05b9c956fbfe46666b Call-ID: 44ec68babf644e4cbe28144126b31d6a CSeq: 25142 ACK Content-Length: 0 the red part mean UAC try to connect to UAS(Bob 192.168.23.138:2624), unfortunatly it seem doen't work, and the packet can't pass to the network. so how to let pjsip pass through signals just by the proxy ? thanks a lot. Best regards. ???? Harald Radke ????? 2015-03-17 18:21 ???? pjsip ??? [pjsip]Fw: Aw: Re: Re: ??: PJSIP UA2 API lost ack? I forgot to reply to the list...just in case u might be interested (-: Harry Gesendet: Dienstag, 17. M?rz 2015 um 11:13 Uhr Von: "Harald Radke" <harryrat at gmx.de> An: zhuyongwen at made-in-china.com Betreff: Aw: Re: Re: [pjsip]??: PJSIP UA2 API lost ack? Well, so far everything looks correct: I take it that 192.168.17.151 is your proxy Alice: 87261 at 192.168.17.151 Bob: 87262 at 192.168.17.151 So basically 192.168.17.151 is also your sip "domain" Alice has registered herself from: 87261 at 192.168.23.200:2535 Bob has registered himself from: 87262 at 192.168.23.138:5858 So when the INVITE from Alice to Bob goes to the Proxy (192.168.17.151), it will resolve Bob's URI and forward the INVITE to 87262 at 192.168.23.138:5858. Bob sends the Trying/Ringinh/OK via the route the INVITE came, that is via 192.168.17.151. Alice now sends the ACK directly to Bob ,since with the OK she knows the Contact address, which is used for all subsequent Requests (including the ACK), so it bypasses 192.168.17.151 and goes directly to 87262 at 192.168.23.138:5858. So, if you wrote the SIP code for 192.168.17.151, you are right, you dont see the ACK (there) (-: Regards, Harry Gesendet: Dienstag, 17. M?rz 2015 um 10:26 Uhr Von: zhuyongwen at made-in-china.com An: harryrat <harryrat at gmx.de> Cc: pjsip <pjsip at lists.pjsip.org> Betreff: Re: Re: [pjsip]??: PJSIP UA2 API lost ack? Hi , thank your answer first , please check the ack signal below ACK sip:87262 at 192.168.23.138:5774;transport=TCP;ob SIP/2.0 Via: SIP/2.0/TCP 192.168.23.200:2503;rport;branch=z9hG4bKPj32d7f3c7b48c414bb2426f2bc4eef931;alias Max-Forwards: 70 From: sip:87261@192.168.17.151;tag=a30e9922b5a44411bcc832acf0557f58 To: sip:87262 at 192.168.17.151;tag=1b2d0905aed44dd1b8a35f3e6243554b Call-ID: f8cd6035b2d74e92a6fe2f7043313c7c CSeq: 32447 ACK Content-Length: 0 is the red part wrong ? it should like this "87262 at 192.168.17.171:5060" or not. Best regards. ???? Harald Radke ????? 2015-03-17 16:43 ???? pjsip ??? Re: [pjsip]??: PJSIP UA2 API lost ack? Hi, could you post INVITE, any provisional answer and the OK as well? Regards, Harry Gesendet: Dienstag, 17. M?rz 2015 um 09:36 Uhr Von: zhuyongwen at made-in-china.com An: pjsip <pjsip at lists.pjsip.org> Betreff: [pjsip] ??: PJSIP UA2 API lost ack? i have debug the pjsip source file ,found the pjsip had sent out ACK like below : ACK sip:87262 at 192.168.23.138:5774;transport=TCP;ob SIP/2.0 Via: SIP/2.0/TCP 192.168.23.200:2503;rport;branch=z9hG4bKPj32d7f3c7b48c414bb2426f2bc4eef931;alias Max-Forwards: 70 From: sip:87261@192.168.17.151;tag=a30e9922b5a44411bcc832acf0557f58 To: sip:87262 at 192.168.17.151;tag=1b2d0905aed44dd1b8a35f3e6243554b Call-ID: f8cd6035b2d74e92a6fe2f7043313c7c CSeq: 32447 ACK Content-Length: 0 but in my application i use tcp connection with 192.168.17.151 as my proxy ? in this ack signal, obviously it miss the router hdr , so the ack messge can't sent out to proxy ? so my question is , why the other signal will include the router hdr, why ack without the hdr ? it's a pjsip bug ? ???? zhuyongwen at made-in-china.com ????? 2015-03-17 15:37 ???? pjsip ??? PJSIP UA2 API lost ack? hi all, My application used pjsip ua2 api to deal with sip message, in the scenario i answer the coming call ,and voice bridge was connect success, but the UAS will timeout for a moment . i check the sip signal message, when answer 200 ok , UAC should send ACK signal, but it seem doen't send out by pjsip ? is there something i missing when i answer the call ? or UAC should do something after received 200 ok signal ? best regards! _______________________________________________ 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/20150318/c0282362/attachment.html>