Hi Jiang,
prefix() operates only on RURI. You shouldn't change TO hdr since you
may break transaction matching.
Note that according to RFC 3261 the SIP routing is never done based on
TO uri, so your gateway must look only to RURI and not to TO header.
Better report the bug to the GW vendor.
Best regards,
Marian
Jiang zhou wrote:
Hi all,
I have write a command as
if (uri=~"^sip:0") {
strip(1);
prefix("02134");
forward(xx.xx.xx.xx);
break;
}
I find it only prefix the invite URI but the to field is not add prefix.
The peer PSTN gateway need both URI and to field has the same value. how
to add a prefix in to field?
Jiangzhou
Best Regards
-------------------------------------------------
Phone: 021-54591867
Email: zjiang(a)sipod.com
WWW :
www.sipod.com
------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
--
Voice System
http://www.voice-system.ro