i then have an if loop that detects various events such as busy, noanswer etc. they all log to the Plum logs correctly. I have also added an 'assign name="status" for each of these events in their part of the if loop ending with:
<else/>
<assign name="status" expr="'MAA_Ext_Log_Call_Received'"/>
but when the log comes across to my server it does not have a value for the status. is there something simple that i am just looking right over here?
Code: Select all
<vxml version="2.0" application="root.php">
<meta name="maintainer" content="marguin@jpr-inc.com"/>
<var name="status"/>
<var name="level" expr="'INFO'"/>
<form id="TransferForm">
<block>
<log label="MAA_Ext_Log_call_received">Received Call</log>
</block>
<transfer name="MyCall" dest="tel:+17811234567" connecttimeout="60s">
<grammar type="text/gsl">[dtmf-1]</grammar>
<filled>
<if cond="MyCall == 'busy'">
<log label="MAA_Ext_Log_transfer_busy">Transfer Busy</log>
<assign name="status" expr="'MAA_Ext_Log_transfer_busy'"/>
<disconnect/>
<elseif cond="MyCall == 'near_end_disconnect'"/>
<assign name="status" expr="'MAA_Ext_Log_near_end_disconnect'"/>
<disconnect/>
<else/>
<assign name="status" expr="'MAA_Ext_Log_Call_Received'"/>
</if>
</filled>
</transfer>
<catch event="connection.disconnect.hangup">
<var name="callerID" expr="session.telephone.ani"/>
<submit next="http://serveronthenet/logger" method="get" namelist="level callerID status"/>
</catch>
</form>
</vxml>