posting call data to external url

Questions and answers about Plum iOn systems

Moderators: admin, support

  • Author
  • Message
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

posting call data to external url

PostMon Nov 23, 2009 4:45 pm

so i am trying to get the system to do an http get to an apache server that i have running on disconnect. Below is the catch section that i am trying to do this with. I have not see any thing in the access log for my server and nothing in the error log for the line on the Plum IVR. Is there something not correct with this?


<catch event="connection.disconnect.hangup">
<var name="callerID" expr="session.telephone.ani"/>
<assign name="JPREvent" expr="_ivrinfo"/>
<submit next="http://fbapp.stg.jackpotnation.com" method="get" namelist="JPREvent callerID"/>
</catch>
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

also related

PostMon Nov 23, 2009 4:49 pm

also in terms of getting error messages, i tried implementing the maintainer meta, is that not supported?

<meta name="maintainer" content="email@domain.com"/>
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

btw

PostMon Nov 23, 2009 5:02 pm

oh and i am putting this right in to the scratchpad.
Offline

support

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

timeout occurs on user side while IVR tries to submit data

PostTue Nov 24, 2009 4:41 pm

Hi,

Could you please tell us what error messages you are getting when trying to submit your IVR call data?

They reason why you may not be seeing anything written in your access log for your server is that there may be a timeout occurring on your side when the IVR is trying to submit the data to your IVR server.

In terms of your IVR code, your <catch> handler appears to be correct, as we have tested a variation of your IVR code in a scratchpad and have found that it submits the data just fine:

disconnectsenddata.php:

Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<block>
<prompt>
This is a really long message. This is a really long message.
</prompt>
</block>

<catch event="connection.disconnect.hangup">
<var name="callerID" expr="session.telephone.ani"/>
<submit next="http://www.example.com/storeresults2.php" method="get" namelist="callerID"/>
</catch>
</form>
</vxml>


storeresults2.php:

Code: Select all
<?php
$File = "storeresults2.txt";
$Handle = fopen($File, 'a+');
$Date = date("r");
$Result = $_GET[callerID];
$Data = "$Date $Result\n";
fwrite($Handle, $Data);
fclose($Handle);
?>
<vxml version="2.0">
    <form>
        <block>
          <exit/>
        </block>
    </form>
</vxml>


Hope this helps.

Regards,
Plum Support
Last edited by support on Fri Feb 26, 2010 11:30 am, edited 3 times in total.
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostTue Nov 24, 2009 4:44 pm

well i am not actually seeing anything in the error log for the line when i have everything "correct" in the scratch pad. is there a way to increase the logging level on a line?
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostTue Nov 24, 2009 4:54 pm

here is what i see when i look at the 'current calls' log for the line. I dial the number and hang up when it transfers to my destination after i get the prompt at the other end:

Tue 24 Nov 2009 09:52:09 PM UTC:

