Hi,
I have got a HTML/PHP page hosted on an (not that it matters) Apache/Ubuntu server. The page queries an LDAP (MS2K3 DC) for names, addresses, phone numbers of users. I've got a panel in Switchboard showing this information correctly. The fact that this is LDAP is pretty irrelevant - it could be retrieving the data from MySQL or any other source but it will be displayed on a web page.
What I want to do is create a hyperlink for the phone number field to dial that person. During the db query, the phone number is put in to a variable called eg $phonenum. I can create a link in the PHP for
https://ip.address.of.swvx/api?call&dia ... =$phonenum
or
https://ip.address.of.switchvox/api?cmd ... ial_as=400
but the problem is that the 'dial_as' or 'dial_first' fields must be fixed (in those cases it's 400). That means that if I'm logged in to Switchboard as 400 then it will work but not if I'm any other user.
Somehow I need to get a variable which is whatever xtn the user is logged in to Switchboard with. I don't believe this can be done with a cookie as the cookie is supplied by the Switchvox Apache server and my PHP page is hosted on another server.
Does anyone know if this is possible and/or have a way doing it?
Thx
