[asterisk-users] Re: dynamically modifying the dialplan?

Benny Amorsen benny+usenet at amorsen.dk
Sun Nov 12 09:03:07 MST 2006


>>>>> "NZ" == Norbert Zawodsky <norbert at zawodsky.at> writes:

NZ> If I leave my desk I press this button. A light should show up as
NZ> an indicator/reminder. From this moment all calls to my extension
NZ> should immediately be transferred to my voicemail box.

NZ> When I return I press the button again, the light goes off and all
NZ> calls to my extension should ring my phone again.

Apart from the light it's very easy to achieve.

12345,1,Set(DB(desk/away)=${IF($["${DB(desk/away)}"="away"]?back:away)}
12345,n,Hangup

(Did I ever mention that I hate dialplan syntax? There's probably a
dozen bracket or quotation errors in the above, and it took 10 minutes
to write just that one line.)

Check in the dial plan when you try to dial the phone whether
DB(desk/away) is away or back, and go to voicemail. Then set your
phone up to dial 12345 when that particular button is pressed.

An alternative is to make an extension which goes to voice mail
directly, and simply redirect the phone to that extension. It's a bit
more than one button, but at least the Snom 360 will show that the
redirection is active. Perhaps the magical function buttons can even
be programmed to do it.


/Benny




More information about the asterisk-users mailing list