[Users] How to add Route headers?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Nov 10 12:59:34 CET 2005
Hi Gustavo,
if you have fixed content, it's even simpler. Use the textops module to
add the headers. See the append_hf() function:
http://www.openser.org/docs/modules/1.1.x/textops.html#AEN189
regards,
bogdan
Gustavo García Bernardo wrote:
>Hi Bogdan, thx for your response
>
>I need to put two fixed route headers, like these:
>
>Route: user at as.domain.com
>Route: user at cscf.domain.com
>
>Can I do that with AVPops module? I think is not suitable for this task.
>
>BR,
>
>G.
>
>-----Mensaje original-----
>De: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
>Enviado el: jueves, 10 de noviembre de 2005 0:28
>Para: Gustavo García Bernardo
>CC: users at openser.org
>Asunto: Re: [Users] How to add Route headers?
>
>Hi Gustavo,
>
>you can generate the body of the Route header(s) into AVP(s) be loading
>them from database of by building them via avpops functions (like
>avp_printf()).
>then just set the AVP(s) into Route header(s) via the avp_pushto() function:
>http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_pushto
>
>mostly depends of the content you want to push into the headers.
>
>regards,
>bogdan
>
>Gustavo García Bernardo wrote:
>
>
>
>>Hi,
>>
>>Is posible to add more route headers to a request before relaying it?
>>
>>I’m trying to implement the IMS mechanism before relaying a request to
>>an application server, which consists in adding two route headers.
>>
>>Thx in advance.
>>
>>G.
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Users mailing list
>>Users at openser.org
>>http://openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>
>
>
>
More information about the sr-users
mailing list