Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
There is according the module docs. But there isn't. ;-)
-- Sent from mobile. Apologies for brevity and errors.
-----Original Message----- From: Igor Olhovskiy igorolhovskiy@gmail.com To: "Kamailio (SER) - Users Mailing List" sr-users@lists.kamailio.org Sent: Tue, 04 Sep 2018 6:48 AM Subject: [SR-Users] dlg.end_dlg on RTP timeout
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
As of now - just string in logs )
Regards, Igor On Sep 4, 2018, 1:52 PM +0200, Daniel-Constantin Mierla miconda@gmail.com, wrote:
Hello, what do you get from rtpengine on rtp timeout? An RPC call back or an http request? Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference --www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference --www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference --www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --www.asipto.com
There is the dlg.terminate_dlg rpc command that requires callid, from-tag and to-tag as parameters:
* https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dlg.r.terminate_...
So it expects something like:
<?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>dlg.terminate_dlg</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> <param><value><string>_FROM_TAG_VALUE__</string></value></param> <param><value><string>_TO_TAG_VALUE__</string></value></param> </params> </methodCall>
I planned to make the from-tag and to-tag optional for quite some time, but didn't get the time for it yet.
Cheers, Daniel
On 05.09.18 08:52, Richard Fuchs wrote:
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
This is now supported as per https://github.com/sipwise/rtpengine/commit/89084da8d820919b44a0244e16e67018...
Cheers
On 2018-09-05 05:39, Daniel-Constantin Mierla wrote:
There is the dlg.terminate_dlg rpc command that requires callid, from-tag and to-tag as parameters:
* https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dlg.r.terminate_...
So it expects something like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>dlg.terminate_dlg</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> <param><value><string>_FROM_TAG_VALUE__</string></value></param> <param><value><string>_TO_TAG_VALUE__</string></value></param> </params> </methodCall>
I planned to make the from-tag and to-tag optional for quite some time, but didn't get the time for it yet.
Cheers, Daniel
On 05.09.18 08:52, Richard Fuchs wrote:
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference --www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference --www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla --www.asipto.com www.twitter.com/miconda --www.linkedin.com/in/miconda Kamailio World Conference --www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --www.asipto.com
Wow. Thanks. Than was fast
Regards, Igor On Sep 6, 2018, 11:18 AM +0200, Richard Fuchs rfuchs@sipwise.com, wrote:
This is now supported as per https://github.com/sipwise/rtpengine/commit/89084da8d820919b44a0244e16e67018...
Cheers
On 2018-09-05 05:39, Daniel-Constantin Mierla wrote:
There is the dlg.terminate_dlg rpc command that requires callid, from-tag and to-tag as parameters: * https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dlg.r.terminate_... So it expects something like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>dlg.terminate_dlg</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> <param><value><string>_FROM_TAG_VALUE__</string></value></param> <param><value><string>_TO_TAG_VALUE__</string></value></param> </params> </methodCall>
I planned to make the from-tag and to-tag optional for quite some time, but didn't get the time for it yet.
Cheers, Daniel
On 05.09.18 08:52, Richard Fuchs wrote:
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with -b http(s)://myrpcserver.ip/path -x 1 and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall> Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules. Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello, what do you get from rtpengine on rtp timeout? An RPC call back or an http request? Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote: > Hi all! > > Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine? > > Or only look at logs/redis database with external tool? > > Regards, Igor > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Richard,
this is awesome! Thanks!
One question: Currently, the XML-RPC URL has to be set in the config, right? I frequently have the following setup: - 2x Kamailio - 2x RTPEngine (and each Kamailio is connected to both RTPEngines, for redundancy and maintenance reasons)
If I configure the URL statically, RTPEngine will only try to terminate the dialog on one of the Kamailios, not from the Kamailio where it received the call. If I understand the source-code correctly, you store the information, from where the dialog was received anyway, right? (created_from_addr / created_from in struct call). Would it be feasable, to create the URL dynamically based on the Proxy where it came from?
Thanks, Carsten
--
Carsten Bock CEO (Geschäftsführer)
ng-voice GmbH Millerntorplatz 1 20359 Hamburg / Germany
http://www.ng-voice.com mailto:carsten@ng-voice.com
Office +49 40 5247593-40 Fax +49 40 5247593-99
Sitz der Gesellschaft: Hamburg Registergericht: Amtsgericht Hamburg, HRB 120189 Geschäftsführer: Carsten Bock Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben: http://www.ng-voice.com/imprint/
Am Do., 6. Sep. 2018 um 11:16 Uhr schrieb Richard Fuchs rfuchs@sipwise.com:
This is now supported as per https://github.com/sipwise/rtpengine/commit/89084da8d820919b44a0244e16e67018...
Cheers
On 2018-09-05 05:39, Daniel-Constantin Mierla wrote:
There is the dlg.terminate_dlg rpc command that requires callid, from-tag and to-tag as parameters:
So it expects something like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>dlg.terminate_dlg</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> <param><value><string>_FROM_TAG_VALUE__</string></value></param> <param><value><string>_TO_TAG_VALUE__</string></value></param> </params> </methodCall>
I planned to make the from-tag and to-tag optional for quite some time, but didn't get the time for it yet.
Cheers, Daniel
On 05.09.18 08:52, Richard Fuchs wrote:
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote:
Hi all!
Is there any way to end dialog in Kamailio on RTP Timeout event on RTPEngine?
Or only look at logs/redis database with external tool?
Regards, Igor
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On 2018-09-06 06:13, Carsten Bock wrote:
Hi Richard,
this is awesome! Thanks!
One question: Currently, the XML-RPC URL has to be set in the config, right? I frequently have the following setup:
- 2x Kamailio
- 2x RTPEngine
(and each Kamailio is connected to both RTPEngines, for redundancy and maintenance reasons)
If I configure the URL statically, RTPEngine will only try to terminate the dialog on one of the Kamailios, not from the Kamailio where it received the call. If I understand the source-code correctly, you store the information, from where the dialog was received anyway, right? (created_from_addr / created_from in struct call). Would it be feasable, to create the URL dynamically based on the Proxy where it came from?
Yes, that is already supported. A double percent "%%" in the URL will be replaced with the address that the call was created from, e.g. `b2b-url = http://%%:8090/%60
Additionally, this address can be overridden with the `xmlrpc-address=...` flag in one of the rtpengine signalling commands.
Cheers
That's great, thank you!
Cheers, Daniel
On 06.09.18 11:15, Richard Fuchs wrote:
This is now supported as per https://github.com/sipwise/rtpengine/commit/89084da8d820919b44a0244e16e67018...
Cheers
On 2018-09-05 05:39, Daniel-Constantin Mierla wrote:
There is the dlg.terminate_dlg rpc command that requires callid, from-tag and to-tag as parameters:
* https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dlg.r.terminate_...
So it expects something like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>dlg.terminate_dlg</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> <param><value><string>_FROM_TAG_VALUE__</string></value></param> <param><value><string>_TO_TAG_VALUE__</string></value></param> </params> </methodCall>
I planned to make the from-tag and to-tag optional for quite some time, but didn't get the time for it yet.
Cheers, Daniel
On 05.09.18 08:52, Richard Fuchs wrote:
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote: > Hi all! > > Is there any way to end dialog in Kamailio on RTP Timeout event > on RTPEngine? > > Or only look at logs/redis database with external tool? > > Regards, Igor > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Three cheers!
-- Sent from mobile. Apologies for brevity and errors.
-----Original Message----- From: Daniel-Constantin Mierla miconda@gmail.com To: "Kamailio (SER) - Users Mailing List" sr-users@lists.kamailio.org, Richard Fuchs rfuchs@sipwise.com Sent: Thu, 06 Sep 2018 6:45 AM Subject: Re: [SR-Users] dlg.end_dlg on RTP timeout
That's great, thank you!
Cheers, Daniel
On 06.09.18 11:15, Richard Fuchs wrote:
This is now supported as per https://github.com/sipwise/rtpengine/commit/89084da8d820919b44a0244e16e67018...
Cheers
On 2018-09-05 05:39, Daniel-Constantin Mierla wrote:
There is the dlg.terminate_dlg rpc command that requires callid, from-tag and to-tag as parameters:
https://kamailio.org/docs/modules/5.1.x/modules/dialog.html#dlg.r.terminate_...
So it expects something like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>dlg.terminate_dlg</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> <param><value><string>_FROM_TAG_VALUE__</string></value></param> <param><value><string>_TO_TAG_VALUE__</string></value></param> </params> </methodCall>
I planned to make the from-tag and to-tag optional for quite some time, but didn't get the time for it yet.
Cheers, Daniel
On 05.09.18 08:52, Richard Fuchs wrote:
Yup that's exactly right.
It would be fairly simple to implement an additional XMLRPC format if there's a particular one that's more friendly towards Kamailio.
Cheers
On 2018-09-05 02:42, Daniel-Constantin Mierla wrote:
Looking quickly at the readme of rtpengine application and digging a bit with google, it is something like rtpengine has to be started with
-b http(s)://myrpcserver.ip/path -x 1
and then the xmlrpc request is going to be sent to that url, having a format like:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall> <methodName>teardown</methodName> <params> <param><value><string>_CALLID_VALUE__</string></value></param> </params> </methodCall>
Is it right? If yes, then I can try to make a sample config that could handle it using xmlops, xhttp and jsonrpcs modules.
Cheers, Daniel
On 05.09.18 08:24, Richard Fuchs wrote:
It does an XMLRPC callback. Currently there's two formats for it, one is a sems sbc teardown request (using the from-tag), the other is a generic "teardown" command using the call ID.
Cheers
On 2018-09-04 07:52, Daniel-Constantin Mierla wrote:
Hello,
what do you get from rtpengine on rtp timeout? An RPC call back or an http request?
Cheers, Daniel
On 04.09.18 12:48, Igor Olhovskiy wrote: > Hi all! > > Is there any way to end dialog in Kamailio on RTP Timeout event > on RTPEngine? > > Or only look at logs/redis database with external tool? > > Regards, Igor > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users