[Users] How to add Route headers?

Klaus Darilion klaus.mailinglists at pernau.at
Fri Nov 11 11:00:31 CET 2005


will it work to put current route headers into AVPs, delte the current 
route header, build new AVP with new-route + old-route. insert new route 
header?

regards
klaus

Bogdan-Andrei Iancu wrote:
> right...you need the new header on the top...
> I'm afraid there is no way to control the insertion point from the 
> script (default is at the end).......
> 
> maybe having an extra parameter on the function to say top or 
> bottom?.....not sure....
> 
> regards,
> bogdan
> 
> Gustavo García Bernardo wrote:
> 
>> Hi Bogdan,
>>
>> I had seen that function, but i think append_hf appends headers at the
>> bottom of the message, and I need to put those Route headers above any 
>> other
>> existing Route header.
>>
>> Any other solution? 
>> Thanks once more.
>>
>> regards
>> G.
>>
>> -----Mensaje original-----
>> De: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro] Enviado el: 
>> jueves, 10 de noviembre de 2005 13:00
>> Para: Gustavo García Bernardo
>> CC: users at openser.org
>> Asunto: Re: [Users] How to add Route headers?
>>
>> 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
>>>>
>>>>
>>>>  
>>>>     
>>>
>>>
>>>
>>>   
>>
>>
>>
>>  
>>
> 
> 
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
> 
> 





More information about the sr-users mailing list