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

Starting an outbound call with java

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Starting an outbound call with java

Post by mkerzner@electronicdataco »

Hi,

sorry that it may be an obvious question, but I can not find an example of how to create an outbound call with java code, could someone please help?

Thank you.

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

Starting an IVR outbound call with java

Post by support »

Hi,

We do not have any IVR examples of how to create an IVR outbound call with Java code.

However, you might find some useful information in our IVR documentation:

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

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 5:13 pm, edited 3 times in total.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

Hi,

I did the POST (with java) and got this back, could you please tell me what I should do? Thank you. Mark

<br />
<b>Warning</b>: mysql_query(): 4 is not a valid MySQL-Link resource in <b>/usr/local/apache/htdocs/outbound.plumgroup.com/outboundlib/outboundlib.php</b> on line <b>595</b><br />
<br />
<b>Warning</b>: mysql_error(): 4 is not a valid MySQL-Link resource in <b>/usr/local/apache/htdocs/outbound.plumgroup.com/outboundlib/outboundlib.php</b> on line <b>686</b><br />
<?xml version="1.0"?>
<queuecall status="failed">
Internal system error. DB QUERY ERROR: SELECT campaign_id FROM campaign WHERE FK_sender_id='190' AND name='default' -
</queuecall>

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

Starting an IVR outbound call with java

Post by support »

Hi,

We are trying to reproduce this IVR error and have not been able to do so. Can you provide us with further information to replicate this IVR error? In particular, the POST parameters that you used would be helpful.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 5:14 pm, edited 2 times in total.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

Today a got a better reply

<?xml version="1.0"?>
<queuecall status="queued" call_id="628197">
<login>mkerzner@electronicdatacontrol.com</login>
<pin>37103792</pin>
<phone_number>17137242534</phone_number>
<start_url>http://edcfoundation.dyndns.org/foundat ... /start_url>
</queuecall>

My start_url is not valid for this use, so it gives an error, but I would expect a phone call regardless, am I right?

Thank you.
Mark

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

Starting an IVR outbound call with java

Post by support »

Hi,

No, if the start_url is not valid, the phone call will not execute the IVR application.

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 4:58 pm, edited 2 times in total.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

I got a valid file at

http://shmsoft.com/mark/AcceptCall.xml

and this was the reply

<?xml version="1.0"?>
<queuecall status="queued" call_id="628281">
<login>mkerzner@electronicdatacontrol.com</login>
<pin>37103792</pin>
<phone_number>17137242534</phone_number>
<start_url>http://shmsoft.com/mark/AcceptCall.xml</start_url>
</queuecall>

But still no call on my phone.

Thank you for all your help.
Mark

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

Starting an IVR outbound call

Post by support »

Hi,

On your IVR Outbound Tools page, you would want to hit the "Start" button under Status in order to make IVR outbound calls. Once the Status changes to "running", you should be able to receive an IVR call.

You also might want to change your IVR script to a .vxml file since when we tested the IVR call on our side, we received an "error.badfetch".

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 5:15 pm, edited 2 times in total.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

OK, thank you, I get calls now.

Changing to vxml did not help though. I am using your first "Hello" example, and I get an error. Is there any special way to put things on the web? I just placed the file on a web server...

Thank you,
Mark

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

Starting an IVR outbound call

Post by support »

Hi,

Sorry for the suggestion to changing it to a .vxml file earlier.

The start_url has to refer to an IVR script that can receive POST variables (.asp, .jsp, .php, etc.) as opposed to an IVR file. A static XML file or VXML file would trigger a 405 error.

Again, sorry for suggesting the change to a .vxml file.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 5:15 pm, edited 2 times in total.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

Thank you, with your help I made the first calls.

Can I change the "caller id" when I call?

I know that I can get back all parameters that I pass to Plum, right?

Thanks again.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

Oh, and what is the concept of a campaign, do I need to use it? One campaign should be enough?

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

IVR Call Queuing Reference Implementations documentation

Post by support »

Hi,

You cannot change the "call id" when you make an IVR call since that is assigned to you by us.

You can get back all parameters that you pass to us. These are what you see when you sent those POST parameters for us to check.

One IVR campaign should be enough. If you want to read more about IVR campaigns and their use, you can check our IVR Call Queuing Reference Implementations documentation here:

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

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 5:16 pm, edited 3 times in total.

mkerzner@electronicdataco
Posts: 10
Joined: Mon Aug 13, 2007 12:05 am

Post by mkerzner@electronicdataco »

Does is mean that I will be assigned a unique number which will always show as caller id, and when people call back on this number, then my application answers?

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

IVR customer ID needed to change caller id

Post by support »

Hi,

Sorry once again, I mistook "caller id" for "call id".

Yes, you can change your "caller id" changed. To do this, you would have to send an e-mail to support@plumvoice.com with your IVR customer id in the subject line. If you do not have a customer id, you can contact your account manager or sales@plumvoice.com.

Regards,
Plum Support

Post Reply