I have a custom script that I run to configure my new phones to my system. it basically looks for the input of an extension number from the user and then builds the MAC.cfg file based on what is input. the script works great, except that it will not run automatically when a new phone is plugged into the system or one is factory defaulted.
my y000000000028.cfg is as follows
Code:
#!version:1.0.0.1
# action_url.setup_completed = http://172.16.4.2/yealink/newphone.php?user=none
# action_url.ip_change = http://172.16.4.2/yealink/newphone.php
action_url.register_failed = http://172.16.4.2/yealink/newphone.php?user=none
# sip account
account.1.enable = 1
account.1.label = Unregistered
account.1.auth_name = unregistered
account.1.user_name = unregistered
account.1.password = none
account.1.sip_server.1.address = 172.16.4.2
account.1.sip_server.1.expires = 300
account.1.sip_server.1.retry_counts = 0
push_xml.server = 172.16.4.2
features.action_uri_limit_ip = any
#syslog.mode = 1
#syslog.server = 172.16.4.2
#syslog.level = 6
phone_setting.custom_softkey_enable = 1
programablekey.2.type = 27
programablekey.2.value = http://172.16.4.2/yealink/newphone.php?user=none
the script worlks perfectly if it is placed in a softkey or linekey on the phone, but wont display when the phone boots up.
the setup_completed uri would NEVER trigger it..
I then put in a fake SIP account and a trigger on register failed, I can see the script being requested from my web server but it still never displays on the phone screen.
below is the GET from my apache.. it is identical whether automatically called from the register fail or the Softkey.. yet only the softkey one works..
Code:
172.16.4.122 - - [02/Feb/2015:17:06:16 -0500] "GET /yealink/newphone.php?user=none HTTP/1.1" 200 254 "-" "Yealink SIP-T46G 28.72.0.26 00:15:65:76:3d:21"
if I wait for the phone to come up then Manually call the script by pressing my Softkey (as you see I have progammed). the script works perfect. so I know the script is coded right..
is it not possible to display XML to the phone on startup or register fail?
as mentioned above the script is requested from the web server just not displayed. I did not see anything regarding auto provisioning in my syslog and I have set to syslog level 6..
below is the XML being output from the server to the phone. again it works when used with softkey but not from register fail. even though the call makes itto my web server
Code:
<?xml version="1.0" encoding="utf-8"?>
<YealinkIPPhoneInputScreen type = "number" Timeout = "0">
<Title>New Phone</Title>
<Prompt>NewExt:</Prompt>
<URL>http://172.16.4.2/yealink/newphone.php</URL>
<Parameter>user</Parameter>
</YealinkIPPhoneInputScreen>