[Users] question about avp_subst
Daniel-Constantin Mierla
daniel at voice-system.ro
Sat Feb 18 13:55:04 CET 2006
On 02/18/06 12:16, unplug wrote:
> If I have a avp variable s:contact=
> <sip:871966806561 at 10.0.0.46:5060>
>
> How can I use avp_subst to get 871966806561?
depending of used version:
In 1.0.0 use:
avp_subst("s:contact/s:contact_username", "/sip:(.*)@(.*)/\1/");
In development version use:
avp_subst("$avp(s:contact)/$avp(s:contact_username)", "/sip:(.*)@(.*)/\1/");
Cheers,
Daniel
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list