[OpenSIPS-Users] Modifying INVITE header to add phone-context
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Apr 8 15:42:29 CEST 2009
Hi Julian,
a much nicer option is the add_uri_param() function from URI module:
http://www.opensips.org/html/docs/modules/devel/uri.html#id228164
Regards,
Bogdan
Julian Yap wrote:
> I pretty much solved the issue.
>
> This is what I used:
> subst_uri('/^sip:([0-9]+)@(.*)$/sip:\1@\2;phone-context=sip.server.com/i
>
>
> On Tue, Apr 7, 2009 at 4:25 PM, Julian Yap <julianokyap at gmail.com> wrote:
>
>> I have a PSTN gateway which requires a Phone-Context value in the
>> outgoing SIP INVITE message to further apply ISDN NPI/TON details.
>>
>> Here's an example of what I currently have going out to the PSTN gateway:
>> INVITE sip:1234 at sip.server.com:5060;user=phone SIP/2.0.
>>
>> This is what I require:
>> INVITE sip:1234 at sip.server.com:5060;phone-context=sip.server.com;user=phone
>> SIP/2.0.
>>
>> Any clues on how to add the Phone-Context value?
>>
>> Thanks,
>> Julian
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list