<div dir="ltr"><div>OK, but using the request on json that I inform on may email send ny mi command,</div><div>all messages are handle on these routes only:</div><div><br></div><div>
route[b2b_request] <br></div><div>route[b2b_reply] <br></div><div><br></div><div>there no messages captured on main <b>route {</b></div><div><br></div><div>thanks<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 18, 2022 at 12:03 PM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</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">
<div>
<font face="monospace">As per my suggestion, try the local_route<br>
<br>
Regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
<a href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
<div>On 4/18/22 5:35 PM, Antonio Couto
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Thanks for quick response.</div>
<div><br>
</div>
<div>I put on route[b2b_request] and route[b2b_reply] routes,
but I think this model I am trying to use will not work</div>
<div>like you said.</div>
<div><br>
</div>
<div>i think I will need to send a complete INVITE from another
application to start b2b from a INVITE message,</div>
<div>so I can preserve this original header on b2b logic module.</div>
<div><br>
</div>
<div>thanks a lot.<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr 18, 2022 at 11:16
AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</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">
<div> <font face="monospace">Hi Antonio,<br>
<br>
not sure where you placed the append_hf(), but you need to
place it in the local_route, for original INVITEs.<br>
<br>
Regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
<a href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
<div>On 4/18/22 4:58 PM, Antonio Couto wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>It is possible to insert header on outgoing INVITE
from a B2BUA scenario start by mi command</div>
<div>via UDP like this?</div>
<div><br>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,255)">let</span><span style="color:rgb(0,0,0)"> obj = {</span></div><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"jsonrpc"</span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(163,21,21)">"2.0"</span><span style="color:rgb(0,0,0)">,</span></div><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"id"</span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(163,21,21)">"7684"</span><span style="color:rgb(0,0,0)">,</span></div><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"method"</span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(163,21,21)">"b2b_trigger_scenario"</span><span style="color:rgb(0,0,0)">,</span></div><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"params"</span><span style="color:rgb(0,0,0)">:[</span></div><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"marketing"</span><span style="color:rgb(0,0,0)">,</span></div><span style="color:rgb(0,0,0)"></span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"operator,<a href="http://sip:9000@192.168.0.213:5060" target="_blank">sip:9000@192.168.0.213:5060</a>"</span><span style="color:rgb(0,0,0)">,</span></div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(163,21,21)">"customer,<a href="http://sip:microsip@192.168.0.44:5060" target="_blank">sip:microsip@192.168.0.44:5060</a>"</span><span style="color:rgb(0,0,0)">,</span></div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"> <span style="color:rgb(0,0,0)">]</span><div><span style="color:rgb(0,0,0)"> }</span></div><div><span style="color:rgb(0,0,0)">
</span></div><div><span style="color:rgb(0,0,0)">I tried to use append_hf but no effect.</span></div><div><span style="color:rgb(0,0,0)">thanks in advance.</span></div><div><span style="color:rgb(0,0,0)">Antonio Couto
</span></div></div>
</div>
<div> <br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>