Re: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Per Jessen
Joel wrote:

 I'm going to repeat this to you again, on the receiving side you need
 to set:

Hi Joel

thanks for your advice, but I'm having trouble sending an SMS, not
receiving.  Your suggestion seems to be only concerned with receiving?


/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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Per Jessen
Yuan LIU wrote:

P[ 2]  -- None
 -- SMS[-1] RX 93 00 6D
 -- SMS[0] TX 10 98 96 00 10 01 00 00 11 06 00 00 00 00 00 00 00
 12
03 00 02 00 04 13 65 00 53 65 63 75 72 69 74 79 20 72 65 73 65 61 72
63 68 65 72 73 20 68 61 76 65 20 74 72 61 63 65 64 20 73 70 61 6D 2D
73 65 6E 64 69 6E 67 20 62 6F 74 6E 65 74 20 63 6C 69 65 6E 74 73 20
62 61 63 6B 20 74 6F 20 6E 65 74 77 6F 72 6B 73 20 72 75 6E 20 62 79
20 74 68 65 20 55 53 20 6D 69 6C 69 74 61 72 79 2E 17 01 00 01 18 0A
00 30 34 33 34 34 33 39 30 30 30 1B 01 00 01 1C 03 00 00 00 00 E8
P[ 2] I IND :DISCONNECT oad:0434439000 dad:062210 pid:19
state:CONNECTED
[snip]
 
 The operator seems to hang up on you. 

Yeah, that's the way I read it too. 

 Good thing is, the operator is at least responding to your call and
 sending you that initial answer. 

Yep, with the other two SMSC numbers I had, I didn't even get that far. 
This one (062210) seems to support ETSI ES 201 912, at least.

 This may sound bizarre but try the s option and operate in  mttx mode.
  I vaguely remember seeing a comment about one operator does some role
 reversal. (May not be due to protocol 2.)

OK, I'll try that. 
 
 If you have an extra channel to spare with (seems you do), can also
 try to set up a context to receive SMS so you know all your
 commands/dial plan are working before testing against operator. 

Yep, good idea.

Thanks for your help, Yuan Liu.



/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


Re: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Wilson Pickett

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.
___
--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


Re: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Per Jessen
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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Steve Totaro
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: [EMAIL PROTECTED] [mailto:asterisk-users-
 [EMAIL PROTECTED] 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

___
--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


Re: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Steve Kennedy
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 [EMAIL PROTECTED]
Euro Tech News Blog http://eurotechnews.blogspot.com
___
--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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-19 Thread Per Jessen
Steve Totaro wrote:

 Just a thought, try kannal, use system in your dialplan and call lynx
 with a properly formatted URL for Kannal.
 

Thank, that's interesting, I might just try that.  
I've actually got SMS-sending up and running, just not over Asterisk.  I
use sms_client and an analog modem, which does the job.  It's a little
kludgy, but unless I can get it to work over Asterisk, that's my
fallback. 


/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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-18 Thread Per Jessen
Yuan LIU wrote:

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?

They're specified on the smsq command, e.g.:

smsq --concurrent=3 --mo --motx-channel='mISDN/2/0900900941' 
--motx-callerid=0434439000
079nnn 'testing 1234567890'

 I'm a bit confused about your procedures.  On one hand, if you use
 smsq, you don't need to use SMS application 

Oh.  Then the confusion is clearly on my part. 
I got most of the config from
http://www.voip-info.org/wiki-Asterisk+cmd+Sms

If I don't need the SMS application, can you tell me what I need to do,
or where I need to look? 

Thanks for helping with this - it doesn't seem like sending SMS over
Asterisk is much used.


/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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-18 Thread Per Jessen
Per Jessen wrote:

 Yuan LIU wrote:
 
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?
 
 They're specified on the smsq command, e.g.:
 
 smsq --concurrent=3 --mo --motx-channel='mISDN/2/0900900941'
 --motx-callerid=0434439000 079nnn 'testing 1234567890'
 
 I'm a bit confused about your procedures.  On one hand, if you use
 smsq, you don't need to use SMS application
 
 Oh.  Then the confusion is clearly on my part.

OK, part of the confusion is now clearing up.  But I'm not getting much
further.  When I try to send an SMS, I see the call going through, but
no SMS is ever sent.  
I'm wondering if this is a matter of which protocols the Swisscom SMSCs
support?  I understand that the SMS app uses ETSI ES 201 912 protocol
1, and I've also patched app_sms.c to try out protocol 2 (longer fixnet
messages).  Still no joy. 


