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

Michael Jerris mike at jerris.com
Sun Aug 3 11:34:02 PDT 2008


freeswitch already has a "system" dialplan application and a strftime  
fsapi command so you should be able to directly reproduce exactly what  
you have below using dialplan.  I might also look at adding a curl  
dialplan application and/or fsapi command as those could be pretty  
useful.

Mike



On Aug 3, 2008, at 2:28 PM, Wasim Baig wrote:

> 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.")
>
>
> 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
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080803/46b16e77/attachment-0002.html 


More information about the FreeSWITCH-users mailing list