For outbound proxy, it is better to write a function to guess SIP UA whether behind NAT or firewall.And mostly you need send back respond to source addr where SIP request come from. For NAT dection function, take a look SER nathelper module. regards, Gang On Sat, Mar 14, 2009 at 6:00 AM, <iajdani at provati.com> wrote: > I am trying to write a outbound proxy server and trying to get some test > going first. But I cant get the X-Lite to receive my response. I tried Via > header and then origination IP and port to send back the response but no > luck. The x-lite log does not show any response received from my server end. > But I can receive the request from X-Lite from the same UDP bindining. > > This is the request I get from X-Lite > > REGISTER sip:192.168.1.101 SIP/2.0 > Via: SIP/2.0/UDP 127.0.0.1:13000 > ;branch=z9hG4bK-d8754z-6e6a4d3eb433e127-1---d8754z-;rport > Max-Forwards: 70 > Contact: <sip:test at 127.0.0.1:13000;rinstance=134f3af566a4e24e> > To: "test1"<sip:test at 192.168.1.101 <sip%3Atest at 192.168.1.101>> > From: "test1"<sip:test@192.168.1.101 <sip%3Atest at 192.168.1.101> > >;tag=8837f779 > Call-ID: MTgxNDVjZmRlNWZhNzZjYjkyMjMyZTZiYmJlNWE4OTU. > CSeq: 1 REGISTER > Expires: 3600 > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, > SUBSCRIBE, INFO > User-Agent: X-Lite release 1100l stamp 47546 > Content-Length: 0 > > > The response i send to 127.0.0.1:13000. I m using same machine for X-lite > and server so 127.0.0.1 should be fine. But I tried with real IP as well. > > > > SIP/2.0 407 Proxy Authentication Required > CSeq: 1 REGISTER > Via: SIP/2.0/UDP 127.0.0.1:13000 > ;branch=z9hG4bK-d8754z-6e6a4d3eb433e127-1---d8754z-;rport > From: "test1"<sip:test@192.168.1.101 <sip%3Atest at 192.168.1.101> > >;tag=tag=8837f779 > Call-ID: MTgxNDVjZmRlNWZhNzZjYjkyMjMyZTZiYmJlNWE4OTU. > To: "test1"<sip:test at 192.168.1.101 <sip%3Atest at 192.168.1.101> > >;tag=130353091825 > Proxy(-Authenticate) : DIGEST(realm = "my proxy", nonce = > "123694880513180607203532510510") > Content-Length: 0 > > > > > > _______________________________________________ > 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/20090316/0df55150/attachment.html>