diff --git a/scripts/socket/FreeSWITCH/Client.pm b/scripts/socket/FreeSWITCH/Client.pm index 3878686f1a..bce8e76278 100644 --- a/scripts/socket/FreeSWITCH/Client.pm +++ b/scripts/socket/FreeSWITCH/Client.pm @@ -145,6 +145,8 @@ sub command($$) { if ($r->{body}) { $reply = $r->{body}; + } elsif ($r->{'reply-text'}) { + $reply = $r->{'reply-text'}; } else { $reply = "socketerror"; }