[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reboot T23G from script
Author Message
Niksea Offline
Junior Member
**

Posts: 17
Joined: Apr 2017
Reputation: 0
Post: #1
Reboot T23G from script
Hello!

How i can reboot T23G (no registration in asterisk) from http request?

http://192.168.x.xx/servlet?p=settings-u...dmin:admin

not work (asked for autorization)

Firmware Version 44.81.0.70
Hardware Version 44.0.0.16.0.0.0

I`m try:
http://192.168.x.xxx/servlet?p=settings-...e&q=reboot
or
http://192.168.x.xxx/servlet?p=login&q=l...e&q=reboot

but:
403 - User Identity Forbidden
in chrome http://prntscr.com/ezsebl
(This post was last modified: 04-23-2017 09:44 AM by Niksea.)
04-23-2017 08:34 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
jolouis Offline
Moderator
*****

Posts: 339
Joined: Oct 2013
Reputation: 6
Post: #2
RE: Reboot T23G from script
Reboot seems like a pretty extreme measure to do via script... might want to try a re-provision first depending on your needs/scenario.

If for whatever reason you do need to do a reboot you can emulate the HTTP access your browser uses by executing two requests. The first will be the login request to the phone, providing username and password. If the phone accepts it, in the response there will be an authorization cookie. Take that cookie, and pass it along to your second request (the one that actually wants to do the reboot). The phone should accept the second request then and do the reboot.

Alternatively if you can configure the phone ahead of time for PUSHXML from your server, then there is an XML command you can send to the phone to request it to reboot. It's a simpler process than above, but requires you to configure PUSH XML.
04-24-2017 12:57 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Niksea Offline
Junior Member
**

Posts: 17
Joined: Apr 2017
Reputation: 0
Post: #3
RE: Reboot T23G from script
(04-24-2017 12:57 PM)jolouis Wrote:  Reboot seems like a pretty extreme measure to do via script... might want to try a re-provision first depending on your needs/scenario.

If for whatever reason you do need to do a reboot you can emulate the HTTP access your browser uses by executing two requests. The first will be the login request to the phone, providing username and password. If the phone accepts it, in the response there will be an authorization cookie. Take that cookie, and pass it along to your second request (the one that actually wants to do the reboot). The phone should accept the second request then and do the reboot.

Alternatively if you can configure the phone ahead of time for PUSHXML from your server, then there is an XML command you can send to the phone to request it to reboot. It's a simpler process than above, but requires you to configure PUSH XML.
Thank U for the answer!
04-24-2017 06:13 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Andrew_Yealink Offline
Administrator
*******

Posts: 11
Joined: Mar 2017
Reputation: 0
Post: #4
RE: Reboot T23G from script
Hello,
This is Andrew from Yealink Technical Support Team, nice to work with you.

For your problem, there are another way that you can use the feature Action URI. Action URI allows IP phones to interact with web server application by receiving and handling an HTTP or HTTPS GET request. It can realize remote control. For more information about how to use the feature, you can refer to the faq below:
http://support.yealink.com/faq/faqInfo?id=173
You can use the http script below to reboot the T23G after configure the Action URI Allow IP List:
http://192.168.x.xxx/cgi-bin/ConfigManAp...key=Reboot

But it also ask for authentication if you use the command for the first time on the browser. After you input the username and password, the browser will take the Cookie.

You also can adopt the method (Push xml) which jolouis provided.

Any question, please let me know.
Best Regards,
Andrew
04-26-2017 07:28 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T23G extensions registration Edie 1 5,789 12-18-2017 07:42 PM
Last Post: jolouis
  T23G custom logo apant 5 17,341 11-11-2017 09:36 AM
Last Post: complex1
  T23G Send incoming number to URL Jaume 7 16,185 10-02-2017 04:16 PM
Last Post: evo
  T23G - Setup to view incoming calls of other extensions apant 1 7,615 09-13-2016 12:53 AM
Last Post: apant
  problem with HEADSET T23G Ana 3 10,980 07-05-2016 03:43 PM
Last Post: Yealink_Michael
  T23G - 3 cascades accounts secureip 0 4,924 06-30-2016 05:14 AM
Last Post: secureip
  directly sending a call through CTI 3cx - T23G thatguycraig 5 17,588 01-08-2016 04:09 PM
Last Post: jennymoore
  What's the VPN problem, or my problem, with the T23G ?? mike366 1 7,538 09-20-2015 11:39 AM
Last Post: mike366
  T23G - "Unknown URI Scheme" tomweraksa 3 21,352 09-20-2015 09:57 AM
Last Post: mike366
  T23G 3CX Issue with 3 keys on right worcestercomp 2 11,272 05-08-2015 02:33 AM
Last Post: CWR

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication