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

Russell Brown russell at lls.lls.com
Tue Sep 4 11:23:20 CDT 2007


To answer my own question I found a way to acheive what I wanted so
here's my solution for the record (might help someone else if they
search the archives).

In the Dialplan setup the following entries:

	[snom_setdndon]
	exten => _.,1,NoOp(Dummy Routine Called for ${EXTEN})
	exten => _.,n,TrySystem(wget -qb -O /dev/null -o /dev/null "http://admin:${SNOM_PASSWD}@${EXTEN}/dummy.htm?settings=save&dnd_mode=on")
	exten => _.,n,Hangup
	[snom_setdndoff]
	exten => _.,1,NoOp(Dummy Routine Called for ${EXTEN})
	exten => _.,n,TrySystem(wget -qb -O /dev/null -o /dev/null "http://admin:${SNOM_PASSWD}@${EXTEN}/dummy.htm?settings=save&dnd_mode=off")
	exten => _.,n,Hangup

and then from the manager interface one can do:

 Action: Originate
 Channel: Local/192.168.1.21 at snom_setdndon
 Application: NoOp
 Data: Setting DND

A bit convoluted but it works for me.

-- 
 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