<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Jorge,<br>
      <br>
      The "terminate_call" is a C function in the b2b API module. Now, I
      do not fully understand what you are trying to do - could you
      detail a bit the state of the involved calls when you do the
      terminate ?<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>
    <br>
    On 02/28/2013 05:06 PM, Jorge Henrique Pinho wrote:
    <blockquote
cite="mid:AA970528BDC4D3439B10D0D6295E87A601B3E2E2D324@INOAVREX11.ptin.corpPT.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Hi, I am using b2b module with topology hiding.</span><span
            style="font-size: 12pt; font-family: &quot;Times New
            Roman&quot;,&quot;serif&quot;;" lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">I am trying to terminate a call when i receive
            the 200OK response to an Invite. To&nbsp;accomplish&nbsp;this i am
            using the 'terminate_call' function defined in b2b_logic
            module.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">The b2b module successfully generates a BYE to
            user B (callee), but fails to generate a Cancel to user A
            (caller). Here is the log where it fails to send cancel:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_logic:b2bl_parse_key: hash_index = [286] &nbsp;-
            local_index= [0]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_parse_key: hash_index = [310] &nbsp;-
            local_index= [66]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_search_htable_next_dlg: entering with
            start=(nil), table=0x2ba1327a39b0, hash=310, label=66<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_search_htable_next_dlg: searching
            &nbsp;callid 16[0f24ca6601104537]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_search_htable_next_dlg: searching &nbsp;
            totag 10[B2B.310.66]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_search_htable_next_dlg: searching
            fromtag 8[6a18b32d]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_search_htable_next_dlg: Match for
            server dlg [0x2ba1327a8a20]
            dlg-&gt;uas_tran=[0x2ba1327a8c48]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            DBG:b2b_entities:b2b_send_request: Send request [CANCEL] for
            entity type [0] for dlg[0x2ba1327a8a20]-&gt;[B2B.310.66]<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Feb 28 15:01:41 [1466]
            ERROR:b2b_entities:b2b_send_request: No transaction saved.
            Cannot send CANCEL<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">B2b fails to find a transaction to A (caller)
            and fails to generate a Cancel message to this user.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US">Is it possible to do what I am trying or is it
            a bug?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"
            lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">Kind
            regards<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">Jorge
            Pinho<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>