Passing phone variable in vicidial.php

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Passing phone variable in vicidial.php

Postby tommyinnn » Tue Mar 16, 2010 3:59 pm

Not really sure where to post this - but I was trying to pass the phone # that is displayed in the agents screen to a second, unrelated app. In most cases, I would simply use something like..

(area in question is vicidial.php around line #8838 )

<a href="http://mywebsite.com?phone=$phone " target="_blank" > CLICK HERE </a>

or

<a href="http://mywebsite.com?phone=<? echo url_encode("<span id=phone_numberDISP></span>"); ?>" target="_blank" > CLICK HERE </a>

and other bits of code I've tried - but vicidial.php is so much different than what I am used to, I think this is not a php issue, rather javascript - would that be correct?

can someone give me a few tips on how I can do this - passing a simple variable is the basics - but for some reason I haven't been figure this out!
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby mflorell » Tue Mar 16, 2010 4:07 pm

What exactly are you trying to achieve?

Have you tried the web form with variables?

Or if you have 2.2.0 have you tried the Call Start URL or Dispo URL features with variables?
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby tommyinnn » Wed Mar 17, 2010 7:54 am

WOW, I knew you could pass variables in the scripts, but I didn't realize you could also with the web form - thanks so much mflorell!
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 69 guests