[OpenSER-Users] Manipulation of the From header username
Daniel-Constantin Mierla
daniel at voice-system.ro
Fri Oct 19 14:41:58 CEST 2007
Hello,
On 10/19/07 11:05, malmic at alice.it wrote:
> Hello there,
>
> I need to strip away the first digit "0" from the username of the
> Header From on an incoming INVITE message.I had already used the
> uac_replace_from when adding digits to the from field on outgoing
> INVITE but stripping a digit seems harder for me.
> Can somebody help me?
you can use the substr transformation to get read of leading 0 in an
avp/var, and then use the result in uac_replace_from.
http://openser.org/dokuwiki/doku.php/transformations:1.2.x#s.substr_offset_length
Cheers,
Daniel
>
> Thx
>
> Michele
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list