Hi guys First I want to apolagise with Benny about my last post. I didn't told what version of pjsip I was using and that problemn seens to bee with something with my nat. forgive-me Benny. I want to make a question. I using the pjsip in trunk (17 of setember) The struct of the login was changed in the openser (1.3.2) that I am using. First I just have to set the registrar, username and password and the login occurs, but now the thing is diferent I have to user my sip url in the way sip:12014778 at azzu and the registrar like sip:azzu azzu is not in a dns it is in the proxy so I have to set the proxy to have the challange and then the register works using the twinkle I can sucessfully register. I configured my account setting domain as azzu and the outbound proxy as proxy.azzu.com.br i left the registrar with no value and just put the username and password using the wireshark i intercept the packages and they look like this: first registrar for twinkle: Via: SIP/2.0/UDP 192.168.0.13;rport;branch=z9hG4bKxsylhiem Max-Forwards: 70 To: "Lucas Galego" <sip:12014778 at azzu> From: "Lucas Galego" <sip:12014778@azzu>;tag=trggn Call-ID: dhvmpirdinslvlz at 192.168.0.13 CSeq: 103 REGISTER Contact: <sip:12014778 at 192.168.0.13 <sip%3A12014778 at 192.168.0.13> >;expires=3600 Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE User-Agent: Twinkle/1.1 Content-Length: 0 then I send the trying: Via: SIP/2.0/UDP 192.168.0.13;rport=1210;branch=z9hG4bKxsylhiem;received= 189.15.64.38 To: "Lucas Galego" <sip:12014778 at azzu> From: "Lucas Galego" <sip:12014778@azzu>;tag=trggn Call-ID: dhvmpirdinslvlz at 192.168.0.13 CSeq: 103 REGISTER Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0 this two packages was sended to the address of my outbound proxy then I received a 401 return wich mades the chalange: Via: SIP/2.0/UDP 192.168.0.13;rport=1210;branch=z9hG4bKxsylhiem;received= 189.15.64.38 To: "Lucas Galego" <sip:12014778 at azzu >;tag=5efbf602a0fddeb6924e2fae5433211c.b6a6 From: "Lucas Galego" <sip:12014778@azzu>;tag=trggn Call-ID: dhvmpirdinslvlz at 192.168.0.13 CSeq: 103 REGISTER WWW-Authenticate: Digest realm="azzu", nonce="48d11977224b9d1919618dd0f5f6c5c98eb0f979" Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0 so I send the register again with the hashs of the chalange: ~\NE@@=0qkREGISTER sip:azzu SIP/2.0 Via: SIP/2.0/UDP 192.168.0.13;rport;branch=z9hG4bKjjmzbike Max-Forwards: 70 To: "Lucas Galego" <sip:12014778 at azzu> From: "Lucas Galego" <sip:12014778@azzu>;tag=trggn Call-ID: dhvmpirdinslvlz at 192.168.0.13 CSeq: 104 REGISTER Contact: <sip:12014778 at 192.168.0.13 <sip%3A12014778 at 192.168.0.13> >;expires=3600 Authorization: Digest username="12014778",realm="azzu",nonce="48d11977224b9d1919618dd0f5f6c5c98eb0f979",uri="sip:azzu",response="ad3fe38a6cad8c95daf5404cfca6af0c",algorithm=MD5 Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE User-Agent: Twinkle/1.1 Content-Length: 0 And then I sucessfuly received an OK. I tried to make the same configuration using pjsua. I configured my accout the strings sipurl: sip:12014778 at azzu registrar: sip:azzu realm: * username: 12014778 password: <my password> In my first try I set the outbound option in the start using my url, sip: proxy.azzu.com.br but when it send my register packages it use sip:proxy.azzu.com.br insted of sip:azzu the package contents: REGISTER sip:proxy.azzu.com.br SIP/2.0 Via: SIP/2.0/UDP 192.168.0.13:5060 ;rport;branch=z9hG4bKPj0fe4819e-0322-4bbf-927c-6c5df22794a7 Max-Forwards: 70 From: <sip:12014778@azzu>;tag=2d67cd8b-b510-4c0b-b21b-f8fb880146f8 To: <sip:12014778 at azzu> Call-ID: 936fa4b1-6cd9-4033-9475-ff8047362f45 CSeq: 52424 REGISTER User-Agent: PJSUA v1.0-rc2-trunk/i686-pc-linux-gnu Contact: <sip:12014778 at 192.168.0.13:5060> Expires: 300 Route: <sip:azzu> Content-Length: 0 so I send the trying: Via: SIP/2.0/UDP 192.168.0.13:5060 ;rport=1210;branch=z9hG4bKPj0fe4819e-0322-4bbf-927c-6c5df22794a7;received= 189.15.64.38 From: <sip:12014778@azzu>;tag=2d67cd8b-b510-4c0b-b21b-f8fb880146f8 To: <sip:12014778 at azzu> Call-ID: 936fa4b1-6cd9-4033-9475-ff8047362f45 CSeq: 52424 REGISTER Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0 and got the 401, but when i send the register it wont work and I enter in a loop until I got the erro: maximum number of stale retries exceeded so I tried to use the parameter proxy instead of the parameter outbound with this it sends the registrar with the value sip:azzu but it dont send to the ip of my proxy setted in the parameter so I stay only sending a lot of register until the time out: the register package: Via: SIP/2.0/UDP 192.168.0.13:5060 ;rport;branch=z9hG4bKPj08be6445-251e-497c-8f8e-06188fd035ae Max-Forwards: 70 From: <sip:12014778@azzu>;tag=5930e35a-38a7-4f10-a46d-bf4daec614da To: <sip:12014778 at azzu> Call-ID: faf519c9-ede8-4c9a-8d3d-dbcec9cb47f0 CSeq: 44857 REGISTER User-Agent: PJSUA v1.0-rc2-trunk/i686-pc-linux-gnu Contact: <sip:12014778 at 192.168.0.13:5060> Expires: 300 Content-Length: 0 What can I do? I'm doing anything wrong? Thanks for the help since now -- Lucas Rosa Galego -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080917/2792f948/attachment.html