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