And it works, even if it's not RFC compliant. We will se if we'll have problems. Thanks,
Olivier
-----Message d'origine----- De : serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] De la part de Carlos Vicente Envoyé : vendredi 15 avril 2005 19:52 À : serusers@lists.iptel.org Cc : edean@purespeedplus.com Objet : RE: [Serusers] Rewrite To Heaader
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
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers