[Serusers] avpops question

olivier.taylor olivier.taylor at gmail.com
Thu Mar 23 14:48:32 CET 2006


hi all,

Using ser 0.94
I have a sip message coming from an asterisk containing : From: 
"45454558" <sip:69 at toto.com>;tag=as2524cec1.
I need to extract the 45454558 and add it in a new header.

I there a way to do that with avpops?

I tried avp_write("$from", "s:from"); and get sip:69 at toto.com
also avp_write("$from/username", "s:from"); and get 69

is there another way?

Cheers,

Olivier





More information about the sr-users mailing list