/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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-18 Thread Per Jessen
Per Jessen wrote:

 Per Jessen wrote:
 
 OK, part of the confusion is now clearing up.  But I'm not getting
 much further.  When I try to send an SMS, I see the call going
 through, but no SMS is ever sent.

This is a bit of what I see in the debug output:  (this is sending a
longer message, protocol 2):

P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- None
-- mISDN/3-u54 answered Local/[EMAIL PROTECTED],2
Channel Local/[EMAIL PROTECTED],1 was answered.
Launching SMS(062210|t) on Local/[EMAIL PROTECTED],1
P[ 2] * IND: Got Fixup State:CONNECTED L3id:50012
  == Spawn extension (Internal, 062210, 2) exited non-zero
on 'Local/[EMAIL PROTECTED],2'
P[ 2] I IND :FACILITY oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- AOCD currency: currency:FR. amount:10 multiplier:1
typeOfChargingInfo:-1220842403
P[ 2] I IND :INFORMATION oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- None
-- SMS[-1] RX 93 00 6D
-- SMS[0] TX 10 98 96 00 10 01 00 00 11 06 00 00 00 00 00 00 00 12
03 00 02 00 04 13 65 00 53 65 63 75 72 69 74 79 20 72 65 73 65 61 72 63
68 65 72 73 20 68 61 76 65 20 74 72 61 63 65 64 20 73 70 61 6D 2D 73 65
6E 64 69 6E 67 20 62 6F 74 6E 65 74 20 63 6C 69 65 6E 74 73 20 62 61 63
6B 20 74 6F 20 6E 65 74 77 6F 72 6B 73 20 72 75 6E 20 62 79 20 74 68 65
20 55 53 20 6D 69 6C 69 74 61 72 79 2E 17 01 00 01 18 0A 00 30 34 33 34
34 33 39 30 30 30 1B 01 00 01 1C 03 00 00 00 00 E8
P[ 2] I IND :DISCONNECT oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:8 keypad: sending_complete:0
P[ 2]  -- org:1 nt:0, inbandavail:1 state:10
P[ 2]  -- queue_hangup

In all the other examples I've come across on the 'net, there are multil
lines beginning SMS[x] RX/TX ..  


/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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-18 Thread Yuan LIU

From: Per Jessen [EMAIL PROTECTED]
Date: Wed, 18 Apr 2007 14:48:45 +0200

Per Jessen wrote:

 Per Jessen wrote:

 OK, part of the confusion is now clearing up.  But I'm not getting
 much further.  When I try to send an SMS, I see the call going
 through, but no SMS is ever sent.

This is a bit of what I see in the debug output:  (this is sending a
longer message, protocol 2):

P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- None
-- mISDN/3-u54 answered Local/[EMAIL PROTECTED],2
Channel Local/[EMAIL PROTECTED],1 was answered.
Launching SMS(062210|t) on Local/[EMAIL PROTECTED],1
P[ 2] * IND: Got Fixup State:CONNECTED L3id:50012
  == Spawn extension (Internal, 062210, 2) exited non-zero
on 'Local/[EMAIL PROTECTED],2'
P[ 2] I IND :FACILITY oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- AOCD currency: currency:FR. amount:10 multiplier:1
typeOfChargingInfo:-1220842403
P[ 2] I IND :INFORMATION oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- None
-- SMS[-1] RX 93 00 6D
-- SMS[0] TX 10 98 96 00 10 01 00 00 11 06 00 00 00 00 00 00 00 12
03 00 02 00 04 13 65 00 53 65 63 75 72 69 74 79 20 72 65 73 65 61 72 63
68 65 72 73 20 68 61 76 65 20 74 72 61 63 65 64 20 73 70 61 6D 2D 73 65
6E 64 69 6E 67 20 62 6F 74 6E 65 74 20 63 6C 69 65 6E 74 73 20 62 61 63
6B 20 74 6F 20 6E 65 74 77 6F 72 6B 73 20 72 75 6E 20 62 79 20 74 68 65
20 55 53 20 6D 69 6C 69 74 61 72 79 2E 17 01 00 01 18 0A 00 30 34 33 34
34 33 39 30 30 30 1B 01 00 01 1C 03 00 00 00 00 E8
P[ 2] I IND :DISCONNECT oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:8 keypad: sending_complete:0
P[ 2]  -- org:1 nt:0, inbandavail:1 state:10
P[ 2]  -- queue_hangup

