<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi. I resolved similar situation with<div><div><div>modparam("tm", "on_sl_reply", "stateless_replies")</div></div><div>.....</div><div>onreply_route["stateless_replies"] {</div><div>    # do not allow stateless replies to be forwarded</div><div>    return 0;</div><div>}</div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 21 Dec 2018 at 23:31, Olli Attila <<a href="mailto:attiolli@gmail.com">attiolli@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
The onreply route removal does not seem to work here. Am i missing something? :<br>
<br>
Call is routed via dispatch module:<br>
<br>
route[DISPATCH] {<br>
                t_on_reply("MANAGE_REPLY");<br>
                t_on_failure("RTF_DISPATCH");<br>
                route(RELAY);<br>
                exit;<br>
}<br>
<br>
onreply_route[MANAGE_REPLY] {<br>
        remove_hf_re("^X-");<br>
        remove_hf("P-Charging-Vector");<br>
}<br>
<br>
route[RELAY] {<br>
<br>
        if (!t_relay()) {<br>
                sl_reply_error();<br>
        }<br>
        exit;<br>
}<br>
<br>
<br>
--Olli<br>
<br>
to 20. jouluk. 2018 klo 14.31 Daniel-Constantin Mierla<br>
(<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>) kirjoitti:<br>
><br>
> Hello,<br>
><br>
> in the failure route you have the request under processing, not the<br>
> response.<br>
><br>
> You have to use an onreply_route[x] for that transaction and do there<br>
> remove_hf()<br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
> On 20.12.18 11:57, Olli Attila wrote:<br>
> > Hello,<br>
> ><br>
> > Any ideas about this header manipulation?<br>
> ><br>
> > Cheers,<br>
> > Olli<br>
> ><br>
> > pe 14. jouluk. 2018 klo 12.31 Olli Attila (<a href="mailto:attiolli@gmail.com" target="_blank">attiolli@gmail.com</a>) kirjoitti:<br>
> >> Hello,<br>
> >><br>
> >> We have a call case where our softswitch replies to in-dialog<br>
> >> re-invite with "SIP 491 Request pending". This happens when a customer<br>
> >> sip device is trying to re-invite the session too fast even though the<br>
> >> softswitch is still processing the earlier request. Kamailio operates<br>
> >> between this customer device and the softswitch.<br>
> >><br>
> >> The softswitch is adding a P-Charging-Vector header to this SIP 491<br>
> >> reply which we want to drop (remove_hf...)  from the reply when we<br>
> >> route the SIP 491 message  back to the customers device.<br>
> >><br>
> >> I tried to drop this inside in-dialog failure route but it seems that<br>
> >> Kamailio forwards the orginal 491 message statelessly to customer and<br>
> >> the header still extists there eventhough failure route has deleted<br>
> >> it. I guess this modification should be done in a sateful manner for<br>
> >> Kamailio to actually write the changes to the outgoing reply towards<br>
> >> the customer device.<br>
> >><br>
> >> Any suggestions how the 491 reply could be edited and then forwarded<br>
> >> onwards to the customer device?<br>
> >><br>
> >> Cheers,<br>
> >> --Olli<br>
> ><br>
> ><br>
> --<br>
> Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
> <a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
> Kamailio World Conference - May 6-8, 2019 -- <a href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a><br>
> Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
><br>
<br>
<br>
-- <br>
"Logic is the art of going wrong with confidence."<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Savolainen Dmitri</div></div></div></div></div>