[SR-Users] The RPC function in the TM module
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jan 15 09:11:49 CET 2014
The answer is in the previous message which I replied and you pasted in
your message as well.
Just replace CALLID with the value of the Call-ID header and NNN with
the cseq number.
Cheers,
Daniel
On 15/01/14 04:54, 无愿无悔 wrote:
> 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
> <mailto:miconda at gmail.com>>
> To: "Kamailio (SER) - Users Mailing List"
> <sr-users at lists.sip-router.org <mailto: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
> <mailto: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.
>
>
>
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140115/874442a0/attachment.html>
More information about the sr-users
mailing list