Asterisk chan_dongle DongleSendSMS посредством .call

Skip to end of metadata
Go to start of metadata

Создем .call файл:

sms.call

 Channel: LOCAL/answer@answer
 Application: DongleSendSMS
 Data: dongle0,+37360002536,"This is the good day to die"

Создаем Extension:

[answer]
exten =>answer,1,Answer(1)
exten =>answer,n,hangup

Получаем Результат:

voipgw*CLI>
    -- Attempting call on LOCAL/answer@answer for application DongleSendSMS(dongle0,+37360002536,"This is the good day to die") (Retry 1)
    -- Executing [answer@answer:1] Answer("Local/answer@answer-8a3c;2", "1") in new stack
       > Channel Local/answer@answer-8a3c;1 was answered.
       > Launching DongleSendSMS(dongle0,+37360002536,"This is the good day to die") on Local/answer@answer-8a3c;1
NOTICE[46357]: pbx_spool.c:366 attempt_thread: Call completed to LOCAL/answer@answer
  == Spawn extension (answer, answer, 1) exited non-zero on 'Local/answer@answer-8a3c;2'
    -- [dongle0] Successfully sent SMS message 0x2a94e6f0
NOTICE[46357]: at_response.c:257 at_response_ok: [dongle0] Successfully sent SMS message 0x2a94e6f0
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.