Hi Klaus,

it might work - sounds like an interesting idea. Bit in order to guarantee the proper order of route headers at the end, you need to store first into AVPs the new headers and than load into AVPs the current set from the request.
Then delete all Route hdrs and push all AVPs containing Route headers.

regards,
bogdan

Klaus Darilion wrote:

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:[EMAIL PROTECTED] Enviado el: jueves, 10 de noviembre de 2005 13:00
Para: Gustavo García Bernardo
CC: [email protected]
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: [EMAIL PROTECTED]
Route: [EMAIL PROTECTED]

Can I do that with AVPops module? I think is not suitable for this task.

BR,

G.

-----Mensaje original-----
De: Bogdan-Andrei Iancu [mailto:[EMAIL PROTECTED] Enviado el: jueves, 10 de noviembre de 2005 0:28
Para: Gustavo García Bernardo
CC: [email protected]
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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users













_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users






_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to