Broadcast By SMS Command Line Interface | Application Interface
You can invoke BroadcastByPhone from a command window as follows:
[-startnow] | Starts a broadcast immediately |
[-text <message>] | Specify the text to be sent. |
[-startfromrow <row index>] | Broadcast start from row, used with -startnow |
[-statusurl <url>] | Post to this url when a call is finished |
[-statusexe <prog>] | Post to this url when a call is finished |
[-numbers <call list>] | Import a list of phone numbers |
[-import <csv file>] | Import a CSV file |
[-export <csv file>] | Export a CSV file |
[-noexit] | Keep program up after broadcast |
If you specify -numbers or -import, the <call list file> can be an existing file or a new file. If the file does not exist, it will be created, new numbers added or imported, and saved.
Some options are to be used in separate command. For example, export option is usually executed by itself.
To use the call-till-confirm, you need to have the Professional Edition or Enterprise Edition.
Use statusurl
This option is mostly used for program integration. If statusurl is defined, the program will post to this url whenever a call is finished. The parameters include all the values of the row. Each parameter uses the column header as the parameter name, and the cell value as the parameter value. The row index is also included in the parameters. For example, if the following call is finished:
Name | Phone | Age | Confirmation | Status | |
---|---|---|---|---|---|
50 | John Doo | 8001234567 | 30 | Confirmed | Call Made |
The following parameters will be posted to the specified URL:
index=50&Name=John Doo&Phone=8001234567&Age=30&Confirmation=confirmed&Status=Call Made
Use statusexe
Like -statusurl, this option is mostly used for program integration. If statusexe is defined, the program will call the defined program whenever a call is finished. The parameters for the program include all the values of the row. Each parameter uses the column header as the parameter name, and the cell value as the parameter value; The format is -Dname=value. The row index is also included in the parameters. For the above example, the following parameters will be used:
<prog> -Dindex=50 -DName="John Doo" -DPhone="8001234567" -DAge="30" -DConfirmation="confirmed" -DStatus="Call Made"
Examples
scast.exe -startnow -text "hello world" "C:\mygroup\list.soc"
Invoke BroadcastBySMS with call list “C:\mygroup\list.soc” and start broadcasting using wave file “C”\mygroup\hello.wav”
scast.exe -startnow -text "hello world" -numbers "1234567 2223333" "C:\mygroup\list.soc"
First import the two phone numbers to the call list. If the SOC file exists, the two new numbers are appended. If the SOC file does not exist, a new file will be created and the two new numbers added. Once the numbers are imported, it will first save the SOC file automatically. It then starts the broadcast with the specified wave file.
Broadcast Using Customized Message
The command line interface does not provide an option for specifying Message ID that is created by Message Designer. However, you can still use customized message by first creating a call list file (.soc), selecting the message ID, and saving it to a .soc file. Then use the .soc file in the command line.