[Serusers] Rewrite To Heaader

Olivier Taylor olivier.taylor at gmail.com
Sat Apr 16 12:02:10 CEST 2005


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 at iptel.org [mailto:serusers-bounces at lists.iptel.org] De la
part de Carlos Vicente
Envoyé : vendredi 15 avril 2005 19:52
À : serusers at lists.iptel.org
Cc : edean at 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 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

_______________________________________________
Serusers mailing list
serusers at lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list