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) exten => s-BUSY,1,Voicemail(${EXTEN}, b) exten => 2403,1,Dial(sip/${EXTEN},20,t) exten => _X.,2,Playback(pbx-invalid) ----- s n i p ----- If I dial '2403' with is off-hook, I don't get to the voice mail, I get the playback... Setting debug shows that it skipps the 's' parts... Why? In case I've missunderstood all the docs I've seen on the issue, the thing I'm trying to do is have the call sent to the voicemail of the extension called if the extension is busy. If not, dial the extension... I've managed to write the same thing, but a LOT more complex. And I'm going to have about thirty local extension, and I want it simplified...
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.> exten => s-BUSY,1,Voicemail(${EXTEN}, b)Don't put any spaces in the app data.> exten => 2403,1,Dial(sip/${EXTEN},20,t)Replace sip by SIP.> exten => _X.,2,Playback(pbx-invalid) > ----- s n i p -----> In case I've missunderstood all the docs I've seen > on the issue, the thing I'm trying to do is have > the call sent to the voicemail of the extension > called if the extension is busy. If not, dial the > extension...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-.,1,Goto(s-NOANSWER,1) See http://www.the-asterisk-book.com/unstable/voicemail-beispiele.html 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
On 10/13/07, Turbo Fredriksson <turbo at bayour.com> wrote:> > Setting debug shows that it skipps the 's' parts... > > Why?because you don't seem to have exten => s,1,something. --
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) > exten => s-BUSY,1,Voicemail(${EXTEN}, b) > >The extensions 's' needs to start with a priority of 1. For example: exten => s,1,Answer() exten => s,n,Wait(1) exten => s,n,Goto(s-${DIALSTATUS},1) exten => s-BUSY,1,Voicemail(${EXTEN}, b) Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."