[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.

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:

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="

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

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 472 12-26-2023 03:51 PM
Last Post: rajat_asthana
  Action URI response asszem 0 2,250 10-21-2021 12:30 AM
Last Post: asszem
  T41P/T48G/T58V IPv6 SIP Issues ReubenFarrelly 22 62,560 08-01-2021 06:14 PM
Last Post: Phil2021
  SCA Issues spheragh 1 4,144 11-12-2019 09:51 AM
Last Post: Rick_Yealink
  Intermittent No Audio Issues Timothy 0 3,284 04-29-2019 07:45 AM
Last Post: Timothy
  Action URL Firmware Bug in rickstinson 0 4,363 03-25-2019 07:57 AM
Last Post: rickstinson
  EXP40 + EHS36 Issues Asanka 1 8,127 12-22-2018 11:36 AM
Last Post: Sarah789
  Upgrade firmware via Action URI TomT 0 3,380 11-14-2018 02:38 PM
Last Post: TomT
  Solved - T46G - Firmware issues - B-C 1 8,567 10-13-2018 09:33 AM
Last Post: complex1
  T46- Action URL not working alvaromad 0 3,594 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