PAMI icon indicating copy to clipboard operation
PAMI copied to clipboard

Invalid/unknown command: vgsm_sms_tx. Use Action: ListCommands to show available commands.

Open nekulin opened this issue 8 years ago • 1 comments

$a = new ClientImpl($options);
$a->registerEventListener(new A());
$a->open();

// SMS
$sms = new VGSMSMSTxAction();
$sms->setContentType('text/plain; charset=ASCII');
$msg=$argv[5];
$phone=$argv[6];
$sms->setContent($msg);
$sms->setTo($phone);
// SMS multipart MSG - This is used to send 1 big message splitted in several parts, up to 255 messages
if($argv[7]==1){
    $sms->setConcatRefId('58');
    $sms->setConcatTotalMsg('2');
    $sms->setConcatSeqNum('1');
    $a->send($sms);
    $sms->setContent('---Testing Multipart message ');
    $sms->setTo($phone);
    $sms->setConcatRefId('58');
    $sms->setConcatTotalMsg('2');
    $sms->setConcatSeqNum('2');
}
$r = $a->send($sms);
$a->close();
print_r($r);

Error: Invalid/unknown command: vgsm_sms_tx. Use Action: ListCommands to show available commands.

nekulin avatar Aug 08 '16 19:08 nekulin

The most likely reason this fails, is that Asterisk does not have the right module installed for this functionality. Have you checked this?

In other words: is it working when not using PAMI, but for example an Asterisk Dialplan application?

jacobkiers avatar Aug 09 '16 16:08 jacobkiers