[asterisk-dev] Help regarding SMSQ

Eric "ManxPower" Wieling eric at fnords.org
Thu May 19 00:19:01 CDT 2011


On 05/18/2011 11:32 PM, warrior back wrote:
> Hello,
>
> I tried to port smsq application in our asterisk platform but smsq is not
> working. Below are the details how I have ported smsq application and using
> it.
>
>
>
> I am using asterisk-1.6.2.4 version in which app_sms.so is available. For
> smsq I compiled it and built the smsq binary.
>
> Once asterisk is running in our dect, based upon for sip.conf I run the smsq
> by giving many combination of commands
>
>
>
> *smsq --mt --tx --mttx-retries=0 --mttx-channel=SIP/1000 --mttx-callerid=101
> --oa=1000 --ud"TEST SMS”*
>
> * *
>
> *smsq --mt --tx --mttx-retries=0
> --mttx-channel=Local/1000--mttx-callerid=101 --oa=2000 --ud "Test SMS"*
>
> * *
>
> *smsq 1000 TEST SMS 2000
> *
>
> * *
>
> * *
>
> but it is not able to send the message. I am using XLITE  SOFTPHONE
> application for this. Below is the log which comes in my console.
>
>
>
> ./smsq --mt --tx --mttx-retries=0 --mttx-channel=SIP/1000
> --mttx-callerid=101 --oa=1000 --ud"TEST SMS"
>
> #     -- Attempting call on SIP/1000 for application SMS(0,s) (Retry 1)
>
>    == Using SIP RTP CoS mark 5
>
>    == Using UDPTL CoS mark 5
>
>         >  Channel SIP/1000-0000001a was answered.
>
>         >  Launching SMS(0,s) on SIP/1000-0000001a
>
>   sms argc 2 queue<0>  opts<s>  addr<>  body<>
>
>   initial delay 300ms
>
> [Jan  1 02:10:57] NOTICE[520]: app_sms.c:1718 sms_process: No data, hanging
> up
>
> [Jan  1 02:10:57] NOTICE[520]: app_sms.c:2028 sms_exec: channel hangup
>
> [Jan  1 02:10:57] NOTICE[520]: pbx_spool.c:349 attempt_thread: Call
> completed to SIP/1000
>
>
> I tried with XLITE softphone for  sending messaged but it in packet capture
> is shows 415 unsupported media type.
>

You cannot use app_sms to send text messages to SIP phones.  app_sms and 
SMSQ use the ETSI ES 201 912 standard to talk to an SMS service provider 
over the PSTN or to an analog SMS device.

See:
     http://www.voip-info.org/wiki/view/SMS
     http://www.voip-info.org/wiki/view/Asterisk+cmd+Sms
     http://www.voip-info.org/wiki/view/SMS+Service+in+the+USA

pbx*CLI> core show application sms

   -= Info about application 'SMS' =-

[Synopsis]
Communicates with SMS service centres and SMS capable analogue phones.

[Description]
SMS handles exchange of SMS data with a call to/from SMS capable phone 
or SMS PSTN service center. Can send and/or receive SMS messages. Works 
to ETSI ES 201 912; compatible with BT SMS PSTN service in UK and 
Telecom Italia in Italy.
Typical usage is to use to handle calls from the SMS service centre CLI,
or to set up a call using 'outgoing' or manager interface to connect 
service centre to SMS().

[Syntax]
SMS(name[,options[,addr[,body]]])



More information about the asterisk-dev mailing list