Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Cgonçalves on July 29, 2015, 10:45:08 AM
-
Hi there,
I have one Outbound campaign in Progressive GVP that invokes one simple vxml file through a ivr profile.
When the call is established and the client hangs up, the record_status doesn't change to updated.
Can you tell me if there is any configuration that i need to do in OCS, or the problem is the vxml?
VXML:
[code]
<?xml version="1.0" encoding="utf-8" ?>
<vxml version="2.1" xml:lang="pt-PT" xmlns="http://www.w3.org/2001/vxml" xmlns:genesys="http://www.genesyslab.com/2006/vxml21-extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<form>
<block>
<prompt timeout="10s">
<audio src="file://e:/vxml/720.wav" />
</prompt>
</block>
</form>
</vxml>
[/code]
IVR Profile:
[code]
[gvp.general]
service-type=voicexml
sip.sessiontimer=5
[gvp.policy]
burst-allowed=false
cti-allowed=false
outbound-call-allowed=true
transfer-allowed=true
usage-limits=10
use-same-gateway=indifferent
[gvp.service-parameters]
voicexml.gvp.appmodule=fixed,VXML-NG
[gvp.service-prerequisite]
initial-page-url=file:///D:/vxml/chg.vxml
script-url=file:///D:/vxml/chg.vxml
[/code]
Best regards
-
Hello again,
If there is someone with the same problem I found a possible solution:
[code]
<?xml version="1.0" encoding="utf-8"?>
<vxml version="2.1" xml:lang="pt-PT" xmlns="http://www.w3.org/2001/vxml" xmlns:genesys="http://www.genesyslab.com/2006/vxml21-extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<form id="Start">
<block>
<var name="GSW_RECORD" expr="session.com.genesyslab.userdata.gsw_record_uri" />
<var name="GSW_AGENT_REQ_TYPE" expr="'RecordProcessed'" />
<var name="OCS_REQUEST_URI" expr="GSW_RECORD + '?req=' + GSW_AGENT_REQ_TYPE" />
<var name="GSW_CALL_RESULT" expr="33" />
<var name="GSW_TREATMENT" expr="'RecordTreatCampaign'" />
<data name="ProcessRecord" method="post" srcexpr="OCS_REQUEST_URI" enctype="application/json" namelist="GSW_CALL_RESULT GSW_TREATMENT" />
<prompt timeout="10s">
<audio src="file://e:/vxml/720.wav" />
</prompt>
<goto next="#Disconnect" />
</block>
</form>
<form id="Disconnect">
<block>
<disconnect />
</block>
</form>
</vxml>
[/code]
-
This approach is discribed very well within the documentation (about HTTP API of OCS Server for these and similiar purposes)
-
I do the same thing.
In the entry block, there are some error handler provided like call disconnected.
like Kubig mention above, in the document guide is very useful.