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

Moises Silva moises.silva at gmail.com
Mon Sep 3 14:21:17 CDT 2007


May be I am missing something, but, manager command DBPut should do
the trick of putting the DB value. And, since you are already using
the manager interface, you are using PHP or PERL to connect to the
Database, why not wait for the DBPut command response and from the
script execute wget??

Regards

On 9/3/07, Russell Brown <russell at lls.lls.com> wrote:
>
> 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         |
>  --------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>


-- 
"Within C++, there is a much smaller and cleaner language struggling
to get out."



More information about the asterisk-users mailing list