[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
  not able to get sip and account related details using action uri rajat_asthana 0 1,191 12-26-2023 03:51 PM
Last Post: rajat_asthana
  Action URI response asszem 0 2,786 10-21-2021 12:30 AM
Last Post: asszem
  T41P/T48G/T58V IPv6 SIP Issues ReubenFarrelly 22 70,462 08-01-2021 06:14 PM
Last Post: Phil2021
  SCA Issues spheragh 1 4,972 11-12-2019 09:51 AM
Last Post: Rick_Yealink
  Intermittent No Audio Issues Timothy 0 3,825 04-29-2019 07:45 AM
Last Post: Timothy
  Action URL Firmware Bug in 66.84.0.15 rickstinson 0 4,932 03-25-2019 07:57 AM
Last Post: rickstinson
  EXP40 + EHS36 Issues Asanka 1 9,182 12-22-2018 11:36 AM
Last Post: Sarah789
  Upgrade firmware via Action URI TomT 0 3,861 11-14-2018 02:38 PM
Last Post: TomT
  Solved - T46G - Firmware issues - 28.83.0.50 B-C 1 9,669 10-13-2018 09:33 AM
Last Post: complex1
  T46-28.83.0.35: Action URL not working alvaromad 0 4,092 06-18-2018 12:17 PM
Last Post: alvaromad

Forum Jump:


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

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