[Home]

Summary:ASTERISK-02220: Channel variables in AGI application after Dial.
Reporter:Danilo Lotina F. (dlotina)Labels:
Date Opened:2004-08-13 10:13:54Date Closed:2011-06-07 14:10:27
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I've testing mu calling card Agi application. In many times when it make sucessful calls it gets 'noresponse' from DIALEDTIME, ANSWEREDTIME and DIALEDSESSIONTIME variables.

It seems happens when the caller hangs up and the "Spawn extension" goes before the get_variable.



****** ADDITIONAL INFORMATION ******

Agi command sequence:

exec("Dial XXXX")
$sessiontime=get_variable("ANSWEREDTIME")
$AGI->exec("NoOp $sessiontime");

results: (GOOD)
   -- AGI Script Executing Application: (Dial) Options: (SIP/16082551234@200.29.65.10|30|S(927))
   -- Setting call duration limit to 927 seconds.
   -- Called 16082551234@200.29.65.10
   -- SIP/200.29.65.10-d398 is making progress passing it to Zap/2-1
   -- SIP/200.29.65.10-d398 answered Zap/2-1
   -- Channel 0/2, span 1 got hangup
   -- AGI Script Executing Application: (NoOp) Options: (4)
 == Spawn extension (from_lucent, 80101, 3) exited non-zero on 'Zap/2-1'
   -- Hungup 'Zap/2-1'

BAD:

   -- AGI Script Executing Application: (Dial) Options: (SIP/16082551234@200.29.65.10|30|S(927))
   -- Setting call duration limit to 927 seconds.
   -- Called 16082551234@200.29.65.10
   -- SIP/200.29.65.10-1c48 is making progress passing it to Zap/1-1
   -- SIP/200.29.65.10-1c48 answered Zap/1-1
   -- Channel 0/1, span 1 got hangup
 == Spawn extension (from_lucent, 80101, 3) exited non-zero on 'Zap/1-1'
   -- Hungup 'Zap/1-1'
Comments:By: Danilo Lotina F. (dlotina) 2004-08-13 10:19:27

ERRATA:

It seems happens when the caller hangs up and the "Spawn extension" exits before the get_variable command is executed.

By: Mark Spencer (markster) 2004-08-13 15:24:43

You can use DeadAGI

By: Brian West (bkw918) 2004-08-22 23:05:47

Confirm deadAGI fixes it.. if not please find me on IRC bkw_ is my nick.

Thanks,
Brian