Anyone with SER knowledge could you point me in a direction to setup SER to
rewrite the
SIP URI?
Currently I have the following
1002#15555555555@xxx.xxx.xxx.xxx
I am setting it so it does the change but its still showing up with the prefix.
I need it to look like this:
15555555555@yyy.yyy.yyy.yyy
I got xxx.xxx.xxx.xxx to change to yyy.yyy.yyy.yyy I just need the prefix to go
away now.. ?
..o-------------------------------------------------------o..
Brian Fertig
Network/Systems Engineer
IT Administrator
This email was scanned by: Mcafee GroupShield
---------------- CONFIDENTIAL DISCLAMER ----------------
All information provided in this email is considered confidential
and proprietary of Planet Telecom, Inc. and Telecenter Inc.
Use of this information by anyone other than the recipient or
sender will be considered in breach of agreement.
And so the file said to the Brian... Let there be enlightenment: strip(5); That'll strip off the first 5... Characters... From the URI Joshua Colp On 11/10/05 1:25 PM, "Brian C. Fertig" <brian@planet-telecom.com> wrote:> Anyone with SER knowledge could you point me in a direction to setup SER to > rewrite the > SIP URI? > > Currently I have the following > > 1002#15555555555@xxx.xxx.xxx.xxx > > I am setting it so it does the change but its still showing up with the > prefix. I need it to look like this: > > 15555555555@yyy.yyy.yyy.yyy > > > I got xxx.xxx.xxx.xxx to change to yyy.yyy.yyy.yyy I just need the prefix to > go away now.. ? > > ..o-------------------------------------------------------o.. > Brian Fertig > Network/Systems Engineer > IT Administrator > > > > This email was scanned by: Mcafee GroupShield > ---------------- CONFIDENTIAL DISCLAMER ---------------- > All information provided in this email is considered confidential > and proprietary of Planet Telecom, Inc. and Telecenter Inc. > Use of this information by anyone other than the recipient or > sender will be considered in breach of agreement. > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On 10/11/05, Brian C. Fertig <brian@planet-telecom.com> wrote:> Anyone with SER knowledge could you point me in a direction to setup SER to rewrite the > SIP URI? > > Currently I have the following > > 1002#15555555555@xxx.xxx.xxx.xxx > > I am setting it so it does the change but its still showing up with the prefix. I need it to look like this: > > 15555555555@yyy.yyy.yyy.yyy > > > I got xxx.xxx.xxx.xxx to change to yyy.yyy.yyy.yyy I just need the prefix to go away now >You just have to insert a strip(5) statement before the uri rewrite to remove the first five characters. Sebastian A. Espindola.
Thanks for the info here is a sniplet of how I am doing my change now
with a php script calling to a MySQL DB. Where would I insert the
strip(5)
command?
# resolve alphanumeric names in the URI
if (uri=~"sip:*@*") {
log("Running astSer.php \n");
exec_dset( "/usr/local/etc/ser/astSer.php" );
};
..o-------------------------------------------------------o..
Brian Fertig
Network/Systems Engineer
IT Administrator
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Joshua
Colp - Asterlink
Sent: Thursday, November 10, 2005 2:05 PM
To: Asterisk Users Mailing List - Non-Commercial
Discussion<asterisk-users@lists.digium.com>
Subject: Re: [Asterisk-Users] Little OT.. SER Question
And so the file said to the Brian... Let there be enlightenment:
strip(5);
That'll strip off the first 5... Characters... From the URI
Joshua Colp
This email was scanned by: Mcafee GroupShield
---------------- CONFIDENTIAL DISCLAMER ----------------
All information provided in this email is considered confidential
and proprietary of Planet Telecom, Inc. and Telecenter Inc.
Use of this information by anyone other than the recipient or
sender will be considered in breach of agreement.