olivier.taylor wrote:
hi all,
Using ser 0.94 I have a sip message coming from an asterisk containing : From: "45454558" sip:69@toto.com;tag=as2524cec1. I need to extract the 45454558 and add it in a new header.
Did you try something like:
modparam("avpops", "avp_aliases","ocn=i:701") avp_write("$from/username", "$ocn");
Then use $ocn as an alias whereever you need to reference this username.
-Steve
I there a way to do that with avpops?
I tried avp_write("$from", "s:from"); and get sip:69@toto.com also avp_write("$from/username", "s:from"); and get 69
is there another way?
Cheers,
Olivier
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers