Well, custom headers module parameter is the right place for your needs, if its not working then its most likely a bug and you should report it.
Thank you. On Wed, Nov 21, 2012 at 6:02 PM, Jorge Henrique Pinho < [email protected]> wrote: > Hi, thank for your feedback. > Custom headers was my first approach, but the problem remains, the > User-Agent header pass from the dialog of one side to the other side but > the value is changed anyway. > > Is there a way that i can define specific headers to be untouched by b2b > module or anywhere in the routines where i already see the modified message > and have permissions to manipulate it? > > Kind regards, > > Jorge Pinho > > ________________________________________ > From: [email protected] [[email protected]] > On Behalf Of Muhammad Shahzad [[email protected]] > Sent: 21 November 2012 14:53 > To: OpenSIPS users mailling list > Subject: Re: [OpenSIPS-Users] Opensips don't send Cancel. > > No, don't temper with opensips generated request in local route, it will > result in unexpected behaviour as you have already observed, right right > way to do is define custom headers that should be passed from one leg to > other leg, as described here, > > http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250020 > > The purpose of local route is to do things that do not modify generated > request in general (specially in case of B2BUA never modify the request). > You can use this route e.g. to trigger a billing event, or cdr or some db > operation etc. etc. > > Thank you. > > > On Wed, Nov 21, 2012 at 12:51 PM, Jorge Henrique Pinho < > [email protected]<mailto:[email protected]>> > wrote: > Good morning. > I have installed opensips-1.7.2-2.el5 and I am using b2b module and > encountering a strange behavior. > B2b module changes the original User Agent header and I need this > information to be preserved; so in the route script I used an avp to store > the original User Agent value, call b2b_init_request and on local_route > script I use remove_hf and append_hf functions to replace the User Agent > header with the original one. > > The behavior is : If I want to cancel the call, opensips receives a Cancel > message, replies with a 200 canceling but never forwards the Cancel message. > The behavior is not deterministic, sometimes opensips forwards the Cancel, > and sometimes it does not. > > When I don't use the remove_hf and append_hf functions, opensips behaves > as expected, and always forwards the Cancel. > > Kind regards > > Jorge Pinho > > > Jorge Pinho > Analyst/Developer > Network Platforms and Multimedia Solutions > Multimedia Division > _______________________________________________ > Users mailing list > [email protected]<mailto:[email protected]> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
