----- Original Message -----
From: "James Freire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 20, 2004 9:09 AM
Subject: [Asterisk-Users] Asterisk PBX Functions via SIP phone
> Hi All,
>
> 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.
>
> Thanks,
>
> 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...
Then in your extension calling macro, you're going to want to check against
the DB like this...
[macro-insidedial]
exten => s,1,DbGet(${dnd}=features/dnd)
exten => s,2,DbGet(${fw}=features/fw)
exten => s,3,Dial(${ARG1},25,tT)
exten => s,4,VoiceMail(u${ARG1})
exten => s,5,Hangup()
exten => s,102,GotoIf($[${dnd} = '1']?200:2)
exten => s,103,GotoIf($[${fw} = '1']?300:3)
exten => s,104,VoiceMail(b${ARG1})
exten => s,200,VoiceMail(b${ARG1})
exten => s,201,Hangup()
exten => s,300,Dial(SIP/[EMAIL PROTECTED],60)
exten => s,301,Congestion()
be sure to include [verticalservice] in your inside-office context...
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users