We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
posting call data to external url
posting call data to external url
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>
<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>
also related
also in terms of getting error messages, i tried implementing the maintainer meta, is that not supported?
<meta name="maintainer" content="email@domain.com"/>
<meta name="maintainer" content="email@domain.com"/>
btw
oh and i am putting this right in to the scratchpad.
timeout occurs on user side while IVR tries to submit data
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:
storeresults2.php:
Hope this helps.
Regards,
Plum Support
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>
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>
Regards,
Plum Support
Last edited by support on Fri Feb 26, 2010 11:30 am, edited 3 times in total.
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
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
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
check IVR call logs for submit error
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
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.
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
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......
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......
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
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
firewall prevents IVR platform from hitting serving
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
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.
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
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
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
IP address for IVR outbound traffic
Hi,
Please contact Support for the information. Thank you.
Regards,
Plum Support
Please contact Support for the information. Thank you.
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com