Skip to content
Snippets Groups Projects
  • Richard Mudgett's avatar
    f88b9520
    app_dial: Immediately exit dial if the caller is already hung up. · f88b9520
    Richard Mudgett authored
    If a caller hangs up before dial is executed within an AGI then the AGI
    has likely eaten all queued frames before executing the dial in DeadAGI
    mode.  With the caller hung up and no pending frames from the caller's
    read queue, dial would not know that the call has hung up until a called
    channel answers.  It is rather annoying to whoever just answered the
    non-existent call.
    
    Dial should not continue execution in DeadAGI mode, hangup handlers, or
    the h exten.
    
    * Added a check early in dial to abort dialing if the caller has hungup.
    
    ASTERISK-25307 #close
    Reported by: David Cunningham
    
    Change-Id: Icd1bc0764726ef8c809f76743ca008d0f102f418
    f88b9520
    History
    app_dial: Immediately exit dial if the caller is already hung up.
    Richard Mudgett authored
    If a caller hangs up before dial is executed within an AGI then the AGI
    has likely eaten all queued frames before executing the dial in DeadAGI
    mode.  With the caller hung up and no pending frames from the caller's
    read queue, dial would not know that the call has hung up until a called
    channel answers.  It is rather annoying to whoever just answered the
    non-existent call.
    
    Dial should not continue execution in DeadAGI mode, hangup handlers, or
    the h exten.
    
    * Added a check early in dial to abort dialing if the caller has hungup.
    
    ASTERISK-25307 #close
    Reported by: David Cunningham
    
    Change-Id: Icd1bc0764726ef8c809f76743ca008d0f102f418
app_dial.c 119.21 KiB