<div dir="ltr">Thank you for such a cool and detailed answer!<br><div>But I would like to clarify the following:<br></div><div><br></div><div>>Custom headers can be set for each b2b_entity during the entity setup via the extra_hdrs and extra_hdrs_bodies [4] [5].<br></div><div>Do I understand correctly that this only works for initial invites?<br></div><div><br></div><div>>For now, the outgoing socket is set by opensips internally. There were</div>some fixes related to this, make sure that you are using the latest<br>opensips version.<div>But I have several sockets and how can I influence the choice?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 18 окт. 2023 г. в 15:59, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>>:<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 Denys,<br>
<br>
Dialog module should *never* be mixed with the b2b module.<br>
For b2b calls one can use the $b2b_logic.ctx vars [1].<br>
For b2b tracing use the 'b' scope in trace() [2].<br>
There are some issues as not all provisional replies are traced [3].<br>
Custom headers can be set for each b2b_entity during the entity setup<br>
via the extra_hdrs and extra_hdrs_bodies [4] [5].<br>
For now, the outgoing socket is set by opensips internally. There were<br>
some fixes related to this, make sure that you are using the latest<br>
opensips version.<br>
<br>
-ovidiu<br>
<br>
[1] <a href="https://opensips.org/docs/modules/3.4.x/b2b_logic.html#b2b_logic.ctx" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.4.x/b2b_logic.html#b2b_logic.ctx</a><br>
[2] <a href="https://opensips.org/docs/modules/3.4.x/tracer.html#func_trace" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.4.x/tracer.html#func_trace</a><br>
[3] <a href="https://github.com/OpenSIPS/opensips/issues/3194" rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips/issues/3194</a><br>
[4] <a href="https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_server_new" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_server_new</a><br>
[5] <a href="https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_client_new" rel="noreferrer" target="_blank">https://opensips.org/docs/modules/3.4.x/b2b_logic.html#func_b2b_client_new</a><br>
<br>
<br>
On Wed, Oct 18, 2023 at 9:16 AM Denys Pozniak <<a href="mailto:denys.pozniak@gmail.com" target="_blank">denys.pozniak@gmail.com</a>> wrote:<br>
><br>
> Hello!<br>
><br>
> I'm trying to implement topology hiding (b2b_logic) in an existing config, but there are points that are not clear to me:<br>
> - Can I somehow use dialog variables in b2b mode? if not, any alternative? I see they are created for the initial leg (with state=3), but not available in the b2b mode;<br>
> - How to configure a tracer (proto_hep) in b2b mode?<br>
> - How to convert transport and select outgoing socket (the question has already been asked in a separate mail)?<br>
> - How can I add the necessary custom X-headers also for in-dialog requests (for example, for re-INVITE)? It does not work via insert_hf in [script_req_route] neither via function b2b_client_new() as well;<br>
> - If nodes operate in anycast + clusterer mode, then in what route should function t_anycast_replicate() be called?<br>
><br>
> --<br>
><br>
> BR,<br>
> Denys Pozniak<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
--<br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" rel="noreferrer" target="_blank">http://www.voipembedded.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>