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.<div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 6:02 PM, Jorge Henrique Pinho <span dir="ltr">&lt;<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt" target="_blank">jorge-h-pinho@ext.ptinovacao.pt</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, thank for your feedback.<br>
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.<br>
<br>
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?<br>
<br>
Kind regards,<br>
<br>
Jorge Pinho<br>
<br>
________________________________________<br>
From: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>] On Behalf Of Muhammad Shahzad [<a href="mailto:shaheryarkh@gmail.com">shaheryarkh@gmail.com</a>]<br>

Sent: 21 November 2012 14:53<br>
To: OpenSIPS users mailling list<br>
Subject: Re: [OpenSIPS-Users] Opensips don&#39;t send Cancel.<br>
<div class="im"><br>
No, don&#39;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,<br>

<br>
<a href="http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250020" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id250020</a><br>
<br>
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.<br>

<br>
Thank you.<br>
<br>
<br>
</div><div class="im">On Wed, Nov 21, 2012 at 12:51 PM, Jorge Henrique Pinho &lt;<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt">jorge-h-pinho@ext.ptinovacao.pt</a>&lt;mailto:<a href="mailto:jorge-h-pinho@ext.ptinovacao.pt">jorge-h-pinho@ext.ptinovacao.pt</a>&gt;&gt; wrote:<br>

Good morning.<br>
I have installed opensips-1.7.2-2.el5 and I am using b2b module and encountering a strange behavior.<br>
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.<br>

<br>
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.<br>
The behavior is not deterministic, sometimes opensips forwards the Cancel, and sometimes it does not.<br>
<br>
When I don&#39;t use the remove_hf and append_hf functions, opensips behaves as expected, and always forwards the Cancel.<br>
<br>
Kind regards<br>
<br>
Jorge Pinho<br>
<br>
<br>
Jorge Pinho<br>
Analyst/Developer<br>
Network Platforms and Multimedia Solutions<br>
Multimedia Division<br>
_______________________________________________<br>
Users mailing list<br>
</div><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>