[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
Issues with variable substitution on action URLs
Author Message
nickpl Offline
Junior Member
**

Posts: 27
Joined: Apr 2014
Reputation: 0
Post: #1
Issues with variable substitution on action URLs
I'm not sure if I'm trying to use $active_user wrong, but here's what I have in my config file:

Code:
action_url.registered = http://sipserver/test.php?ext=$active_user&ip=$ip
action_url.on_hook = http://sipserver/test.php?ext=$active_user&ip=$ip
action_url.call_terminated = http://sipserver/test.php?ext=$active_user&ip=$ip
action_url.idle_to_busy = http://sipserver/test.php?ext=$active_user&ip=$ip
action_url.busy_to_idle = http://sipserver/test.php?ext=$active_user&ip=$ip
action_url.setup_autop_finish = http://sipserver/test.php?ext=$active_user&ip=$ip

What I want is for the phone to substitute $active_user with the extension number, so for example if I'm in extension 24 I want these actions to get the URL "http://sipserver/test.php?ext=24&ip=10.10.95.201"

I've found that sometimes $active_user is replaced with nothing instead of the extension number, but the $ip substitution is always correctly replaced with the IP address of the phone:

action_url.registered: $active_user and $ip work
action_url.on_hook: only $ip works
action_url.call_terminated = $active_user and $ip work
action_url.idle_to_busy = $active_user and $ip work
action_url.busy_to_idle = only $ip works
action_url.setup_autop_finish = only $ip works

Is this a bug or is there a more correct way that I should be getting the extension number? I'm testing on a T46G running 28.83.0.57.

Thank you!
09-20-2018 03:18 PM
Find all posts by this user    like1    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
Issues with variable substitution on action URLs - nickpl - 09-20-2018 03:18 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  SCA Issues spheragh 1 513 11-12-2019 09:51 AM
Last Post: Rick_Yealink
  Intermittent No Audio Issues Timothy 0 602 04-29-2019 07:45 AM
Last Post: Timothy
  Action URL Firmware Bug in 66.84.0.15 rickstinson 0 924 03-25-2019 07:57 AM
Last Post: rickstinson
  EXP40 + EHS36 Issues Asanka 1 2,355 12-22-2018 11:36 AM
Last Post: Sarah789
  Upgrade firmware via Action URI TomT 0 780 11-14-2018 02:38 PM
Last Post: TomT
  Solved - T46G - Firmware issues - 28.83.0.50 B-C 1 2,423 10-13-2018 09:33 AM
Last Post: complex1
  T46-28.83.0.35: Action URL not working alvaromad 0 935 06-18-2018 12:17 PM
Last Post: alvaromad
  Issues with Transfer to Remote Phone Book Naum 1 1,584 05-30-2018 09:52 AM
Last Post: Travis_Yealink
  T4xG series having time issues KNERD 4 4,412 04-20-2018 08:51 PM
Last Post: KNERD
  URL ACTION BARRAUD 1 1,612 04-11-2018 01:21 AM
Last Post: Jensen_Yealink

Forum Jump:


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

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