I've been googling and reading a lot, but I'm not getting any closer to getting an SMS sent via Asterisk. Prior to switching to asterisk, I used sms_client on an ISDN line to dial one of two Swisscom SMS centers: 0900900941 or 0794998990. My dialplan looks like this: exten => 0900900941,1,Goto(smsmotx,${CALLERIDNUM},1) exten => 0794998990,1,Goto(smsmotx,${CALLERIDNUM},1) ; outgoing SMS [smsmotx] exten => _X.,1,Set(smsFrom=${CALLERIDNUM}) exten => _X.,n,SMS(${smsFrom},,${EXTEN},${CALLERIDNAME}) ; Create an SMS exten => _X.,n,SMS(${smsFrom}) ; Send queued SMS exten => _X.,n,Hangup() When I attempt to send an SMS using smsq, Asterisk appears to be behaving normally, a call is made etc., but the SMS never arrives ... What am I doing wrong? Let me know what diagnostics I need to provide if anyone wants to take a closer look. thanks /Per Jessen, Z?rich
You haven't set the a or p variable or whatever Description *SMS(queuename|[a][s])* *SMS(queuename|[s]|number|message)* *deprecated* a answer, i.e. send initial FSK packet. s act as service centre talking to a phone. On 4/17/07, Per Jessen <per@computer.org> wrote:> > I've been googling and reading a lot, but I'm not getting any closer to > getting an SMS sent via Asterisk. > > Prior to switching to asterisk, I used sms_client on an ISDN line to > dial one of two Swisscom SMS centers: 0900900941 or 0794998990. > > My dialplan looks like this: > > exten => 0900900941,1,Goto(smsmotx,${CALLERIDNUM},1) > exten => 0794998990,1,Goto(smsmotx,${CALLERIDNUM},1) > > ; outgoing SMS > [smsmotx] > exten => _X.,1,Set(smsFrom=${CALLERIDNUM}) > exten => _X.,n,SMS(${smsFrom},,${EXTEN},${CALLERIDNAME}) ; Create an SMS > exten => _X.,n,SMS(${smsFrom}) ; Send queued SMS > exten => _X.,n,Hangup() > > When I attempt to send an SMS using smsq, Asterisk appears to be > behaving normally, a call is made etc., but the SMS never arrives ... > > What am I doing wrong? Let me know what diagnostics I need to provide > if anyone wants to take a closer look. > > > thanks > /Per Jessen, Z?rich > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070417/4d949680/attachment.htm
>From: Per Jessen <per@computer.org> >Date: Tue, 17 Apr 2007 09:40:18 +0200 > >I've been googling and reading a lot, but I'm not getting any closer to >getting an SMS sent via Asterisk. > >Prior to switching to asterisk, I used sms_client on an ISDN line to >dial one of two Swisscom SMS centers: 0900900941 or 0794998990. > >My dialplan looks like this: > >exten => 0900900941,1,Goto(smsmotx,${CALLERIDNUM},1) >exten => 0794998990,1,Goto(smsmotx,${CALLERIDNUM},1)How do callers get into these extensions?>; outgoing SMS >[smsmotx] >exten => _X.,1,Set(smsFrom=${CALLERIDNUM}) >exten => _X.,n,SMS(${smsFrom},,${EXTEN},${CALLERIDNAME}) ; Create an SMS >exten => _X.,n,SMS(${smsFrom}) ; Send queued SMS >exten => _X.,n,Hangup() > >When I attempt to send an SMS using smsq, Asterisk appears to be >behaving normally, a call is made etc., but the SMS never arrives ...I'm a bit confused about your procedures. On one hand, if you use smsq, you don't need to use SMS application (unless you are in the receiving end, where you don't use smsq, either). You'll need to show the actual smsq command line. On the other hand, based on the dial plan snippet you provided, you are dialing whoever dialed you (CALLERIDNUM), not Swisscom SMS centers. Not sure why your caller never complained about spam calls, if Asterisk indeed made the calls. A quick fix would be (untested) exten => 0900900941,1,Goto(smsmotx,${EXTEN},1) exten => 0794998990,1,Goto(smsmotx,${EXTEN},1) Hope this helps. Yuan Liu>What am I doing wrong? Let me know what diagnostics I need to provide >if anyone wants to take a closer look. > > >thanks >/Per Jessen, Zürich
Per, Have you tried the smsq app? That's what I use to send SMS, I don't think I ever got the SMS app to work for sending. It receives fine. /usr/bin/smsq --motx-channel=ZAP/1/0809101000 $RECIPIENT "message here" works fine here.
Just a thought, try kannal, use system in your dialplan and call lynx with a properly formatted URL for Kannal. Thanks, Steve Totaro http://www.asteriskhelpdesk.com KB3OPB> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Per Jessen > Sent: Thursday, April 19, 2007 3:53 AM > To: asterisk-users@lists.digium.com > Subject: Re: [asterisk-users] sending an SMS via Asterisk? > > Wilson Pickett wrote: > > > Per, > > > > Have you tried the smsq app? That's what I use to send SMS, I don't > > think I ever got the SMS app to work for sending. It receives fine. > > > > Hi Wilson, > > yeah, I am using smsq, but part of my problem was my own confusion - as > usual :-) > I'm at the point now where I get a connection established to the SMSC, > which for reasons unknown seems to hang up on me after I've sent the > first string of "TX nn nn nn nn nnn". > > > /Per Jessen, Z?rich > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On Thu, Apr 19, 2007 at 08:36:12AM -0400, Steve Totaro wrote:> Just a thought, try kannal, use system in your dialplan and call lynx with a properly formatted URL for Kannal.Or indeed Kannel (www.kannel.org) Steve -- NetTek Ltd UK mob +44-(0)7775 755503 UK +44-(0)20 79932612 / US +1-(310)8577715 / Fax +44-(0)20 7483 2455 Skype/GoogleTalk/AIM/Gizmo/Mac stevekennedyuk / MSN steve@gbnet.net Euro Tech News Blog http://eurotechnews.blogspot.com