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@10.0.1.1>
->
from="John Doe" <sip:4445556666@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@iRC RusNet * mailto:shurik@start4.info
AD1-UANIC * ICQ: 122351182 *
http://www.start4.info