This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<callxml version="3.0"> | |
<fetch value="example.xml" var="myFetch" type="xml"/> | |
<block label="Axes" value="$myFetch;"> | |
<assign var="nid" expr="/var/myFetch/value/nid[1]/text()"/> | |
<assign var="name" expr="/var/myFetch/value/name[1]/text()"/> | |
<assign var="type" expr="/var/myFetch/value/type[1]/text()"/> | |
<assign var="vid" expr="/var/myFetch/value/vid[1]/text()"/> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
header("Content-type: text/xml"); | |
//My Auth PHP Script which will return some values | |
$phone = $_REQUEST['phone']; | |
$pin = $_REQUEST['pin']; | |
$host = "localhost"; | |
$user = "admin"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Define Gloal Options | |
operatorNumber = "4074740214" | |
applicationCallerID = "8008675309" | |
#Method to create timeStamp as our conferenceID | |
def get_conference_id() | |
timeVar = Time.new | |
returnValue = timeVar.strftime("%Y%H%M%S") | |
return returnValue | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ccxml xmlns="http://www.w3.org/2002/09/ccxml"; xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml"; version="1.0"> | |
<var name="state0" expr="'init'"/> | |
<var name="call_0"/> | |
<var name="playMsg"/> | |
<var name="param1" expr="session.values.param1"/> | |
<var name="param2" expr="session.values.param2"/> | |
<var name="param3" expr="session.values.param3"/> | |
<var name="param4" expr="session.values.param4"/> | |
<var name="param5" expr="session.values.param5"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<vxml version="2.1"> | |
<script src="../js/vxmlECMAScript.js"/> | |
<form id="Form1"> | |
<block> | |
<var name="baseURL" expr="'../audio'"/> | |
<var name="testValue" expr="'101'"/> | |
<var name="location" expr="'atlanta'"/> | |
<var name="currentConditions" expr="'thunderstorm'"/> | |
<log expr="'@@@@' + baseURL+'/'+location+'/greeting.wav'"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ccxml xmlns="http://www.w3.org/2002/09/ccxml" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml" version="1.0"> | |
<var name="playerConnID"/> | |
<var name="confid"/> | |
<var name="state0" expr="'not_inited'"/> | |
<var name="callcount" expr="0"/> | |
<var name="outboundConnID"/> | |
<var name="phoneNumber" expr="session.values.phoneNumber"/> | |
<var name="callerID" expr="session.values.callerID"/> | |
<var name="playerName" expr="session.values.playerName"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
License: Custom options _enablecodecs=g729 | |
need to stop all services and make the following edits to your config.xml file to enable the g729 codec: | |
Under "RTP Library configuration" add "<category name="vcodecipp"/>" as shown below: | |
<category name="Rtp"> | |
<category name="Codecs"> | |
<!-- | |
By default all the DTMF relays Prophecy supports are on; | |
they can be turned off setting the following params to 0 | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function digp(){ | |
commid=$(cat /opt/voxeo/prophecy/config/agent.db.properties | grep 'local.community.id' | sed 's/local.community.id=//') | |
echo "Community ID: => " $commid | |
dig @127.0.0.1 -p 9962 axfr $commid.prophecy.local | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module OperatorModule | |
OPERATOR_NUMBER='14074740214' | |
TOKEN_ID='612ebc93f0db5440a345dcf231a7b654b4db6bc77729233a5e29f759bc185257e32c111c5c53c269d5ea83ac' | |
def call_operator(id) | |
puts "call_operator(#{id})" | |
uri = URI.parse("http://api.tropo.com/1.0/sessions?action=create&operator_number=#{OPERATOR_NUMBER}&token=#{TOKEN_ID}&conf_id=#{id}") | |
http = Net::HTTP.new(uri.host, uri.port) | |
request = Net::HTTP::Get.new(uri.request_uri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
OlderNewer