[Users] How to add Route headers?

'Atle Samuelsen' clona at cyberhouse.no
Fri Nov 11 12:29:23 CET 2005


That's true as I said, it was just a quick tought,, 

-A

* Gustavo Garc?a Bernardo <ggb at tid.es> [051111 12:20]:
> It seems too risky.  At least in my case is impossible to ensure that there
> are only one Route header.
> 
> Also I think there are additional implications, like you will replace the
> body content of an Instant Message saying "Hello Atle, I send you the route
> to arrive to my house. Route: take the blah, blah... ".
> 
> Thx, regards.
> 
> G.
> 
> -----Mensaje original-----
> De: Atle Samuelsen [mailto:clona at cyberhouse.no] 
> Enviado el: viernes, 11 de noviembre de 2005 11:39
> Para: Bogdan-Andrei Iancu
> CC: Klaus Darilion; Gustavo Garc?a Bernardo; users at openser.org
> Asunto: Re: [Users] How to add Route headers?
> 
> Hey,
> 
> (just a tought) and it requires that you only have route header, but you
> can have loads of routes in it..
> 
> subst(/Route:(.$)/Route:<sip:new at route>,$1/);
> 
> What I would try to do, would be to just take everything after Route:
> and put it into $1, then just add the new route before the old once)
> 
> (proberbly not right syntax, but could work when you know you have full
> control over how the route headers look like)
> 
> -A
> 
> * Bogdan-Andrei Iancu <bogdan at voice-system.ro> [051111 11:16]:
> > 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: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
> > >>
> > >>
> > >
> > >
> > 
> > 
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> > 
> 
> 




More information about the Users mailing list