[Home]

Summary:ASTERISK-07901: set(TIMEOUT(absolute)) is not honored after a call to Dial()
Reporter:Oded Arbel (odeda)Labels:
Date Opened:2006-10-09 04:31:05Date Closed:2011-06-07 14:08:24
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In this example dial plan:

exten = _XXX.,n,Set(extension=${EXTEN})
exten = _XXX.,n,Set(TIMEOUT(absolute) = 20)
exten = _XXX.,n,Dial(SIP/${EXTEN})
exten = _XXX.,n,Goto(s-${DIALSTATUS},1)

When the specified SIP extension is being dialed, the call is not terminated after the specified 20 seconds.

I looked at the code for the TIMEOUT function and it looks like it is supposed to output some verbose information to the console, but setting verbosity really high, this is all I got:

Connected to Asterisk  currently running on dev-qa1 (pid = 10926)
Verbosity was 4 and is now 8
   -- Accepting AUTHENTICATED call from 192.118.54.137:
      > requested format = ulaw,
      > requested prefs = disabled,
      > actual format = ulaw,
      > host prefs = disabled,
      > priority = disabled
   -- Executing [2006@local:2] Set("IAX2/officepbx-2", "extension=2006") in new stack
   -- Executing [2006@local:5] Set("IAX2/officepbx-2", "TIMEOUT(absolute) = 20") in new stack
   -- Executing [2006@local:6] Dial("IAX2/officepbx-2", "SIP/2006") in new stack
   -- Called 2006
   -- SIP/2006-006677e0 is ringing
   -- SIP/2006-006677e0 answered IAX2/officepbx-2

Then after a while, I get bored and hangup myself.

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

I'm using Asterisk svn trunk version 44743 on a CentOS 4.4 with uname like this:
Linux dev-qa1.atelis.net 2.6.9-42.0.3.EL #1 Fri Oct 6 06:02:37 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux

Comments:By: Tilghman Lesher (tilghman) 2006-10-09 10:30:12

Please remove the spaces around the '=' and try again.

By: Oded Arbel (odeda) 2006-10-09 13:23:48

Yes, indeed that was the issue. I get it that it didn't recognise "TIMEOUT(absolute) " as "TIMEOUT(absolute)" ?

By: Tilghman Lesher (tilghman) 2006-10-09 13:36:14

Correct.