[prev in list] [next in list] [prev in thread] [next in thread]
List: sr-users
Subject: Re: [SR-Users] How to release call without having to use fromTag and toTag, and resume a suspended c
From: Daniel-Constantin Mierla <miconda () gmail ! com>
Date: 2017-02-23 19:47:49
Message-ID: f6d704f5-fd89-1b33-381d-379b97ff209e () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
terminating a call can be done only via dialog module, because it is the
one that tracks active calls and keeps all the attributes required to
generate BYE requests.
You can also trigger the termination of call through RPC commands (like
jsonrpc or xmlrpc):
-
https://www.kamailio.org/docs/modules/devel/modules/dialog.html#dlg.r.terminate_dlg
A (not-right-now) termination of the dialog can be achieved by setting
the dialog timeout (lifetime) to just few more seconds. Functions are
available from the same dialog module.
The rpc functions can be also executed inside kamailio.cfg via jsonrpcs
module.
Regarding the id and label for transaction, you have to provide parts of
the config where you want to access it in order to say if they are
available at that moment -- just trying to blind guess it's not easy.
Cheers,
Daniel
On 23/02/2017 09:38, Cassandra Yurekli wrote:
>
> To whom it may concern,
>
>
> There are several points I don't quite understand regarding a couple
> of kamailio modules.
>
>
> I have a main application which controls calls by sending command
> messages via a socket (for example reject this sip invites). I
> communicate with the socket client via evapi module and using
> evapi_asynch_relay() in order to be sure that communication are
> suspended and kamailio waiting an order for doing something with them
> (Accepte, reject, release, ...).
>
>
> I want to release a call, using a command "release this call". I'm
> actually doing this with dialog module (using
> get_dialog(callid,fromTag,toTag) and dlg_bye(âall')) but is there
> anything else (like another module) which could release a call without
> necessarily having to use fromTag and toTag to get the context ? I
> didn't find it on modules documentations.
>
>
> Alsoafter an INVITE I'm waiting for the main app to accept or reject
> the call. For accepting and continuing the transaction I found
> "t_continue(tindex,tlabel,route)" on tmx module, but at this moment
> $T(id_index) and $T(id_label) are null, is it normal or I did
> something wrong ? How can I simply resume the suspended call ?
>
>
>
> Thanks;
>
>
> Best regards,
>
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>terminating a call can be done only via dialog module, because it
is the one that tracks active calls and keeps all the attributes
required to generate BYE requests.</p>
<p>You can also trigger the termination of call through RPC commands
(like jsonrpc or xmlrpc):</p>
<p> -
<a class="moz-txt-link-freetext" \
href="https://www.kamailio.org/docs/modules/devel/modules/dialog.html#dlg.r.terminate_ \
dlg">https://www.kamailio.org/docs/modules/devel/modules/dialog.html#dlg.r.terminate_dlg</a></p>
<p>A (not-right-now) termination of the dialog can be achieved by
setting the dialog timeout (lifetime) to just few more seconds.
Functions are available from the same dialog module.</p>
<p>The rpc functions can be also executed inside kamailio.cfg via
jsonrpcs module.</p>
<p>Regarding the id and label for transaction, you have to provide
parts of the config where you want to access it in order to say if
they are available at that moment -- just trying to blind guess
it's not easy.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 23/02/2017 09:38, Cassandra Yurekli
wrote:<br>
</div>
<blockquote
cite="mid:CABGhCfaV1+x-Js2kT0UKHockK7hrNJdv87iwgVH-i_wHQdTHNA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US">To whom it may concern,</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"><br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US">There are several points I don’t quite
understand
regarding <span style="color:rgb(31,73,125)">a couple of</span>
kamailio modules.</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"><br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US">I have a main application which control<span
style="color:rgb(31,73,125)">s</span> calls by sending <span
style="color:rgb(31,73,125)">command
messages</span> via a socket (for example reject this
sip invites). </span><span
style="font-family:"arial","sans-serif""
lang="EN-US">I communicate with the socket client via
evapi module and using evapi_asynch_relay() in order to be
sure that communication are suspended and kamailio waiting
an order for doing something with</span> them (Accepte,
reject, release, ...). </p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"><br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"> I <span style="color:rgb(31,73,125)">want
to release a call</span>, <span
style="color:rgb(31,73,125)">using</span>
a <span style="color:rgb(31,73,125)">command</span>
“release this call”. I’m actually
doing this with dialog module (<span
style="color:rgb(31,73,125)">using</span>
get_dialog(callid,fromTag,toTag) and dlg_bye(‘all’)) but
is there anything else
(like another module) which could release a call without <span
style="color:rgb(31,73,125)">necessarily having to use </span>fromTag
and toTag to get
the context ? I didn’t find it on modules documentations.
<br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"><br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif";color:rgb(31,73,125)"
lang="EN-US">Also</span><span
style="font-family:"arial","sans-serif""
lang="EN-US"> after an
INVITE I’m waiting <span style="color:rgb(31,73,125)">for
the main app </span>to
accept or reject the call. For accept<span
style="color:rgb(31,73,125)">ing</span> and
continu<span style="color:rgb(31,73,125)">ing</span> the
transaction I found
“t_continue(tindex,tlabel,route)” on tmx module, but at
this moment
$T(id_index) and $T(id_label) are null, is it normal or I
did something wrong
? How can I simply resume the suspended call ?</span></p>
<p class="MsoNormal"><br>
<span
style="font-family:"arial","sans-serif""
lang="EN-US"></span></p>
<p class="MsoNormal"><br>
<span
style="font-family:"arial","sans-serif""
lang="EN-US"></span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US">Thanks; <br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"><br>
</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US">Best regards,</span></p>
<p class="MsoNormal"><span
style="font-family:"arial","sans-serif""
lang="EN-US"> </span></p>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a> <a \
class="moz-txt-link-freetext" \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" \
href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a \
class="moz-txt-link-abbreviated" \
href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a> Kamailio \
Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a \
class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a> \
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" \
href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre> </body>
</html>
[Attachment #6 (text/plain)]
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic