[OpenSIPS-Users] Problem on handing prefixed contact number from Cisco GW

joel.oliveira joel.oliveira at interacesso.pt
Fri Apr 1 14:29:54 CEST 2011


Hi all,

Having fought this problem for almost 2 days now. I have the next topology
on my system:

Client (Softphone Eyebeam) -> Opensips 1.6.4-notls with virtual-ip -> Cisco
Media GW -> PSTN

When I place a call from a Client to a number on the PSTN, I prefix the
callee number with a number and deliver it to the the Cisco GW via dynamic
routing module.
(e.g. Client 5555 calls 6666, Opensips adds 44 and delivers the call to
Cisco making the callee number 446666).

Until now there is no problem, the problem starts when Cisco responses to
the Invite, with the 180 Ringing and the 200 OK with the Contact header with
the prefixed number 446666. Well, I don't want my client to see the prefixed
number so I need to change the Contact header of the returning SIP message
before delivering it to the client.

I tryed changing the Contact header on the reply_route but unfortenately
there is no way to access the $ct variable on the reply_route. I also tryed
to have a b2b logic in it, but after testing it I continued to received the
prefixed number in the Contact header.

Does anybody has crossed the same problem as me? If so, does anyone has any
idea on how to solve my problem? Don't get me wrong but the calls are
delivered all right, it's only a matter of information that I don't want to
show to my end-user.

My Opensips script is available here:
http://pastebin.com/qFvfZru5

Thanks in Advance,
Joel Oliveira 

--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Problem-on-handing-prefixed-contact-number-from-Cisco-GW-tp6230782p6230782.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list