[asterisk-bugs] [JIRA] (ASTERISK-28143) app_amd: Infinite loop on silent calls

Jessie Kid Fernando (JIRA) noreply at issues.asterisk.org
Mon Oct 28 15:27:40 CDT 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=248570#comment-248570 ] 

Jessie Kid Fernando commented on ASTERISK-28143:
------------------------------------------------

Hi Everyone,

Hope you could help. This one appears to be a stuck call. No rtp activity and was stuck on AMD application. 

Stuck call on channelstats:

168.215.247.130  4d01b98619b  00:21:15 0000000131  0000000000 ( 0.00%) 0.0000 0000000001  0000000000 ( 0.00%) 0.0033

[root at dialer-pq-apse1-lp27 asterisk]# asterisk -rx 'sip show channel 4d01b98619b'

  * SIP Call
  Curr. trans. direction:  Outgoing
  Call-ID:                4d01b98619b5ae284b8f668805aeca22 at 18.141.37.93:5060
  Owner channel ID:       SIP/magna1-00005efa
  Our Codec Capability:   (ulaw)
  Non-Codec Capability (DTMF):   1
  Their Codec Capability:   (ulaw)
  Joint Codec Capability:   (ulaw)
  Format:                 (ulaw)
  T.38 support            No
  Video support           No
  MaxCallBR:              384 kbps
  Theoretical Address:    168.215.247.130:5060
  Received Address:       168.215.247.130:5060
  SIP Transfer mode:      open
  Force rport:            Yes
  Audio IP:               18.141.37.93 (local)
  Our Tag:                as78cd1ae6
  Their Tag:              DK3pmg6SN4tUe
  SIP User agent:
  Username:               19896592282
  Peername:               magna1
  Original uri:           sip:19896592282 at 168.215.247.130:5060
  Need Destroy:           No
  Last Message:           Tx: ACK
  Promiscuous Redir:      No
  Route:                  <sip:168.215.247.130:5060;lr>, <sip:sansay125352536rdb124155 at 67.221.11.72:5060;lr;transport=udp>
  DTMF Mode:              rfc2833
  SIP Options:            (none)
  Session-Timer:          Inactive
  Transport:              UDP
  Media:                  RTP


[root at dialer-pq-apse1-lp27 asterisk]# asterisk -rx 'core show channel   T.38 support            No'
Usage: core show channel <channel>
       Shows lots of information about the specified channel.
[root at dialer-pq-apse1-lp27 asterisk]#
[root at dialer-pq-apse1-lp27 asterisk]# asterisk -rx 'core show channel SIP/magna1-00005efa'
 -- General --
           Name: SIP/magna1-00005efa
           Type: SIP
       UniqueID: 1572292970.151591
       LinkedID: 1572292970.151589
      Caller ID: +19892827928
 Caller ID Name: V0281602480040267347
Connected Line ID: +19892827928
Connected Line ID Name: V0281602480040267347
Eff. Connected Line ID: +19892827928
Eff. Connected Line ID Name: V0281602480040267347
    DNID Digits: (N/A)
       Language: en
          State: Up (6)
  NativeFormats: (ulaw)
    WriteFormat: slin
     ReadFormat: slin
 WriteTranscode: Yes (slin at 8000)->(ulaw at 8000)
  ReadTranscode: Yes (ulaw at 8000)->(slin at 8000)
 Time to Hangup: 0
   Elapsed Time: 0h17m57s
      Bridge ID: (Not bridged)
 --   PBX   --
        Context: default
      Extension: 8387
       Priority: 3
     Call Group: 0
   Pickup Group: 0
    Application: AMD
           Data: 2000,2000,1000,5000,120,50,4,256
 Call Identifer: [C-0000c6eb]
      Variables:
AGISTATUS=SUCCESS
CAMPCUST=OUTSOURC
PLAYBACKSTATUS=SUCCESS
DIALEDPEERNUMBER=magna1/19896592282
SIPCALLID=4d01b98619b5ae284b8f668805aeca22 at 18.141.37.93:5060
  CDR Variables:
level 1: clid="V0281602480040267347" <+19892827928>
level 1: src=+19892827928
level 1: dst=8387
level 1: dcontext=default
level 1: channel=SIP/magna1-00005efa
level 1: lastapp=AppDial
level 1: lastdata=(Outgoing Line)
level 1: start=1572292970.109709
level 1: answer=1572292987.090434
level 1: end=1572292987.093691
level 1: duration=16
level 1: billsec=0
level 1: disposition=8
level 1: amaflags=3
level 1: uniqueid=1572292970.151591
level 1: linkedid=1572292970.151589
level 1: sequence=103234

level 2: clid="V0281602480040267347" <+19892827928>
level 2: src=+19892827928
level 2: dst=8387
level 2: dcontext=default
level 2: channel=SIP/magna1-00005efa
level 2: lastapp=AMD
level 2: lastdata=2000,2000,1000,5000,120,50,4,256
level 2: start=1572292987.361315
level 2: answer=1572292987.361316
level 2: end=0.000000
level 2: duration=1060
level 2: billsec=1060
level 2: disposition=1
level 2: amaflags=3
level 2: uniqueid=1572292970.151591
level 2: linkedid=1572292970.151589
level 2: sequence=103388


> app_amd: Infinite loop on silent calls 
> ---------------------------------------
>
>                 Key: ASTERISK-28143
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28143
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_amd
>    Affects Versions: 15.6.1
>         Environment: Ubuntu with asterisk 
>            Reporter: Abhay Gupta
>            Assignee: Abhay Gupta
>              Labels: patch
>      Target Release: 13.27.0, 16.4.0, 17.0.0
>
>         Attachments: amd.patch
>
>
> On our production server , some of the calls never return from AMD application , from logs we could see that they have last gone into AMD() of dialplan and comes out only when the call is HANGUP .
> The suggested patch is to remove that infinite loop and has been tested for last few months and have been working well .



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list