In all the other examples I've come across on the 'net, there are multil
lines beginning SMS[x] RX/TX ..


The operator seems to hang up on you.  Good thing is, the operator is at 
least responding to your call and sending you that initial answer.


This may sound bizarre but try the s option and operate in  mttx mode.  I 
vaguely remember seeing a comment about one operator does some role 
reversal. (May not be due to protocol 2.)


If you have an extra channel to spare with (seems you do), can also try to 
set up a context to receive SMS so you know all your commands/dial plan are 
working before testing against operator. (I always test via SIP channel to 
simplify my debugging.  You can do so, too.)


Yuan Liu


/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


Re: [asterisk-users] sending an SMS via Asterisk?

2007-04-18 Thread Joel

I'm going to repeat this to you again, on the receiving side you need to
set:

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/18/07, Yuan LIU [EMAIL PROTECTED] wrote:


From: Per Jessen [EMAIL PROTECTED]
Date: Wed, 18 Apr 2007 14:48:45 +0200

Per Jessen wrote:

  Per Jessen wrote:
 
  OK, part of the confusion is now clearing up.  But I'm not getting
  much further.  When I try to send an SMS, I see the call going
  through, but no SMS is ever sent.

This is a bit of what I see in the debug output:  (this is sending a
longer message, protocol 2):

P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- None
 -- mISDN/3-u54 answered Local/[EMAIL PROTECTED],2
 Channel Local/[EMAIL PROTECTED],1 was answered.
 Launching SMS(062210|t) on Local/[EMAIL PROTECTED],1
P[ 2] * IND: Got Fixup State:CONNECTED L3id:50012
   == Spawn extension (Internal, 062210, 2) exited non-zero
on 'Local/[EMAIL PROTECTED],2'
P[ 2] I IND :FACILITY oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- AOCD currency: currency:FR. amount:10 multiplier:1
typeOfChargingInfo:-1220842403
P[ 2] I IND :INFORMATION oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:0 keypad: sending_complete:0
P[ 2]  -- None
 -- SMS[-1] RX 93 00 6D
 -- SMS[0] TX 10 98 96 00 10 01 00 00 11 06 00 00 00 00 00 00 00 12
03 00 02 00 04 13 65 00 53 65 63 75 72 69 74 79 20 72 65 73 65 61 72 63
68 65 72 73 20 68 61 76 65 20 74 72 61 63 65 64 20 73 70 61 6D 2D 73 65
6E 64 69 6E 67 20 62 6F 74 6E 65 74 20 63 6C 69 65 6E 74 73 20 62 61 63
6B 20 74 6F 20 6E 65 74 77 6F 72 6B 73 20 72 75 6E 20 62 79 20 74 68 65
20 55 53 20 6D 69 6C 69 74 61 72 79 2E 17 01 00 01 18 0A 00 30 34 33 34
34 33 39 30 30 30 1B 01 00 01 1C 03 00 00 00 00 E8
P[ 2] I IND :DISCONNECT oad:0434439000 dad:062210 pid:19
state:CONNECTED
P[ 2]  -- channel:1 mode:TE cause:16 ocause:16 rad: cad:0062210
P[ 2]  -- info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 2]  -- caps:Speech pi:8 keypad: sending_complete:0
P[ 2]  -- org:1 nt:0, inbandavail:1 state:10
P[ 2]  -- queue_hangup

In all the other examples I've come across on the 'net, there are multil
lines beginning SMS[x] RX/TX ..

The operator seems to hang up on you.  Good thing is, the operator is at
least responding to your call and sending you that initial answer.

This may sound bizarre but try the s option and operate in  mttx mode.  I
vaguely remember seeing a comment about one operator does some role
reversal. (May not be due to protocol 2.)

If you have an extra channel to spare with (seems you do), can also try to
set up a context to receive SMS so you know all your commands/dial plan
are
working before testing against operator. (I always test via SIP channel to
simplify my debugging.  You can do so, too.)

Yuan Liu

/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

___
--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


[asterisk-users] sending an SMS via Asterisk?

2007-04-17 Thread Per Jessen
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


Re: [asterisk-users] sending an SMS via Asterisk?

2007-04-17 Thread Joel

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 [EMAIL PROTECTED] 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

___
--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


RE: [asterisk-users] sending an SMS via Asterisk?

2007-04-17 Thread Yuan LIU

From: Per Jessen [EMAIL PROTECTED]
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



___
--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