[asterisk-users] 'Start' in extension rules

Eric "ManxPower" Wieling eric at fnords.org
Sun Oct 14 12:19:57 CDT 2007


Tilghman Lesher wrote:
> On Saturday 13 October 2007 18:08:49 Turbo Fredriksson wrote:
>> Quoting Philipp Kempgen <philipp.kempgen at amooma.de>:
>>>> exten => s,1,Answer()
>>>> exten => s,n,Goto(s-${DIALSTATUS},1)
>>> This still doesn't make sense because you did not Dial()
>>> before jumping based on ${DIALSTATUS}.
>> Ok, make sense. But still no go:
>>
>> ----- s n i p -----
>> [default]
>> exten => s,1,Answer()
>> exten => s,2,Dial(SIP/${EXTEN},20,t)
>> exten => s,4,Goto(default,s-${DIALSTATUS},1)
> 
> 1, 2, 4...
> 

Also, the "s" extension is only executed under a few situations.  If a 
call comes in on an FXO port or you execute a macro or you have 
immediate=yes for that channel.

"s" should not stand for "start".  It should be called "stupid" as in 
"the device is too stupid to tell Asterisk what the dialed extension is".





More information about the asterisk-users mailing list