We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Based on DB Trigger, Plum should make a call and play msg

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Based on DB Trigger, Plum should make a call and play msg

Post by kishore.inline »

hi

In my application, based on some event(insert) fired in DB, Plum should make out bound call and play the message which is configered in scratch pad, how to achieve this functionality.


with regards
Kishore

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Based on DB Trigger, Plum should make a call and play ms

Post by support »

Hi Kishore,

You cannot use scratchpads with our outbound system, so you would have to use a dynamic call script and set the URL to that script as your "start_url." Here's a link to our outbound API reference:

http://www.plumvoice.com/docs/dev/plumd ... nddevguide

Hopefully this helps you.

Regards,
Plum Support

kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Re: Based on DB Trigger, Plum should make a call and play ms

Post by kishore.inline »

Hi

At present my outbound call is enabled, using that, I can make a call to the configered number, so my number is static.
And it is plaing the message that is configered in XML file (Start URL).

How can i make a call to the number which are configered in my Database.


with regards
Kishore Geddada

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Based on DB Trigger, Plum should make a call and play ms

Post by support »

Hi Kishore,

To make an outbound call to a number you have stored in your database, you will have to write some code that pulls that number from your database, and then uses our outbound API to make the calls to that number using the start_url that you have.

Regards,
Plum Support

kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Re: Based on DB Trigger, Plum should make a call and play ms

Post by kishore.inline »

Hi

The below is my url
http://outbound.plumgroup.com/webservic ... lcome.aspx

The above is my URL and gives the error
<?xml version="1.0" ?>
<queuecall status="failed">Missing "login" POST variable.</queuecall>

Please help me on this

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Based on DB Trigger, Plum should make a call and play ms

Post by support »

Hi Kishore,

It looks like you are passing the variables to queuecall.php as GET variables rather than POST variables. In order to use our outbound API, you must POST those values to the queuecall.php file.

Regards,
Plum Support

kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Re: Based on DB Trigger, Plum should make a call and play ms

Post by kishore.inline »

http://outbound.plumgroup.com/webservice/queuecall.php?login=kishore.inline@gmail.com&pin=xxxx&phone_number=tel:+1804490xxxx&start_url=http://000.000.000.000:1000/OutBound_Welcome.aspx

can you help me where is the mistake in the above url

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Based on DB Trigger, Plum should make a call and play ms

Post by support »

Hi Kishore,

The issue with the URL above is that it is using GET variables (?login=kishore.inline@gmail.com&pin=xxxx&phone_number=tel:+1804490xxxx&start_url=http://000.000.000.000:1000/OutBound), instead of POST variables. In order to use our outbound API, you need to POST those variables and values to the URL: http://outbound.plumgroup.com/webservice/queuecall.php or http://outbound.plumgroup.com/webservice/queuecalls.php.

For more information on how to use our outbound API, you can take a look at the following documentation, and please let us know if you have more questions.

http://www.plumvoice.com/docs/dev/plumd ... nddevguide
http://www.plumvoice.com/docs/dev/plumd ... rreference

Regards,
Plum Support

kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Re: Based on DB Trigger, Plum should make a call and play ms

Post by kishore.inline »

Hi

In my URL as per the requirement I'm passing all the Post variables. which are mentioned below.

Should I need to pay any charges to work my URL. Let me know

Required POST Variables POST Variable Type Length Description
login string 128 sender login name
pin string 16 sender PIN code
phone_number string 128 phone number to be dialed -- be sure to include the 1 before the area code
start_url string 255 URL for the VoiceXML script to be used for the call

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Based on DB Trigger, Plum should make a call and play ms

Post by support »

Hi Kishore,

If you're including each of those variables in your POST to queuecall.php, you should be all set. Are you still have issues when POSTing these variables to queuecall.php? If so, could you please post some of your code here so we can take a look at it. It will help us to debug the problem.

Thanks,
Plum Support

kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Re: Based on DB Trigger, Plum should make a call and play ms

Post by kishore.inline »

Hi

I'm trying to execute below URL in the IE, if the url makes a call to the configered number, then I can go ahead and configer in my schedlar. which execute this url based on trigger event or schedular event.

http://outbound.plumgroup.com/webservic ... lcome.aspx


with regards
Kishore

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Based on DB Trigger, Plum should make a call and play ms

Post by support »

Hi Kishore,

You wouldn't be able to plug that URL into IE (or any browser) and have it make a call because it is using GET variables when accessing our outbound API. In order to queue calls programatically, you'd want to use a command line utility like curl. In order to test making outbound calls, you can use the form on the following page to queue your calls:

http://www.plumvoice.com/docs/dev/plumd ... rreference

Regards,
Plum Support

Post Reply