Two things.
First, make sure this block of code is executed! You may have logic before
this section branching to another route block, which skip the stripping
totally.
Second, try escaping the dot(.) like 192\.168\.1\.1 if it's a IP address.
Also, when you say proxyB receive 9200001@proxyB, you are referring to
"R-URI" and not the "To", right?
Zeus
-----Original Message-----
From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] On Behalf Of jacky
Sent: Friday, 17 September 2004 3:54 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] help about strip
I want do this:
uaA (invite 9200001@B) ---->proxy A (invite 200001@B )--->proxyB
so in proxyA's ser.cfg:
---------------------------
if (uri=~"^sip:9[0-9]*@B") {
strip(1);
t_relay_to_udp( "B", "5060");
break;
};
----------------------------
but proxyB received "sip:9200001" not "sip:200001".
please help me how can I do!
thanks.