opensips 2.1 with Topology module replace From and P-Asserted-Identity

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

opensips 2.1 with Topology module replace From and P-Asserted-Identity

bhavik-patel
Hi Guys,

I am using Debian GNU/Linux 7 , opensips 2.1 version with opensips as proxy and multiple freeswitch server.

I am able to success using integration of topology hiding module and seems working fine.

But having issue like topology hiding is not override the IP of opensips to "From" Header and "P-Asserted-Identity".

It still showing freeswitch server IP on opensips server while passing INVITE to provider.

Here is my Invite section.

INVITE sip:1026@XX.XX.XX.165 SIP/2.0.
Via: SIP/2.0/UDP opensips.ip.com:5060;branch=z9hG4bK803d.7bd810c5.0.
Max-Forwards: 67.
From: "28582420" <sip:28582420@145.XXX.XXX.16>;tag=eg1aU6tSy56gj.
To: <sip:1026@XX.XX.XX.165>.
Call-ID: DLGCH_d0UAVzB+aDUIYWRhYXxDSFxkcTN+f0BXW2p5NTEsQ1Va.
CSeq: 77012296 INVITE.
Contact: <sip:provider1@opensips.ip.com;did=8f2.6c50337>.
Expires: 3600.
User-Agent: Voiceplace.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Authorization: Digest username="provider1", realm="prov01", nonce="19c25e24", algorithm=MD5, uri="sip:1026@XX.XX.XX.165", response="94432ef364eb1906696ab1b8d3e8ccc3".
Session-Expires: 1800;refresher=uac.
Min-SE: 120.
Privacy: none.
Content-Type: application/sdp.
Content-Disposition: session.
P-Asserted-Identity: "28582420" <sip:28582420@145.XXX.XXX.16>.



Here seems like Via and contact header replace with opensips ip but not From and P-Asserted-Identity.

145.XXX.XXX.16 = Freeswitch server IP
opensips.ip.com = Opensips IP
XX.XX.XX.165 = our provider IP

How to replace opensips server IP to "From and P-Asserted-Identity".

Can any one have idea how to achieve this ?

Any help or suggestion is appreciate.