<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Daniel,<br>
<br>
OK, so you want to get the parameter into the local route (when
the calls are sent out). Right now, the out of the box solution is
what you already did - put the scenario parameters into RURI so
you can extract them in the local route.<br>
This is ugly, let me think of a better solution, correlated with
the b2b rework (in order to replace the xml control with the
scripting control).<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
<a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
<div class="moz-cite-prefix">On 09/20/2018 09:32 PM, Daniel Zanutti
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAN0jgiMn0gyK+b1UBpJQ0CRB2QApTitYrHpajQGq_tesWvTaPw@mail.gmail.com">
<div dir="ltr">Hi Bogdan
<div><br>
</div>
<div>I'm triggering the script via MI. The idea is to send some
parameter with the MI parameters and use this as a variable on
localroute. </div>
<div><br>
</div>
<div>For example, a dialer place call to B destination, after
answer, place call to A destination, then bridge.</div>
<div><br>
</div>
<div>On B side, i need to store on DB the gateway_id that will
process the call. On A side, I'll call the Queue number, but I
need to send and store the campaign ID. These 2 values must be
stored on CDR.</div>
<div><br>
</div>
<div>I didn't find a way to send, for example, the gateway_id to
the opensips script when using B2B.</div>
<div><br>
</div>
<div>Thanks</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Thu, Sep 20, 2018 at 12:48 PM Bogdan-Andrei
Iancu <<a href="mailto:bogdan@opensips.org"
moz-do-not-send="true">bogdan@opensips.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Daniel,<br>
<br>
Could you detail a bit on the flow of this customer
related value ? where does is originate (when triggering
the b2b script via MI?) and where do you want to get it ?<br>
<br>
Best regards,<br>
</tt>
<pre class="m_-1798406377618750752moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-1798406377618750752moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
<a class="m_-1798406377618750752moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/" target="_blank" moz-do-not-send="true">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
<div class="m_-1798406377618750752moz-cite-prefix">On
09/12/2018 12:32 AM, Daniel Zanutti wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I'm using opensips to originate a call to 2
destinations then bridge then, using B2B scenario.</div>
<div><br>
</div>
<div>How to send some custom parameters to help
accounting?</div>
<div>I need to identify that this specific call, is
related to some customer. Didn't find in docs a
proper way to do it, so my idea is to set r-uri with
some kind of csv data then fix it before it's sent
out on local_route. But I'm unsure this is a good
idea.</div>
<div><br>
</div>
<div>Is there a proper way to send custom parameter to
be handled on local_route?<br>
</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset
class="m_-1798406377618750752mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a class="m_-1798406377618750752moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-1798406377618750752moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>