[Asterisk-Users] Timeout Gives T in cdr.
    Frank Mandarino 
    asterisk at spindrift.on.ca
       
    Mon May  3 11:56:13 MST 2004
    
    
  
Hans-Henrik Andresen wrote:
 > Hi,
 >
 > If I do this in extensions.conf
 >
 > exten => 411,1,Dial(IAX2/hhandresen at iaxtel/18005558355 at iaxtel,40,rS(10))
 >
 > the line is cut of in 10 sec., thats fine, but in CDR I got dst as T, 
and not 411.
 >
 > How can I handle this so I  still get kicked of after 10 sec., but 
get 411 as dst in my cdr ?
 >
 >
I have worked around this issue by storing the extension in a variable, 
then restoring it using a Goto in the 'T' processing.  For example:
exten => 411,1,SetVar(ORIG_EXTEN=${EXTEN})
exten => 411,2,Dial(IAX2/hhandresen at iaxtel/18005558355 at iaxtel,40,rS(10))
          ...
exten => 411,200,Playback(call-timed-out)
exten => 411,201,Hangup
exten => T,1,Goto(${ORIG_EXTEN},200)
I wonder if would make sense to add an additional column to the CDR 
record to include the number that was originally dialed?
../fam
-- 
Frank A. Mandarino                           fmandarino at spindrift.on.ca
Spindrift Management, Toronto
416 642-3404
    
    
More information about the asterisk-users
mailing list