On 02/18/06 12:16, unplug wrote:
If I have a avp variable s:contact=
<sip:871966806561@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(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users