[asterisk-users] 'Start' in extension rules
Philipp Kempgen
philipp.kempgen at amooma.de
Sat Oct 13 14:46:38 CDT 2007
Turbo Fredriksson wrote:
> Quoting Philipp Kempgen <philipp.kempgen at amooma.de>:
>
>> Turbo Fredriksson wrote:
>>
>>> I can't seem to get the [s]tart to work in my extensions...
>>>
>>> ----- s n i p -----
>>> [default]
>>> exten => s,n,Goto(s-${DIALSTATUS},1)
>> The first priority in an extension must be 1 not n.
>
> Actually, I did. I just had it commented out because I didn't understand
> it's use:
>
> 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}.
>> exten => _X.,1,Dial(SIP/${EXTEN},20)
>> exten => _X.,n,Goto(s-${DIALSTATUS},1)
>
> Well, I don't want the first part because I want it to return 'invalid
> extension, try again' (Playback(pbx-invalid)) for extensions not
> configured... In other words, I want every single (local) extension
> to be defined.
Then maybe
[default]
exten => _X.,1,Dial(SIP/${EXTEN},20)
exten => _X.,n,Goto(s-${DIALSTATUS},1)
exten => s-ANSWER,1,Hangup()
exten => s-BUSY,1,VoiceMail(${EXTEN},b)
exten => s-NOANSWER,1,VoiceMail(${EXTEN},u)
exten => s-CHANUNAVAIL,1,Playback(pbx-invalid)
exten => _s-.,1,Goto(s-NOANSWER,1)
Or you could define every extension and use a macro. There's an example
in the default extensions.conf file (if you ran `make samples`).
Regards,
Philipp Kempgen
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de
Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
More information about the asterisk-users
mailing list