<... action="">

 

Type

attribute

Elements

campaign

Data type

int

Values

 0:  Send calls

 

1:  Sound file management

2:  Delete calls (not dialing)

3:  Call Query

4:  Answer Call Event

5:  Hang-up Call Event

6:  Test configuration

7:  Pause pending calls

8:  Un-pause paused calls 

Description

The type of command being sent or received.

 

Example 1: Sending a call

<campaign menuid="1-1234" action="0" >

   <phonenumbers> 

      <phonenumber number="8182238964" dateandtime="1/1/2003 3:00 PM" callid="123abc"> 

         <prompts> 

            <prompt promptid="2" tts="Web server 5 is down." />

         </prompts> 

      </phonenumber> 

   </phonenumbers> 

</campaign>

 

Example 2: Upload a WAV file into your VoiceShot account

<campaign action="1">

<file xmlns:dt="urn:schemas-microsoft-com:datatypes" DT:DT="bin.base64" filename="hello.wav" fileaction="save">UklGRmZGAABXQVZFZm10IBIAAAABAAEAgD4AAAB9AAACABAAAABmYWN0BAAAAKAPAABkYXRh

AAAAAIAAAAFgAeABAAJgAiACIAMgAKD8AAHAAiADwAQABaAF4AVABkAGQAaABgAGgAUgBWAF IAVgBOAEIAUABQAFoASABMADoANgA0ADgANAA2ADAAOgAmAC4AGgAaABAAIAAsABoAEAAcAA YADA/2D/wP5A/qD9oPwg/ED7gPog+sD5YPkg+QD5oPiA+ID4QPhA+KD4YPkA+oD6oPrg+iD7 IPuA+wD8QPyg/OD8YP2g/cD94P0A/kD+oP6g/iD/YP9A/6D/oP/g/2</file> 

</campaign>

 

Example 3: Deleting Calls

<campaign action="2" menuid="1-1234">

   <phonenumbers>

      <phonenumber callid="001" />

      <phonenumber callid="002" />

      <phonenumber callid="003" />

   </phonenumbers>

</campaign> 

 

Example 4: Call Query

<campaign action="3" menuid="1-1234">

   <phonenumbers>

      <phonenumber callid="123" />

   </phonenumbers>

</campaign> 

 

Example 5: Answer Call Event

<campaign menuid="1-130123318" callid="77652" action="4" callerid="8182238964" /> 

 

Example 6: Hang up Call Event

<campaign menuid="1-130123318" callid="77652" action="5" duration="53" /> 

 

Example 7: Test Configuration

<campaign action="6" />