Yealink Forums

Full Version: T41 - Action URL 3CX API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get the action URL in the T41 to make a request to the 3CX when an outgoing call is made.

I have the action url configured properly and the logs/pcap indicate that the request is being sent, but it's throwing an error when it does.

May 15 22:44:14 Log [595]: TASK<6+info >Http download file: 'http://10.68.32.250:5000/ivr/PbxAPI.aspx?func=upd_ext&extnum=287&pwd=password!&record_calls=0' start.
May 15 22:44:14 Log [595]: TASK<6+info >dl_http_recv_to_file err! ret_response = -17, Unknown Error

Any ideas on what may be wrong or what I can do to fix it? Firmware 36.71.0.53 since it's the latest version that seems to be supported by 3cx.
Please use correct ACTION URL format.

For example, a URL ―http://192.168.1.10/help.xml?mac=$mac‖ is specified
for the event Mute, $mac will be dynamically replaced with the MAC address of the IP
phone when the IP phone mutes a call.


You can refer to more details in admin guide.
Yealink_SIP-T4X_IP_Phone_Family_Administrator_Guide_V72
I'm trying to do the same thing, and I think this has something to do with a session token within 3CX.Putting the following URL into the ActionURL field on the yealink phone does not work:

"http://192.168.1.1/ivr/PbxAPI.aspx?func=upd_ext&extnum=ext&pwd=password&record_calls=1"

However, the same URL in my web browser will redirect the browser works after a redirection to the same URL but with a session token and will give a message like: "Ext XYZ record all calls: enabled"

"http://192.168.1.1/ivr/(S(1rdy2ktv1yv1ot2jqoos0ipz))/PbxAPI.aspx?func=upd_ext&extnum=ext&pwd=password&record_calls=1"



If I take the new URL string with the session token and put that into the ActionURL field on the phone, it will toggle successfully. However after a period of time, that session will time out and the redirected URL will no longer toggle.

Can the phone be corrected to be able to handle this session token from 3CX?

Thanks!



(05-19-2014 07:35 PM)Yealink Support Wrote: [ -> ]Please use correct ACTION URL format.

For example, a URL ―http://192.168.1.10/help.xml?mac=$mac‖ is specified
for the event Mute, $mac will be dynamically replaced with the MAC address of the IP
phone when the IP phone mutes a call.


You can refer to more details in admin guide.
Yealink_SIP-T4X_IP_Phone_Family_Administrator_Guide_V72
Reference URL's