[asterisk-users] extensions.conf HELP with dial plan!!

Steve Totaro stotaro at totarotechnologies.com
Sun Jun 15 10:16:35 CDT 2008


On Sun, Jun 15, 2008 at 11:09 AM, RoLaNd RoLaNd <r_o_l_a_n_d at hotmail.com> wrote:
>   hello all,
> im looking for a way to do the following:
>
> when a SPECIFIC call comes through to asterisk through sip, i want it to b
> directed to a pool of specific sip extensions (9 extensions) where asterisk
> tries one after the other till lhe finds one of them thats actually on.
> i want to add a step for asterisk to follow which is, when a sip extension
> doesn't answer or its offline, instead of immediately transferring to voice
> mail, i want it to dial that sip holder's number so it transfers the call to
> his cellphone for example. and if he didn't answer his cellphone its then
> that i want it to direct it to voice mail.
> i want to add another item to the operator menu, instead of just receiving
> the call and telling the caller to either dial extension or 100 for
> operator, i want asterisk to offer the caller an additional option like for
> example pressing 2, would direct you to a list of key personnels with their
> respective extensions.
>
> please find below my extensions.conf:
>
>
> [sipura-line]
> exten => 201,1,Answer() ; Answer inbound calls
> exten => 201,2,Playback(silence/1)
> exten => 201,3,Background(simzy1) ; input an extension
> exten => 201,4,Wait(8)
> include => spa
> exten => 201,n,Hangup()
>
> [spa]
> exten =>_201,1,GoTo(sipura-line,${EXTEN},1)
> exten => _1XX,1,Dial(SIP/${EXTEN},15) ;each ring equals to 5 seconds, so it
> will ring 3 times
> exten => _1XX,2,VoiceMail(${EXTEN}@default)
> exten => _1XX,3,HangUp()
> exten => _2XX,1,Dial(SIP/${EXTEN},15) ;each ring equals to 5 seconds, so it
> will ring 3 times
> exten => _2XX,2,VoiceMail(${EXTEN}@default)
> exten => _2XX,3,HangUp()
> exten =>_01,1,Dial(SIP/200)
> exten => 203,1,VoicemailMain
> exten => _2XX,1,Dial(SIP/${EXTEN},15)
>

Queues in round robin might be a better strategy for your first requirements.

The last part of your requirements could easily be achieved by
creating a exten that background() a recording of the key personnel.

Thanks,
Steve Totaro



More information about the asterisk-users mailing list