[Serusers] Help with subst

Jed Stafford jeds at yahoo.com
Tue Mar 22 04:05:42 CET 2005


I may be going about this all the wrong way, but I am
attemping to change the INVITE string at the begining
of the session. In this example my XLite client is
connecting to SER which is then forwarding the call to
my PSTN gateway, however the INVITE string stays
written for the SER IP address.

Here is what I have thus far. The first line was just
a test which worked to modify the To: line. I assumed
it would also work with the INVITE, or am I going
about this all the wrong way?

subst('/^To:.*sip:([0-9]+)@.*$/To:<sip:\1 at 111.111.111.111>/');

subst('/^INVITE sip:([0-9]+)@.*$/INVITE
sip:\1 at 111.111.111.111/');

thanks,

-Jed





More information about the sr-users mailing list