[asterisk-users] Manager Originate without phone off hook?

Russell Brown russell at lls.lls.com
Mon Sep 3 13:03:49 CDT 2007


I'm trying to keep the DND status of my Snom phones and the astdb in
line but I'm stuck on integrating my gui DND button which talks to *
using the manager interface (actually it uses Astmanproxy as the gui
host is on a different network to asterisk and can't see the Snom's
across the network).

All's working fine in my Dialplan; when someone dials the code for
DND-on or DND-off I can do:

	....
	exten => *08,n,System(wget -qb -O /dev/null -o /dev/null
	"http://admin:secret@${MYSNOM}/dummy.htm?settings=save&dnd_mode=off")
	exten => *08,n,Set(DB(DND/SIP/${MYSNOM})=0)
	....

which turns the DND indicator on the phone off or on in line with the
database record.  That's Great.

However, I'm completely flummoxed on getting a GUI DND button to work
sensibly via the Manager interface.

I could use 'Originate' to make the phone dial '*08' but that forces the
user to pickup the phone when they click the GUI DND button.  Not Good :-(

So...  can anyone suggest how I can use the Manager interface to set an
astdb record and send a request to the Snom to turn its DND indicator on
or off at the same time?

Thanks in advance.
-- 
 Regards,
     Russell
 --------------------------------------------------------------------
| Russell Brown          | MAIL: russell at lls.com PHONE: 01780 471800 |
| Lady Lodge Systems     | WWW Work: http://www.lls.com              |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk         |
 --------------------------------------------------------------------



More information about the asterisk-users mailing list