[Asterisk-Users] Asterisk PBX Functions via SIP phone
Walt Reed
asterisk at linuxguy.com
Fri Aug 20 11:09:08 MST 2004
On Fri, Aug 20, 2004 at 10:13:16AM -0700, Chris Shaw said:
> ----- Original Message -----
> From: "James Freire" <JFreire at Comtech21.com>
>
> > I am using a Grandstream BT100 and I have been trying to get the PBX
> features to work for DND, call foward, etc. These functions do work when I
> use my POTS phones hooked up to my Zap cards. But I cannot get the PBX
> functions (ie *78, *79) to work using my SIP phones. Is there a feature that
> has to be enabled to do this? I know these functions are available within
> the GS phone but all of them seem to just show the phone as being busy, even
> though, say, call foward is supposed to foward. It just makes the phone
> busy. I figure it would be easier just to have asterisk handling all those
> PBX functions.
> >
> > James
>
> Someone correct me if I'm wrong but I believe you'll need the dialplan for
> this one...
>
> What I envision is doing something like this...
>
> [verticalservice]
>
> exten => *78,1,DbGet(${dnd}=features/dnd)
> exten => *78,2,DbPut(features/dnd=1)
> exten => *78,3,Playback(pbx-dndenabled)
> exten => *78,4,Hangup()
> exten => *78,102,GotoIf($[${dnd} = '0')]?103:104)
> exteh => *78,103,DbPut(features/dnd=1)
> exten => *78,104,Playback(pbx-dndenabled)
> exten => *78,105,Hangup()
>
> exten => *79 ... etc...
Wouldn't you need to track each extension? something like:
exten => *78,1,DbGet(${dnd}=dnd/${CALLERIDNUM})
exten => *78,2,DbPut(dnd/${CALLERIDNUM}=1)
exten => *78,3,Playback(pbx-dndenabled)
exten => *78,4,Hangup()
etc.?
The wiki has an exmple for call forwarding:
http://www.voip-info.org/wiki-Asterisk+call+forwarding
More information about the asterisk-users
mailing list