Skip to content

Commit

Permalink
freeswitch_scripting docs: Fix rc checks in examples
Browse files Browse the repository at this point in the history
(cherry picked from commit 76c18ce)
  • Loading branch information
liviuchircu committed Jan 10, 2023
1 parent 5b5057f commit 1b76ac9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,14 @@ modparam("freeswitch_scripting", "fs_subscribe", ":ClueCon@10.0.0.11:8021?DTMF,B
...
# ESL socket 10.0.0.10 is defined in the database (password "ClueCon")
$var(rc) = freeswitch_esl("bgapi originate {origination_uuid=123456789}user/1010 9386\njob-uuid: foobar", "10.0.0.10", "$var(response)");
if (!$var(rc)) {
if ($var(rc) < 0) {
xlog("failed to execute ESL command ($var(rc))\n");
return -1;
}
...
# ESL socket 10.0.0.10 is new, we must specify a password
$var(rc) = freeswitch_esl("bgapi originate {origination_uuid=123456789}user/1010 9386\njob-uuid: foobar", ":ClueCon@10.0.0.10", $var(response));
if (!$var(rc)) {
if ($var(rc) < 0) {
xlog("failed to execute ESL command ($var(rc))\n");
return -1;
}
Expand Down

0 comments on commit 1b76ac9

Please sign in to comment.