Outbound Campaign - Start URL

Questions and answers about Plum iOn systems

Moderators: admin, support

  • Author
  • Message
Offline

dnagel

  • Posts: 18
  • Joined: Sat Feb 08, 2014 10:18 am

Outbound Campaign - Start URL

PostWed Feb 19, 2014 1:59 pm

Hello

From the documentation, it reads:
"5. The result of the callee type detection as well as all the parameters defined in the Outbound API (i.e. phone_number, message_reference, call_parameters) are posted to your start_url. "

On my start_url script I emailed all the post variable and did not find any posted to my start_url script.

Are variables to be posted to the start_url script that the start_url script can read?
If they are to be passed and the script is not seeing them, could it be a possible setup configuration issue? We host our own site.

Thanks,
Don
Offline

dnagel

  • Posts: 18
  • Joined: Sat Feb 08, 2014 10:18 am

Re: Outbound Campaign - Start URL

PostWed Feb 19, 2014 2:21 pm

Hi,

I just wanted to clarify what I meant by emailed all the post variables.

Whenever the start_url script is called, either by GET or POST, prior to returning a valid vxml, I capture all the variables (session, cookies, server, etc.) and email them to myself to understand what is being passed as the start_url script is not seeing the posted variables.

Thanks,
Don
Offline

dnagel

  • Posts: 18
  • Joined: Sat Feb 08, 2014 10:18 am

Re: Outbound Campaign - Start URL

PostWed Feb 19, 2014 2:44 pm

I found my solution.

Thanks,
Don
Offline

support

  • Posts: 3529
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Outbound Campaign - Start URL

PostWed Feb 19, 2014 2:46 pm

Hi Don,

This question had been addressed in a previous forum post: viewtopic.php?f=2&t=1584&p=5174

Essentially, there are two optional string parameters that can be POSTed to queuecall.php that are then POSTed to your start_url: 'message_reference' and 'call_parameters'

So, for example, if you were queuing a call with these parameters:

login=xxxx&pin=xxxxxxxx&phone_number=XXXXXXXXXX&message_reference=123&call_parameters=1234&start_url=http://test.testserver.com/~test/outboundposttest.php"

You can access these variables in your start_url script by using code similar to this code example:

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<var name="msg_ref" expr="'<?= $_POST['message_reference'] ?>'" />
<var name="varCallID" expr="'<?= $_POST['call_parameters'] ?>'" />
<form>
<block>
<prompt>
Your call parameter is: <value expr="varCallID"/>.
Your message reference is: <value expr="msg_ref"/>.
</prompt>
</block>
</form>
</vxml>

Regards,
Plum Support
Offline

support

  • Posts: 3529
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Outbound Campaign - Start URL

PostWed Feb 19, 2014 2:47 pm

Hi Don,

Sorry about that, you had posted just as we were getting our response out.

Regards,
Plum Support
Offline

cjosey5

  • Posts: 1
  • Joined: Sun May 18, 2014 6:39 pm

PostSun May 18, 2014 7:55 pm

Attention:
We are generating an outbound call using the form submission below. It works successfully but we're having problems setting and using the "call_parameters" field. It doesnt recognize the call_parameters value on the posted page. Can you provide examples with the correcty syntax below and how to retrieve it?
Variable we're trying to set is call_parameters value equal to Nancy.
Once it posts is it a form or querystring variable? request.form("call_parameters") or request.querystring("call_parameters") or request("call_parameters")

(webcall.asp page)
<form action="http://outbound.plumvoice.com/webservice/queuecall.php" method="post">
<input type="text" name="login" value="julzian@gmail.com" />
<input type="text" name="pin" value="63323482" />
<input type="text" name="phone_number" value="4048613767" />
<input type="text" name="start_url" value="webcallIntro.asp" />
<input type="text" name="max_retries" value="2" />
<input type="text" name="retry_interval" value="600" />
<input type="text" name="scheduled_timestamp" value="0" />
<input type="text" name="call_parameters" value="Nancy" />
<input type="submit" />

(webcallIntro.asp)
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/includes/configFunctions.asp"-->
<%
theID=cstr(request("call_parameters"))
%>
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<form>
<%if theID="Nancy" then %> (so far this has never been true for some reason)
<block>
<prompt>
We will not call you.
</prompt>
</block>
<%else %>
<field name="callerid" expr="session.telephone.ani">
</field>
<field name="advisor" type="digits">
<prompt>
<audio src="/IVR/audio/AcceptCallfromHelpByPhone.mp3">
</audio>
</prompt>
</field>
<block>
<submit namelist="callerid advisor" next="advisorIntro.asp"/>
</block>
<%end if %>
</form>
</vxml>
</form>
Offline

support

  • Posts: 3529
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Outbound Campaign - Start URL

PostMon May 19, 2014 9:55 am

Hi,

As we don't have any inhouse expertise on ASP (we're mainly a PHP shop here), we can't help you out much with the specifics of your ASP code. However, from previous forum posters, this code example might help you achieve what you're looking for:

<%Response.ContentType = "text/xml"%>
<?xml version="1.0"?>

<%
dim callparameters
callparameters = Request.Form("call_parameters")
%>

<vxml version="2.0">
<var name="mycallparameter" expr="'<%Response.Write(callparameters)%>'"/>
<form>
<block>
<prompt>
Your call parameter is: <value expr="mycallparameter"/>.
</prompt>
</block>
</form>
</vxml>

Hope this helps.

Regards,
Plum Support

Return to Plum iOn Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron