[Serusers] prefix command

Marian Dumitru marian.dumitru at voice-sistem.ro
Tue Mar 22 19:56:32 CET 2005


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 at sipod.com
> WWW  :    www.sipod.com
> ------------------------------------------------
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers

-- 
Voice System
http://www.voice-system.ro




More information about the sr-users mailing list