<html><div style='background-color:'><DIV class=RTE>
<P>Hello!</P>
<P>I have download the latest CVS and recompiled zaptel, libpri and asterisk.</P>
<P>I have included these two new contexts into my extensions.conf.</P>
<P>Have I pasted them in the right place?</P>
<P>Do I need to include them into my [local] conext?</P>
<P>[smsdial] ; create and send a text message, expects number+message and<BR>connect to 17094009<BR>exten = _X.,1,SMS(${CALLERIDNUM},,${EXTEN},${CALLERIDNAME})<BR>exten = _X.,2,SMS(${CALLERIDNUM})<BR>exten = _X.,3,Hangup</P>
<P>[incoming]<BR>exten = _XXXXXX/_8005875290,1,SMS(${EXTEN:3},a)<BR>exten = _XXXXXX/_8005875290,2,System(/usr/lib/asterisk/smsin ${EXTEN:3})<BR>exten = _XXXXXX/_80058752[0-8]0,1,SMS(${EXTEN:3}${CALLERIDNUM:8:1},a)<BR>exten = _XXXXXX/_80058752[0-8]0,2,System(/usr/lib/asterisk/smsin ${EXTEN:3}${CALLERIDNUM:8:1})<BR>exten = _XXXXXX/_80058752X0,3,Hangup</P>
<P>[local]<BR>;<BR>; Master context for local, toll-free, and iaxtel calls only<BR>;<BR></P>
<P> </P>
<P>Also..</P>
<P>I wrote a php script to send a text message.</P>
<P>heres the php</P>
<P> if ($sms_driver_now == 'on')<BR> {<BR> $timeout = 7500;<BR> $socket = fsockopen("10.0.0.4","5038", $errno, $errstr, $timeout);<BR> if ($socket)<BR> {<BR> fputs($socket, "Action: Login\r\n");<BR> fputs($socket, "UserName: cron\r\n");<BR> fputs($socket, "Secret: imysecret\r\n\r\n");<BR> fputs($socket, "Action: Originate\r\n");<BR> fputs($socket, "callerid: I Love You <01517077777>\r\n");<BR> fputs($socket, "exten: 07950160999\r\n");<BR> fputs($socket, "Channel: Local/17094009\r\n");<BR> fputs($socket, "Context: smsdial\r\n");<BR> fputs($socket, "Priority: 1\r\n\r\n");<BR> }<BR> }<BR></P>
<P>and here's what I get..</P>
<P>Asterisk CVS-12/08/03-17:05:43, Copyright (C) 1999-2004 Digium.<BR>Written by Mark Spencer <<A href="mailto:markster@digium.com">markster@digium.com</A>><BR>=========================================================================<BR>Connected to Asterisk CVS-12/08/03-17:05:43 currently running on localhost (pid = 1004)<BR> -- Remote UNIX connection<BR> == Parsing '/etc/asterisk/manager.conf': == Parsing '/etc/asterisk/manager.conf': Found<BR> == Manager 'cron' logged on from 10.0.0.3<BR>Jun 8 19:55:57 NOTICE[1234379840]: chan_local.c:363 local_alloc: No such extension/context <A href="mailto:default@17094009">default@17094009</A> creating local channel<BR>Jun 8 19:55:57 NOTICE[1234379840]: channel.c:1730 __ast_request_and_dial: Unable to request channel Local/17094009<BR> == Manager 'cron' logged off from 10.0.0.3<BR></P>
<P>Any help would be greatly appreciated.</P></DIV></div><br clear=all><hr>Sign up to the MSN Premium service in June and receive a FREE webcam worth £39.99! <a href="http://g.msn.com/8HMAENUK/2740??PS=47575">More details here.</a> </html>