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

Outbound error - login param not recognized

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
stm
Posts: 3
Joined: Sat Sep 10, 2005 8:57 pm
Location: EST
Contact:

Outbound error - login param not recognized

Post by stm »

Hello

I'm receiving the following for an application that had functioned perfectly several months ago.

<?xml version="1.0"?>
<queuecalls status="failed">
Missing "login" POST variable.
</queuecalls>
HTTP/1.1 100 Continue

Here is a POST payload - with dummy account data.

pin=01020304&login=myaccount&campaign_name=default&start_url=http%3a%2%2fus.popproxy.plumgroup.com%2fplumvp%2fscratchpad.php%2fmyaccount%2fCallback.xml&phone_list=2123400123

and the relevant code for our request's configuration..

http_rqst.Method = "POST";
http_rqst.ContentType = "multipart/form-data";

I've been unable to execute batch calls through your Plum Outbound Call Queuing Reference Implementations for Queuecalls either. It appears to be consuming a block of its own code.

Is this a known issue - any advice?

thanks

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

IVR developers need further information

Post by support »

Hi,

Could you confirm the login and PIN for us? You can do this by logging into your IVR account, going to "Developer Tools"->"Outbound Calling", and looking up the information there.

You can private message this information to us (by using the "pm" button) as it is sensitive information.

Regards,
Plum Support
Last edited by support on Tue Feb 16, 2010 6:05 pm, edited 2 times in total.

kjhbrr
Posts: 1
Joined: Mon Mar 09, 2009 3:30 pm
Contact:

Same problem - outbound call, missing login

Post by kjhbrr »

I wrote a windows application using Microsoft's C# that submits an HTTP POST to the following URL:

http://outbound.plumgroup.com/webservic ... xxxxxxxx%4
0m2mcomm.com&pin=xxxxxxxx&phone_number=xxxxxxxxxx;ani=xxxxxxxxxx&campai
gn_name=default&start_url=http://testdocs.m2mcomm.com/StartCall.aspx&res
ult_url=http://testdocs.m2mcomm.com/CallResults ... eference=A
123B&call_parameters=parm1;parm2;parm3&max_retries=1&retry_interval=60&s
cheduled_timestamp=0&expiration_timestamp=0

This does not work as I always get back the following response as XML:

<?xml version="1.0"?><queuecall status="failed"> Missing "login" POST variable.
</queuecall>


The second issue that I'm having occurs when I use your tool Plum Web Services API Examples which allows me to enter my login, PIN, phone number and start URL and then click Queue Call to create an outbound call. This works in that the start_url I enter -

http://testdocs.m2mcomm.com/PlumVoice/StartCall.aspx

is indeed called with a GET and then with a POST. However, on neither the GET or POST do I get any parameters passed on the Query String. The phone call is made (calls my cell phone) but I hear an error message on my cell phone about an internal system error. When I check under Developer Tools, Outbound Calling, I see the default campaign and when I click on "View", I see the calls made to my cell phone. However, no error message is displayed there. I am assuming that the XML I am returning isn't either being returned right or it's invalid. But I used your tool to validate VoiceXML and it says that it's ok. So I'm assuming that it's not being returned right to you, but I don't know why or what I need to do differently.

If you browse to my start URL (above) using Internet Explorer, you'll see the VoiceXML returned.

Last, but not least, I have reviewed your developer support forums and I do find one post with respect to the "Missing Login POST variable" and the comment is to contact Plum. I can't find anywhere on the support forum where there's any sample code using C#. It would be great to get a sample app for outbound calls in C#. If you don't have one, do you have one in VB?
If not, then PHP that you can send me?

Thanks,

kenley

stm
Posts: 3
Joined: Sat Sep 10, 2005 8:57 pm
Location: EST
Contact:

Post by stm »

pm sent -thanks

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

IVR developers looking into problem

Post by support »

Hi,

Thanks for this information. We'll let you know what we find.

Kenley: We're also looking into your IVR issue as well. However, could you start a separate thread as you two have a couple of different IVR issues.

Regards,
Plum Support
Last edited by support on Tue Feb 16, 2010 6:05 pm, edited 2 times in total.

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

IVR code use CURL capabilities for POSTing to queuecall.php

Post by support »

Hi,

To stm: From your initial post, we noticed this:

pin=01020304&login=myaccount&campaign_name=default&start_url=http%3a%2%2fus.popproxy.plumgroup.com%2fplumvp%2fscratchpad.php%2fmyaccount%2fCallback.xml&phone_list=2123400123

Since you are using queuecalls.php, the "phone_list" parameter needs to be a file upload, like a .txt file of phone numbers.

Also, more importantly, when using queuecalls.php:

"You must POST with multipart/form-data encoding in order for the uploaded file to be properly received and processed by the queuecalls web service."

So, you may have to change the way that you are POSTing your parameters within your IVR code.

To kjhbrr: From your IVR call logs, we noticed that you were successful in making an IVR outbound call yesterday.

Also, here's an IVR example in php that uses the CURL capabilities for POSTing to queuecall.php:

outbound.php

Code: Select all

<?php

// utility function for posting to a given webservice
function curl_post($url, $post_vars) {
  //initialize curl
  $ch = curl_init();

  //set the necessary curl options
  curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_FAILONERROR, 1);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vars);

  //execute the call to the backend script, retrieve the results
  $xmlstr = curl_exec($ch);
  curl_close($ch);

  return $xmlstr;
}

$post_vars="login=xxxxxx&pin=xxxxxxxx&phone_number=tel:+1xxxxxxxxxx;ani=xxxxxxxxxx&start_url=http://testdocs.m2mcomm.com/PlumVoice/StartCall.aspx";
$xml = curl_post("http://outbound.plumgroup.com/webservice/queuecall.php", $post_vars);
echo $xml;
?>
Hope this helps.

Regards,
Plum Support

Post Reply