<html>
  <head>
    <meta content="text/html; charset=gb18030" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    The answer is in the previous message which I replied and you pasted
    in your message as well.<br>
    <br>
    Just replace CALLID with the value of the Call-ID header and NNN
    with the cseq number.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 15/01/14 04:54, 无愿无悔 wrote:<br>
    </div>
    <blockquote cite="mid:tencent_1CBC5BF569E55C8D78B429BA@qq.com"
      type="cite">
      <div><span style="font-family: 'lucida Grande', Verdana;
          line-height: 23px; ">Hello everyone:</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">I want to know what is the parameter for the RPC
          function "tm.cancel" in the TM module ?</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">I input the parameters such as :</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">tm.cancel d90be24a4553d076@Yml5cC5oYWlnzs5uZXQ 2</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">but it can accept the only parameter,and inform me
          "error 400-Callid and CSeq expected as parameters " .</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">The context of the Callid.s is
          "d90be24a4553d076@Yml5cC5oYWlnzs5uZXQ".</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">But the context of the CSeq.s is "if you get this
          string, you don't check rpc_scan return code!!!(very bad)".</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Could you give me an example ?</span>
      </div>
      <div><span style="font-family: 'lucida Grande', Verdana;
          line-height: 23px; ">Message: 3</span><br style="font-family:
          'lucida Grande', Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Date: Mon, 13 Jan 2014 09:00:53 +0100</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">From: Daniel-Constantin Mierla <</span><a
          moz-do-not-send="true" href="mailto:miconda@gmail.com"
          target="_blank" style="outline: none; cursor: pointer; color:
          rgb(30, 84, 148); font-family: 'lucida Grande', Verdana;
          line-height: 23px; ">miconda@gmai<wbr>l.com</a><span
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">></span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">To: "Kamailio (SER) - Users Mailing List"</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; "><</span><a moz-do-not-send="true"
          href="mailto:sr-users@lists.sip-router.org" target="_blank"
          style="outline: none; cursor: pointer; color: rgb(30, 84,
          148); font-family: 'lucida Grande', Verdana; line-height:
          23px; ">sr-users@lis<wbr>ts.sip-route<wbr>r.org</a><span
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">></span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Subject: Re: [SR-Users] The RPC Function in The TM
          Module</span><br style="font-family: 'lucida Grande', Verdana;
          line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Message-ID: <</span><a moz-do-not-send="true"
          href="mailto:52D39D35.5000205@gmail.com" target="_blank"
          style="outline: none; cursor: pointer; color: rgb(30, 84,
          148); font-family: 'lucida Grande', Verdana; line-height:
          23px; ">52D39D35.500<wbr>0205@gmail.c<wbr>om</a><span
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">></span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Content-Type: text/plain; charset="utf-8";
          Format="flowed"</span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Hello,</span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">can you try to put callid in between double quotes.
          Try with the number </span><br style="font-family: 'lucida
          Grande', Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">only and if it doesn't work, try also with number and
          method. Like:</span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">kamcmd tm.cancel "CALLID" "NNN"</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">kamcmd tm.cancel "CALLID" "NNN INVITE"</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">With kamcmd should be an option to force string input
          parameter to rpc </span><br style="font-family: 'lucida
          Grande', Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">command, iirc, like:</span><br style="font-family:
          'lucida Grande', Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">kamcmd tm.cancel "CALLID" s:NNN</span><br
          style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Let us know if it works.</span><br style="font-family:
          'lucida Grande', Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Cheers,</span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <span style="font-family: 'lucida Grande', Verdana; line-height:
          23px; ">Daniel</span><br style="font-family: 'lucida Grande',
          Verdana; line-height: 23px; ">
        <br>
        hi,</div>
      <div>I try to put callid between double quotes.Like:</div>
      <div>tm.cancel "CALLID" "NNN"</div>
      <div>but it inform : error: 400-Transactions not found.</div>
      <div>the context of the callid is " "CALLID" "</div>
      <div>the context of the Cseq is " "NNN" " .</div>
      <div>note:</div>
      <div>Thus,the double quotes is treated as a part of the string.</div>
      <div><br>
      </div>
      <div><br style="font-family: 'lucida Grande', Verdana;
          line-height: 23px; ">
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>