[SR-Users] kamcmd dlg.end_dlg not working in shell script

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 9 09:46:02 CET 2021


Hello,

it is hard to say why your shell script does not work, when the command
runs ok in the terminal. Maybe missing/empty parameters, or insufficient
access rights, ...

Cheers,
Daniel

On 08.03.21 20:23, Andrew Chen wrote:
> Hi all,
>
> I have a script that cleans up hanging dialog and for some reason,
> executing 'kamcmd dlg.end_dlg' does not seem to work.  Below I log
> events of stuck calls and as you can see it just keeps logging the
> same call until I manually run the kamcmd either in bash shell prompt
> or in kamcmd cli:
>
> 2021-03-08T19:00:04.347807+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:00:04 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:01:02.531822+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:01:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:02:02.689823+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:02:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:03:02.044960+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:03:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:04:02.436588+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:04:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:05:02.685572+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:05:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:06:02.775561+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:06:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:07:01.867021+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:07:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:08:01.888512+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:08:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:09:02.146887+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:09:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:10:02.649627+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:10:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:11:01.904948+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:11:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:12:01.932267+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:12:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:13:02.428128+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:13:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:14:02.617683+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:14:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:15:01.863099+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:15:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:16:01.650299+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:16:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:17:02.338576+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:17:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:18:01.743163+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:18:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:19:02.257369+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:19:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:20:01.624170+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:20:01 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
> 2021-03-08T19:21:02.287343+00:00 sjointgkama51
> /scripts/get-call-from-hepic.sh - get-call-from-hepic: Mon Mar 8
> 19:21:02 UTC 2021 Found active dialog on completed call. Delete call
> using h_entry: 1333 *h_id*: 11225 on SIP Call-ID 7j5r1msitcvg9siohoul
>
>
> Thoughts?
>
>
> Thanks!
>
> -- 
> Andy Chen
> Sr. Telephony Lead Engineer
> achen@ <mailto:achen at thinkingphones.com>fuze.com <http://fuze.com>
>
>
>
> *Confidentiality Notice: The information contained in this e-mail and any
> attachments may be confidential. If you are not an intended recipient, you
> are hereby notified that any dissemination, distribution or copying of
> this
> e-mail is strictly prohibited. If you have received this e-mail in error,
> please notify the sender and permanently delete the e-mail and any
> attachments immediately. You should not retain, copy or use this e-mail or
> any attachment for any purpose, nor disclose all or any part of the
> contents to any other person. Thank you.*
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at 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
Funding: https://www.paypal.me/dcmierla

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210309/a0dcc7b0/attachment.htm>


More information about the sr-users mailing list