[Serusers] rewriteuser with something appended

Ricardo Carvalho rcarvalho at iric.up.pt
Wed Sep 13 14:46:06 CEST 2006


Ok, I got it... I did it with:

subst_uri('/^sip:(.*)@(.*)$/sip:\1_digits@\2/');

Thanks anyway,

Ricardo.








Ricardo Carvalho wrote:
> Hi,
>
> How may I append some digits (like "_digits") to the Request-URI of 
> INVITE messages?
> With rewriteuser("_digits") an INVITE line like:
>
> INVITE sip:user at domain:5060;transport=udp SIP/2.0
>
> results in:
>
> INVITE sip:_digits at domain:5060;transport=udp SIP/2.0
>
> and I what to result this:
>
> INVITE sip:user_digits at domain:5060;transport=udp SIP/2.0
>
>
> Any suggestion?
>
> Thanks,
> Ricardo.
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>




More information about the sr-users mailing list