Fw: Aw: Re: Re: 回复: PJSIP UA2 API lost ack?

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

 



and by the way, my register signal was like below :


REGISTER sip:192.168.17.151:5060 SIP/2.0
Via: SIP/2.0/TCP 192.168.23.138:1286;rport;branch=z9hG4bKPjc295788c07ac457f8ac3c556cf88d635;alias
Route: <sip:192.168.17.151:5060;transport=tcp;lr>
Max-Forwards: 70
From: <sip:87262@192.168.17.151>;tag=747186f1769741eba8493415ff4050a4
To: <sip:87262 at 192.168.17.151>
Call-ID: c62c5d15706d47a0a3fa5c4638768ebe
CSeq: 44041 REGISTER
Supported: outbound, path
Contact: <sip:87262 at 192.168.23.138:1286;transport=TCP;ob>;+sip.ice;reg-id=1;+sip.instance="<urn:uuid:00000000-0000-0000-0000-0000af531c00>"
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Proxy-Authorization: Digest username="87262", nonce="6", uri="sip:192.168.17.151:5060", response="ba312939dfaa60965cba3a95b1c897b8", algorithm=md5
Content-Length:  0





Best regards.
 
???? zhuyongwen at made-in-china.com
????? 2015-03-18 09:30
???? pjsip
??? Re: [pjsip]Fw: Aw: Re: Re: ??: PJSIP UA2 API lost ack?
Hi Harry,
thx for your remind  and your kinds of help.

as you says in mail, Alice know directly the address of Bob, and will pass the ACK signal directly to Bob, That looks good. 

but  in fact , the ACK signal just printed in log, not sent out to network,  neither proxy nor Bob received the signal.  secondly i 

start wireshark to capture all netwrok packet, and i didn't found any Ack signal out from the Bob machine.

so my question is , in tcp scenario, Aclice directy pass Ack signal to Bob are right ?     and if i wan't all signal pass to proxy (192.168.17.151) ,how could i get this happen ?




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/27949877/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