Hello Michiel, On 10-Jul-2005 18:43, Michiel van Baak wrote: > On 18:21, Sun 10 Jul 05, Stijn Jonker wrote: > >>Hello all, >>
>>On the short list is the ability to reliable send and receive SMS. >> >>For SMS I already built a script email2sms, but sometimes the SMS >>doesn't get send from some reason, the sms log then reports something like: >>2005-07-03T07:56:29 ?OM0C 0 - <NUMBER> <MESSAGE> >> >>Everytime the Second field contains a ? instead of a Y the sending >>failed, but asterisk doesn't retry. Next to this, no error in the logs. >> >>Am I doing something wrong, or is there an additional app that can fix >>this/monitors logs and does retries or so? >> >>Thanks in advance. > > > Hi, > > This won't answer your question, sorry. > How are you sending SMS ? > I'm in NL too, and can't seem to find a way to send SMS with > asterisk. The only way I found was some service on the > internet that sells SMS credits for asterisk users but it > would be nice to know how you are doing it. Well, I found the specs on the KPN Site: http://www.kpn.com/kpn/show/id=362543/sc=656f2e And basicly the command for smsq is: /usr/sbin/smsq --motx-channel="Zap/g1/0673644444" <Number> <Message> It also works with chan_capi btw. Receiving is done by: [pstn-inbound] ; SMS exten => ${EDN_FAX}/067364444400,1,Goto(s-sms-inbound,${EXTEN},1) exten => ${EDN_WORK}/067364444400,1,Goto(s-sms-inbound,${EXTEN},1) exten => ${EDN_DIAL}/067364444400,1,Goto(s-sms-inbound,${EXTEN},1) exten => ${EDN_MAIN}/067364444400,1,Goto(s-sms-inbound,${EXTEN},1) Then s-sms-inbound contains: [s-sms-inbound] exten => _X.,1,NoOp(Receiving SMS from ${CALLERIDNUM}) exten => _X.,2,Answer exten => _X.,3,Wait(1) exten => _X.,4,SMS(incoming|a) exten => _X.,5,System(/usr/local/AstSMSHandler/SMS2Email.pl -q) exten => _X.,6,Hangup And works well, btw only as mentioned the sending of the sms sometimes failes. -- Met Vriendelijke groet/Yours Sincerely Stijn Jonker <[EMAIL PROTECTED]> _______________________________________________ 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
