Hi Yes that would work if I set the registrar as that ip address. My question is that is there anyway pjsip can do that automatically upon receiving the 301 message. Regards Deepak PS: I'm building for symbian. On Wed, Nov 26, 2008 at 3:39 PM, Gang Liu <gangban.lau at gmail.com> wrote: > you can ask pjsua to register to new server 47.103.142.59 when you get > 301. > > regards, > Gang > > > On Wed, Nov 26, 2008 at 5:19 PM, Deepak Sebastian < > deepak.sebastian at gmail.com> wrote: > >> Hi >> >> I'm trying to register with a server that requires proxy authentication. >> But the initial register gives a 301 moved permanently which when >> encountered by pjsip gives a register failed immediately. Are there any >> #defs i need to add to get this working. Here is the log: >> >> Here is the part of the log: >> >> SIP/2.0 301 Moved Permanently >> From: <sip:raptor1@xxxxxxxxxxxxx <sip%3Araptor1 at techtrial.com> >> >;tag=fLzhpswrJoaaEhSUd04p2vuxwNUoayJo >> To: <sip:raptor1 at techtrial.com <sip%3Araptor1 at techtrial.com> >> >;tag=173923894 >> Call-ID: R0iFqYB6pKbe3tZLgm4hOxMzzvcsSB6Y >> CSeq: 14026 REGISTER >> v: SIP/2.0/UDP 47.152.236.244:5066 >> ;rport=5066;branch=z9hG4bKPjGjixPkNsePKNjHIvJrTJNRR7a7zbmMwG >> Contact: <sip:techtrial.com:5060;maddr=47.103.142.59;transport=udp> >> >> >> --end msg-- >> 07:13:54.584 tsx0x39ac2028 Incoming Response msg 301/REGISTER/cseq=14026 >> (rdata0x39ab7520) in state Proceeding >> 07:13:54.584 tsx0x39ac2028 State changed from Proceeding to Completed, >> event=RX_MSG >> 07:13:54.589 pjsua_acc.c SIP registration failed, status=301 (Moved >> Permanently) >> 07:13:54.589 symbian_ua.cpp Registration failed! >> 07:13:59.921 tsx0x39ac2028 Timeout timer event >> 07:13:59.921 tsx0x39ac2028 State changed from Completed to Terminated, >> event=TIMER >> 07:13:59.937 tsx0x39ac2028 Timeout timer event >> 07:13:59.937 tsx0x39ac2028 State changed from Terminated to Destroyed, >> event=TIMER >> 07:13:59.937 tdta0x39ac3d40 Destroying txdata Request msg >> REGISTER/cseq=14026 (tdta0x39ac3d40) >> 07:13:59.942 tsx0x39ac2028 Transaction destroyed! >> 07:14:58.957 pjsua_acc.c Account id 1 deleted >> 07:14:58.957 pjsua_acc.c Account sip:raptor1 at 47.154.146.49<sip%3Araptor1 at 47.154.146.49>added with id 1 >> 07:14:58.957 endpoint Request msg REGISTER/cseq=29631 (tdta0x39acd33c) >> created. >> 07:14:58.957 tsx0x39ac351c Transaction created for Request msg >> REGISTER/cseq=29632 (tdta0x39acd33c) >> 07:14:58.957 tsx0x39ac351c Sending Request msg REGISTER/cseq=29632 >> (tdta0x39acd33c) in state Null >> 07:14:58.957 sip_resolve.c Target '47.154.146.49:0' type=Unspecified >> resolved to '47.154.146.49:5060' type=UDP (UDP transport) >> 07:14:58.957 pjsua_core.c TX 397 bytes Request msg REGISTER/cseq=29632 >> (tdta0x39acd33c) to UDP 47.154.146.49:5060: >> >> Regards >> >> Deepak >> >> >> _______________________________________________ >> 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 >> >> > > _______________________________________________ > 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/20081126/3c56c06b/attachment.html>