1/20/2012 2:45 PM, termbsd wrote:
> I am new to both Kannel and Asterisk.I intend to send a SMS from my
> application (PHP script) in Asterisk to any mobile.

Asterisk itself supports only fixed line SMS over ISDN if I understand
it correctly.
And I think it's not proper maillist to discuss Asterisk ;-)

> Could you please provide a sample program/example,so it would be better to
> understand further.
Short example of AGI solution from our office PBX sending SMS notifications on 
missed calls:

========== AGI script ==========
#!/bin/sh

from=NetStylePBX # source SMS address
to=38067xxxxxxx # destination SMS address (MSISDN)

# Preparing SMS text from AGI request ($1 is CallerID)
text="Missed%20call:%20from%20$1%20to%20NetStyle"

# Call Kannel via HTTP API
GET 
"http://sms.kannel.host:13013/cgi-bin/sendsms?user=pbx&password=top-secret&from=$from&to=%to&coding=0&charset=ascii&text=$text";

========== AGI call from Asterisk AEL ==========
...
AGI(sms_annoyer.sh,${CALLERID(num)});
...


> Michael Bochkaryov wrote:
>> 1/20/2012 7:06 AM, termbsd wrote:
>>> Hi,
>>> I intend to send SMS from Asterisk using Kannel gateway on Ubuntu.I have
>>> Fargo Maestro 20 modem.Please let me know the procedure to do this.
>> You can write AGI script that will make HTTP request to Kannel to send
>> SMS.
>>
>> Or you can use Curl command to make request directly from Asterisk.
>> http://www.voip-info.org/wiki/view/Asterisk+cmd+Curl
>>
>>> Asterisk version- 1.6.2.0
>>> Ubuntu version -10.10
>>> Kannel gateway - 1.4.3 ( libxml2-2.7.8)
>>>
>>> Thanks,
>>> Shruthi
>>>
>>
>> -- 
>> Regards,
>> Michael Bochkaryov
>> www.rattler.kiev.ua
>>
>>
>>
>>


-- 
Regards,
Michael Bochkaryov
www.rattler.kiev.ua


Reply via email to