Picture of Maikel Schaap
Registered 10 years 222 days
Maikel Schaap Sunday, 1 February 2015, 02:41 PM
Connect to / Trigger webpage on incomming call
Hi,

I'm trying to figure out how to reach an external URL on incoming calls. Whenever a specific number - which is registered at our hosted PBX - is called, I would like to send/trigger a HTTP-request to an external URL (outside the hosted environment).

Is there a way to do this? e.a. when the URL is: https://url.website.com/script/script.php?numbercalled=31501234567, how can I let the customer PBX trigger this URL? It has to be an automated process.

i thougt of trying the "Add UUI" field and creating a route for this, but this does not trigger the site I made for testing purposes (I created a simple PHP counter that counts the times the sites is requested.

Hope somebody can point me in the right direction. Thank you in advance.

Regards,
Maikel
Picture of Christoph Künkel (innovaphone)
Moderator Registered 15 years 132 days
Christoph Künkel (innovaphone) Monday, 2 February 2015, 12:59 PM
Re: Connect to / Trigger webpage on incomming call
Maikel,

I will move this one to the general discussion forum, don't be surprised (this one here is for suggestions).

You can do what you intend to do by using an XML Voicemail script. You would create such a script and configure a voicemail object. The script would then use the <exec> tag to trigger the URL.

This is the vanilla way to do it. However, your approach should work too (although it is much more limited). You can route this call to the webmedia (HTTP) interface and provide the URL as UUI as you suggested. Of course, the URL is then expected to provide media data which is played to the customer.

Christoph
Picture of Maikel Schaap
Registered 10 years 222 days
Maikel Schaap Tuesday, 3 February 2015, 07:18 PM
Re: Connect to / Trigger webpage on incomming call
Christoph,

Thank you for the quick reply. Is there somewhere a summary of the available function, variables etc for the XML scripting? I'm fairly new to this, so I'm having a hard time figuring this out.

Or could you (again... sorry) help me in the right direction by providing a sample script that describes the function I need?

Maikel
Picture of Roland
Registered 13 years 120 days
Roland Tuesday, 3 February 2015, 09:19 PM
Re: Connect to / Trigger webpage on incomming call
Hi Maikel,

http://download.innovaphone.com/ice/download/p/6.00/apps/6000054%20(Voice%20Mail,%20TAPI,%20SoftwarePhone,%20Operator%20final)/vm-schema.zip

Regards Roland
Picture of Roland
Registered 13 years 120 days
Roland Tuesday, 3 February 2015, 09:32 PM
Re: Connect to / Trigger webpage on incomming call
I think about a solution and have some questions

What type of devices affected?
What kind of calls? Only incoming?
The http request will trigger automatically or manually with a key press?
Only when the call is connected or even during the ringing state?


One solution would simply by pressing a key.

Or with the recording function. The destination of the recording could be a VM script.


Regards Roland
Picture of Maikel Schaap
Registered 10 years 222 days
Maikel Schaap Wednesday, 4 February 2015, 09:44 AM
Re: Connect to / Trigger webpage on incomming call
Roland,

No specific devices are affected. We have a hosted solution and want to see how often a specific (incoming) number is being called. The problem is that we have to register the call in an external DB. Therefore my request.

The trigger will have to be automated. No manual action should be needed.

What I'm trying to achieve is:

Customer A calls number B. The hosted PBX, which has a SIP registration for number B, receives the incoming request from the SIP provider. At that moment, first the HTTP request should be triggered. After the HTTP trigger, the phones in a specific waiting queue should start to ring.

I will have a look at the VM-schema which you posted before. Thank you for that. Should you have a solution or a direction, I'd like to hear it. 

Thank you so far,
Maikel
Picture of Christoph Künkel (innovaphone)
Moderator Registered 15 years 132 days
Christoph Künkel (innovaphone) Wednesday, 4 February 2015, 10:34 AM
1 of 1 users consider this post helpful
Re: Connect to / Trigger webpage on incomming call
You may want to have a look at fish-help.png Getting started with your own PBX voicemail script.

The exec tag is what you need.

From your description though a straight idea would be to simply have CDRs sent to yor script and analyzed.
Christoph
Picture of Maikel Schaap
Registered 10 years 222 days
Maikel Schaap Wednesday, 4 February 2015, 11:50 AM
Re: Connect to / Trigger webpage on incomming call
Hi Christoph,

that was a nice idea! I've just set CDR1 (CDR0 is already reporting to the reporting server) to send info to my script and I just had a wonderful log-file with all the information i need.

Now I just have to filter out the needed variables + values and I got what I need.

Thank you!

Maikel
Picture of Roland
Registered 13 years 120 days
Roland Wednesday, 4 February 2015, 10:40 AM in response to Maikel Schaap
Re: Connect to / Trigger webpage on incomming call
Maikel,

difficult requirement

Probably the following proposition would be better:

Use the PBX report and rate the received information.

Regards Roland
← You can define your color theme preference here