[Serusers] Rewrite To Heaader

Carlos Vicente cvicente at network-services.uoregon.edu
Fri Apr 15 19:51:33 CEST 2005


Take a look at the replace method in the textops module

http://www.iptel.org/ser/doc/modules/html/textops.html

You could do something like:

	replace("^To: <sip:", "To: acct# <sip:");    

cv

On Thu, 2005-04-14 at 20:37 +0200, serusers-request at lists.iptel.org wrote:
> Message: 33
> Date: Wed, 13 Apr 2005 08:29:50 -0400
> From: Eric Dean <edean at purespeedplus.com>
> Subject: [Serusers] Rewrite To Heaader
> To: serusers at lists.iptel.org
> Message-ID: <425D10BE.7090703 at purespeedplus.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Our VoIP service provider routes calls based upon the To field within 
> the SIP header.  While SER can easily rewrite the URI, I need to 
> actually prepend our account code to every outgoing call with a
> prefix.  
> does anyone know how to prefix the To field




More information about the sr-users mailing list