Trying to write a proxy server.. any help will be appreciated.

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

 




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>
From:
"test1"<sip:test 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 at 192.168.1.101>;tag=tag=8837f779
Call-ID: MTgxNDVjZmRlNWZhNzZjYjkyMjMyZTZiYmJlNWE4OTU.
To:
"test1"<sip:test at 192.168.1.101>;tag=130353091825
Proxy(-Authenticate) : DIGEST(realm = "my proxy", nonce =
"123694880513180607203532510510")
Content-Length: 0





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090313/d4928b7c/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