[Freeswitch-users] How to send a message from FS to SMS (?)

Wasim Baig wasim at convergence.pk
Sun Aug 3 11:28:55 PDT 2008


On Sun, Aug 3, 2008 at 10:02 PM, Henk Oegema <pabx_freeswitch at telenet.be>wrote:

> In * I use the following to send a SMS message to my mobile phone,  in case
> of
> no answer:
>
> [macro-send_sms_message]
> exten => s,1,NoOp(${ARG1})
> exten =>
> s,n,System(/usr/bin/curl -s "
> http://localhost/asterisk/sms/sms.php?number=${ARG1}&msg=At%20${ARG3}%20${ARG2}%20called<http://localhost/asterisk/sms/sms.php?number=$%7BARG1%7D&msg=At%20$%7BARG3%7D%20$%7BARG2%7D%20called>
> .")
>
>
> exten => 1200,1,Dial(SIP/1200,10,tT)
> exten => 1200,n,Macro(send_sms_message,00324763788xx
> ,${CALLERID(num)},${STRFTIME(${EPOCH},,%d.%m.%Y-%H:%M)})
> .....
> .....
>
> This send f.e. the following message:
> At 03.08.2008-17:52 00313446413xx called.
>
> How can I do something simular in FS?


You would probably use a language of your choice from
http://wiki.freeswitch.org/wiki/Languages_for_Call_Control.

See http://wiki.freeswitch.org/wiki/Channel_Variables#caller_id_number to
get the callerid.

Hope this helps.

-- 
wasim h. baig | principal consultant | convergence pk | +92 300 8508070
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080804/bdde6ef1/attachment-0002.html 


More information about the FreeSWITCH-users mailing list