Author Topic: passing variables in the URL popup  (Read 5073 times)

adz

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
    • View Profile
passing variables in the URL popup
« on: September 23, 2010, 00:25:07 »
Hello,

I am working on setting up a URL to get popped up when a call comes in. I am hoping to pass through some variables into the URL. Has this been done before.

I'm hoping to be able to pass the Caller ID name, number, agent number, sip extension.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: passing variables in the URL popup
« Reply #1 on: September 23, 2010, 10:45:51 »
Yes absolutely - see http://queuemetrics.com/manuals/QM_UserManual-chunked/ar01s08.html for a table of variables that can be passed.

adz

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
    • View Profile
Re: passing variables in the URL popup
« Reply #2 on: September 23, 2010, 22:01:34 »
Thank you - So calling "[C]" gives me the callerID Name, is it possible to get the callerID number?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: passing variables in the URL popup
« Reply #3 on: September 27, 2010, 09:29:10 »
That's what gets published by Asterisk in the CallerID field - it may be either the name, the number or both.

adz

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
    • View Profile
Re: passing variables in the URL popup - RESOLVED
« Reply #4 on: September 27, 2010, 21:05:29 »
Thank you - I Ended up renaming it to CallerID Name + CallerID Number:

exten => _XXXXXXXXXX,n,Set(CALLERID(name)=${CNAM} + ${CALLERID(number)})
exten => _XXXXXXXXXX,n,Set(CALLERID(number)=${CNAM} + ${CALLERID(number)})

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: passing variables in the URL popup
« Reply #5 on: September 28, 2010, 14:45:03 »
Looks fine to me!  ;D