[SR-Users] The RPC function in the TM module

无愿无悔 1011830638 at qq.com
Wed Jan 15 04:54:40 CET 2014


Hello everyone:
I want to know what is the parameter for the RPC function "tm.cancel" in the TM module ?
I input the parameters such as :
tm.cancel d90be24a4553d076 at Yml5cC5oYWlnzs5uZXQ 2
but it can accept the only parameter,and inform me "error 400-Callid and CSeq expected as parameters " .
The context of the Callid.s is "d90be24a4553d076 at Yml5cC5oYWlnzs5uZXQ".
But the context of the CSeq.s is "if you get this string, you don't check rpc_scan return code!!!(very bad)".
Could you give me an example ? 
Message: 3
Date: Mon, 13 Jan 2014 09:00:53 +0100
From: Daniel-Constantin Mierla <miconda at gmail.com>
To: "Kamailio (SER) - Users Mailing List"
<sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] The RPC Function in The TM Module
Message-ID: <52D39D35.5000205 at gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Hello,
can you try to put callid in between double quotes. Try with the number 
only and if it doesn't work, try also with number and method. Like:
kamcmd tm.cancel "CALLID" "NNN"
kamcmd tm.cancel "CALLID" "NNN INVITE"
With kamcmd should be an option to force string input parameter to rpc 
command, iirc, like:
kamcmd tm.cancel "CALLID" s:NNN
Let us know if it works.
Cheers,
Daniel

hi,
I try to put callid between double quotes.Like:
tm.cancel "CALLID" "NNN"
but it inform : error: 400-Transactions not found.
the context of the callid is " "CALLID" "
the context of the Cseq is " "NNN" " .
note:
Thus,the double quotes is treated as a part of the string.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140115/41bad4ac/attachment.html>


More information about the sr-users mailing list