Call Start ANII 7812095810 DNIS 5622 VURL http://us.popproxy.plumgroup.com/plumvp ... l_log_test
DocumentParser::FetchDocument()
DocumentParser::FetchDocument(http://us.popproxy.plumgroup.com/plumvp ... l_log_test)
Cache http://us.popproxy.plumgroup.com/plumvp ... l_log_test
Attempting to fetch http://us.popproxy.plumgroup.com/plumvp ... l_log_test
Saved http://us.popproxy.plumgroup.com/plumvp ... l_log_test as dnislogs/5622_2966420400_0.vxml for DNIS 5622 on channel 3
DocumentParser::FetchDocument(root.php)
Cache http://us.popproxy.plumgroup.com/plumvp ... s/root.php
Attempting to fetch http://us.popproxy.plumgroup.com/plumvp ... s/root.php
Saved root.php as dnislogs/5622_2966420400_1.vxml for DNIS 5622 on channel 3
(000022;003;1259099096) [MAA_Ext_Log_call_received] Received Call
VXI::queue_prompts()
Bridge tel:+1508AAABBBB

Tue 24 Nov 2009 09:52:35 PM UTC:

received connection.disconnect.
VXI::var_element(name="callerID" expr = "session.telephone.ani")
VXI::assign_element(name="JPREvent" expr = "_ivrinfo")
_ivrinfo is not defined line 1
received error.semantic.
Can not queue audio -- line disconnected
received connection.disconnect.
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 3
Offline

support

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

check IVR call logs for submit error

PostTue Nov 24, 2009 4:55 pm

Hi,

You could check your IVR call logs to see if there are any IVR error messages (marked in red) when the <submit> is being done.

To do this, from your IVR hosting page, go to:

Call Logs->Recent Calls

Then, click on "View Log" for your last IVR call to see what happened during the <submit>.

Regards,
Plum Support
Last edited by support on Fri Feb 26, 2010 11:31 am, edited 2 times in total.
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostTue Nov 24, 2009 5:03 pm

ok. here is one of the calls. there are some errors:

Tue 24 Nov 2009 04:50:56 PM EST:
received event: connection.disconnect.hangup:
VXI::var_element(name="callerID" expr = "session.telephone.ani")
VXI::assign_element(name="JPREvent" expr = "_ivrinfo")
ReferenceError: _ivrinfo is not defined line 1
received event: error.semantic.ecmascript:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 26

apparently the _ivrinfo part is causing issues... i thought i got that from another working scratch pad but maybe not......
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostTue Nov 24, 2009 5:08 pm

ok... i removed that event... now i get this which i think means that the platform cannot hit the server on my side (due to firewall) is my assumption a decent one here?

thanks

Tue 24 Nov 2009 05:06:09 PM EST:
received event: connection.disconnect.hangup:
VXI::var_element(name="callerID" expr = "session.telephone.ani")
DocumentParser::FetchDocument(http://fbapp.stg.jackpotnation.com)
Posted form data is URL encoded
Attempting to fetch http://fbapp.stg.jackpotnation.com

Tue 24 Nov 2009 05:06:39 PM EST:
Error fetching document http://fbapp.stg.jackpotnation.com due to Failed writing header
DocumentParser::FetchBuffer - could not open URL: http://fbapp.stg.jackpotnation.com
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri http://fbapp.stg.jackpotnation.com
received event: error.badfetch:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 27
Offline

support

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

firewall prevents IVR platform from hitting serving

PostTue Nov 24, 2009 5:13 pm

Hi,

Yes, your assumption would be correct. If there's a firewall on your side, then the IVR platform wouldn't be able to hit your IVR server.

Regards,
Plum Support
Last edited by support on Fri Feb 26, 2010 11:31 am, edited 2 times in total.
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostTue Nov 24, 2009 5:16 pm

supposedly the permissions are in place, but i am investigating....
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostWed Nov 25, 2009 1:56 pm

ok, i think the firewall issue is resolved. getting slightly different error data now. the stuff in bold is highlighted red in the admin ui::


Wed 25 Nov 2009 01:52:59 PM EST:
received event: connection.disconnect.hangup:
VXI::var_element(name="callerID" expr = "session.telephone.ani")
DocumentParser::FetchDocument(http://fbapp.stg.jackpotnation.com)
Cache Miss: http://fbapp.stg.jackpotnation.com?callerID=5087582012
Attempting to fetch http://fbapp.stg.jackpotnation.com?callerID=5087582012
Click here to view saved VoiceXML script
DocumentParser::FetchDocument - Parse error in file "http://fbapp.stg.jackpotnation.com", line 1, column 11 - Attribute 'rel' is not declared for element 'link'
errno: 205 uri http://fbapp.stg.jackpotnation.com

received event: error.badfetch:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 7
Offline

marguin

  • Posts: 12
  • Joined: Thu Nov 12, 2009 11:01 am
  • Location: Newton, MA

PostWed Nov 25, 2009 2:03 pm

is there a list of IP addresses that outbound ip traffic from the plum system would be sourcing from? Seem to be multiple as i was just able to get a log entry, then failed 2 times after that.
Offline

support

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

IP address for IVR outbound traffic

PostMon Nov 30, 2009 9:36 am

Hi,

To address this question, you should open up access to the following IP block: 69.25.74.64/26 for IVR outbound traffic.

Regards,
Plum Support

Return to Plum iOn Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron