<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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. &nbsp;I might also look at adding a curl dialplan application and/or fsapi command as those could be pretty useful.<div><br></div><div>Mike</div><div><br><div><br></div><div><br><div><div>On Aug 3, 2008, at 2:28 PM, Wasim Baig wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">On Sun, Aug 3, 2008 at 10:02 PM, Henk Oegema <span dir="ltr">&lt;<a href="mailto:pabx_freeswitch@telenet.be">pabx_freeswitch@telenet.be</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> In * I use the following to send a SMS message to my mobile phone, &nbsp;in case of<br> no answer:<br> <br> [macro-send_sms_message]<br> exten => s,1,NoOp(${ARG1})<br> exten =><br> s,n,System(/usr/bin/curl -s "<a href="http://localhost/asterisk/sms/sms.php?number=$%7BARG1%7D&amp;msg=At%20$%7BARG3%7D%20$%7BARG2%7D%20called" target="_blank">http://localhost/asterisk/sms/sms.php?number=${ARG1}&amp;msg=At%20${ARG3}%20${ARG2}%20called</a>.")<br> <br> <br> exten => 1200,1,Dial(SIP/1200,10,tT)<br> exten => 1200,n,Macro(send_sms_message,00324763788xx<br> ,${CALLERID(num)},${STRFTIME(${EPOCH},,%d.%m.%Y-%H:%M)})<br> .....<br> .....<br> <br> This send f.e. the following message:<br> At 03.08.2008-17:52 00313446413xx called.<br> <br> How can I do something simular in FS?</blockquote><div><br>You would probably use a language of your choice from <a href="http://wiki.freeswitch.org/wiki/Languages_for_Call_Control">http://wiki.freeswitch.org/wiki/Languages_for_Call_Control</a>.<br> <br>See <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#caller_id_number">http://wiki.freeswitch.org/wiki/Channel_Variables#caller_id_number</a> to get the callerid.<br><br>Hope this helps.<br></div></div><br>-- <br> wasim h. baig | principal consultant | convergence pk | +92 300 8508070<br> </div> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div></body></html>