[Serusers] rewriting the From URI
Alexandr Dubovikov
shurik at start4.info
Sat Jun 10 23:22:36 CEST 2006
On Sat, Jun 10, 2006 at 04:47:02PM -0400, Bjorn Asmul wrote:
> Does anyone know the regular expression to replace the callerID name?
>
> from="Jane Doe" <sip:4445556666 at 10.0.1.1>
> ->
> from="John Doe" <sip:4445556666 at 10.0.1.1>
>
> Obviously using an AVP with the subst-function.
> ( subst('/^(From|f):(.*)sip:............); )
subst('/^(From|f):(.*)sip:(.*)@/\1:\2sip:\3@/g');
\3 - callid,
\2 - UserID
>
> Thanks,
> Bjorn
>
Wbr,
--
Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
AD1-UANIC * ICQ: 122351182 * http://www.start4.info
More information about the sr-users
mailing list