I pretty much solved the issue.

This is what I used:
subst_uri('/^sip:([0-9]+)@(.*)$/sip:\...@\2;phone-context=sip.server.com/i


On Tue, Apr 7, 2009 at 4:25 PM, Julian Yap <julianok...@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:1...@sip.server.com:5060;user=phone SIP/2.0.
>
> This is what I require:
> INVITE sip:1...@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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to