<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Ping,<br>
      <br>
      In script, in a b2b route, you can look at the callid or TO tag
      (depending on the direction) to get the key :<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/b2b_logic.html#id294094">http://www.opensips.org/html/docs/modules/2.2.x/b2b_logic.html#id294094</a><br>
      <br>
      The B2B uses that key as Call-ID when acting as UAC and as To tag
      when acting as UAS. You can run a SIP capture to see the traffic.<br>
      <br>
      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></pre>
    <div class="moz-cite-prefix">On 02.06.2016 05:13, Ping Han wrote:<br>
    </div>
    <blockquote
cite="mid:CAOooq9AzjYHA3GuhiHbfJPj2z30QU8Vhsq1NdUwH+DHtbQFXvA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Bogdan,<br>
        <br>
        Thanks for the information. <br>
        <br>
        I need the value in the Opensips cfg. <br>
        <br>
        I understand that I can query the b2b_logic or b2b_entities
        tables to get the value in Opensips config. Apart from that
        could you tell me other way to easily access the value in
        Opensips config?
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Ping<br>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jun 1, 2016 at 5:13 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Ping,<br>
                <br>
                Indeed, my bad - the docs are not updated, as that param
                was disabled long time ago (4 years ago):<br>
                    <a moz-do-not-send="true"
                  href="https://sourceforge.net/p/opensips/bugs/502/"
                  target="_blank">https://sourceforge.net/p/opensips/bugs/502/</a><br>
                <br>
                Still, there are available option. But the question is :
                do you need that value in OpenSIPS cfg or outside
                OpenSIPS ? as there are different way to get the ID.<br>
                <br>
                Regards,<br>
              </tt><span class="">
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              </span>
              <div>
                <div class="h5">
                  <div>On 01.06.2016 03:48, Ping Han wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Bogdan,
                      <div><br>
                      </div>
                      <div>Thank you very much for your reply. </div>
                      <div><br>
                      </div>
                      <div>I have tried to use the module parameter
                        "b2bl_key_avp" as described in the document as
                        below.</div>
                      <div><br>
                      </div>
                      <div>
                        <div>------------------------------------</div>
                        <div>modparam("b2b_logic", "b2bl_key_avp",
                          "$avp(99)")</div>
                        <div>------------------------------------<br>
                        </div>
                      </div>
                      <div><br>
                      </div>
                      <div>However, I got the following errors when the
                        Opensips is restarted. </div>
                      <div>------------------------------------<br>
                      </div>
                      <div>ERROR:core:set_mod_param_regex: parameter
                        &lt;b2bl_key_avp&gt; not found in module
                        &lt;b2b_logic&gt;<br>
                      </div>
                      <div>------------------------------------<br>
                      </div>
                      <div><br>
                      </div>
                      <div>I am using the Opensips version
                        opensips-2.1.2-1.el6.x86_64 (rpm).</div>
                      <div><br>
                      </div>
                      <div>Thanks,</div>
                      <div>Chris</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Tue, May 31, 2016 at
                        6:01 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:bogdan@opensips.org"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi
                              Chris,</tt><tt><br>
                            </tt><tt><br>
                            </tt><tt>The "dialog_id" is actually the b2b
                              key, that is expose by the b2b_logic via
                              the module parameter </tt><tt>b2bl_key_avp.


                              See:</tt><tt><br>
                            </tt><tt>    <a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294094"
                                target="_blank">http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id294094</a></tt><tt><br>
                            </tt><tt><br>
                            </tt><tt>That key can also be found in the
                              b2b_logic table in DB.</tt><tt><br>
                            </tt><tt><br>
                            </tt><tt>At signaling level, the key is the
                              Call-ID of the outbound calls from b2b.</tt><tt><br>
                            </tt><tt><br>
                              Regards,<br>
                            </tt>
                            <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                            <div>
                              <div>
                                <div>On 23.05.2016 07:32, Ping Han
                                  wrote:<br>
                                </div>
                                <blockquote type="cite">
                                  <div dir="ltr">Hi Bogdan,
                                    <div><br>
                                    </div>
                                    <div>I asked the question a few days
                                      ago but have not got a response. </div>
                                    <div><br>
                                    </div>
                                    <div>I am just wondering if I could
                                      get some advice from you. </div>
                                    <div><br>
                                    </div>
                                    <div>Any advice will be appreciated.</div>
                                    <div><br>
                                    </div>
                                    <div>Thanks,</div>
                                    <div>Chris </div>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">On Wed,
                                        May 18, 2016 at 4:39 PM, Ping
                                        Han <span dir="ltr">&lt;<a
                                            moz-do-not-send="true"
                                            href="mailto:pinghan022@gmail.com"
                                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:pinghan022@gmail.com">pinghan022@gmail.com</a></a>&gt;</span>
                                        wrote:<br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div dir="ltr">
                                            <div>Hi, </div>
                                            <div><br>
                                            </div>
                                            <div>I would like to use the
                                              b2b_bridge fifo function
                                              as specified at <a
                                                moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id248916"
                                                target="_blank"><a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id248916">http://www.opensips.org/html/docs/modules/2.1.x/b2b_logic.html#id248916</a></a>.</div>
                                            <div><br>
                                            </div>
                                            <div>The function will be
                                              triggered by a third
                                              party. I will need to pass
                                              the parameters to the
                                              third party for it to
                                              trigger the function. One
                                              of the parameters is the
                                              "dialog-id". </div>
                                            <div><br>
                                            </div>
                                            <div>The problem is that I
                                              am not sure how the value
                                              of the dialog-id can be
                                              available in the Opensips
                                              config. Is there any
                                              Opensips modules/function
                                              that can retrieve the
                                              value of the dialog-id? </div>
                                            <div><br>
                                            </div>
                                            <div>I tried to get the
                                              value from the
                                              "b2b_entities" and
                                              "b2b_logic" table.
                                              However, it seems that it
                                              does not work this way
                                              because the two tables do
                                              not pop the data in real
                                              time. Sometimes I can see
                                              the data but sometimes I
                                              am not able to see it. </div>
                                            <div><br>
                                            </div>
                                            <div>It is appreciated that
                                              you can give me some
                                              idea. </div>
                                            <div><br>
                                            </div>
                                            <div>Thanks,</div>
                                            <div><br>
                                            </div>
                                            <div>Ping </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br>
                                    </div>
                                  </div>
                                </blockquote>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>