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@lists.iptel.org wrote:
Message: 33 Date: Wed, 13 Apr 2005 08:29:50 -0400 From: Eric Dean edean@purespeedplus.com Subject: [Serusers] Rewrite To Heaader To: serusers@lists.iptel.org Message-ID: 425D10BE.7090703@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