[sr-dev] Is it possible to change media path?

Abdul abdul_zu at yahoo.com
Fri Apr 16 20:42:13 CEST 2010


Hi Friends,
I am developing a project to encrypt/decrypt SIP Packet. for this project i made tow service one in client and other at server side.
All going well, now my problem is that SIP Server send media packet to the local IP of SIP Client. Is there anyway to modify the SIP packet which came from client and change the media IP so SIP server should use that IP for media?
in the below packet 89.45.22.xx is the sip server ip.in the below packet 10.0.0.27 is the nat ip for client but the WAN ip is : 79.662.40.91===============================================INVITE sip:800800 at 89.45.22.xx:5060SIP/2.0Via: SIP/2.0/UDP 10.0.0.27;branch=z9hG4bK-b4ab0c9a;rportFrom: 20012 <sip:20012 at 89.45.22.xx:5060>;tag=524054e9b5484c2o0To: <sip:800800 at 89.45.22.xx:5060>Call-ID: 3c7ca935-2b155ce6 at 10.0.0.27CSeq: 101 INVITEMax-Forwards: 70Contact: 20012 <sip:20012 at 10.0.0.27>Expires: 240User-Agent: Linksys/PAP2-3.1.22(LS)Content-Length: 247Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFERSupported: x-sipura, replacesContent-Type: application/sdp
v=0o=- 412184 412184 IN IP4 10.0.0.27s=-c=IN IP4 10.0.0.27t=0 0m=audio 16410 RTP/AVP 4 100 101a=rtpmap:4 G723/8000a=rtpmap:100 NSE/8000a=fmtp:100 192-193a=rtpmap:101 telephone-event/8000a=fmtp:101 0-15a=ptime:30a=sendrecv
In this above packet, which value should i change, before sending to the SIP server so SIP server can send media direct to the client without passing to our service? 
I will appreciate for your kind of guides and help.
BR,


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20100416/7a57fd3e/attachment.htm>


More information about the sr-dev mailing list