[asterisk-bugs] [Asterisk 0012779]: [patch] smsq does not work in asterisk 1.6

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Mar 21 05:20:02 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12779 
====================================================================== 
Reported By:                PH
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   12779
Category:                   Utilities/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Target Version:             1.6.2.0
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-06-03 06:53 CDT
Last Modified:              2009-03-21 05:20 CDT
====================================================================== 
Summary:                    [patch] smsq does not work in asterisk 1.6
Description: 
smsq which works well in asterisk 1.4, does not work
in the same way on 1.6 :

  -- Attempting call on mISDN/1/0809101000 for application SMS(0) (Retry
1)
       > Channel mISDN/1-u5 was answered.
       > Launching SMS(0) on mISDN/1-u5
 sms argc 1 queue <0> opts <> addr <> body <>
 initial delay 300ms
    -- SMS RX 93 00 6D
    -- SMS TX 91 16 01 01 0A 81 60 70 47 90 10 00 F1 0B E8 32 9B FD 06
DD DF 72 36 19
    -- SMS RX 95 09 01 00 80 50 62 90 71 32 80 7C
    -- SMS TX 94 00
[May 26 09:37:30] NOTICE[6747]: app_sms.c:1904 sms_exec: ast_read failed
[May 26 09:37:30] NOTICE[6747]: pbx_spool.c:333 attempt_thread: Call
completed to mISDN/1/0809101000


====================================================================== 

---------------------------------------------------------------------- 
 (0102041) alecdavis (reporter) - 2009-03-21 05:20
 http://bugs.digium.com/view.php?id=12779#c102041 
---------------------------------------------------------------------- 
Sample configuration to receive sms messages, calls come into the
'[cellular]' context from callerid 042111 the vodafone SMS service centre.

extensions.conf
....
[phones]
exten => 2345,1,Dial(DAHDI/32,20,rt)
exten => 2346,1,Dial(DAHDI/33,20,rt)

[cellular]
exten => s,1,NoOp(Callerid = ${CALLERID(all)})
exten => s,n,GotoIf($["${CALLERID(num)}"="042111"]?SMSMessage)

exten => s,n,Dial(DAHDI/32,20,rt)
exten => s,n,Hangup()

exten => s,n(SMSMessage),NoOp( SMS MESSAGE )
exten => s,n,SMS(sms,at)
exten => s,n,NoOp( Wont Get Here)
exten => s,n,Hangup()

exten => h,1,NoOp( Send SMS to Email)
exten => h,n,GotoIf($["${CALLERID(num)}"!="042111"]?noSMSMessage)
exten => h,n,System(/usr/lib/asterisk/sms-email)
exten => h,n(noSMSMessage),Hangup()

Although deprecated, I understood that SMS send should also work, but this
is why this bug exists, SMSQ and SMS send do not work.

To test this, although I have SMS equipment, I believe, on the same
Asterisk box we should be able to use SMS (send) to an SMS (receive)
extension. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-21 05:20 alecdavis      Note Added: 0102041                          
======================================================================




More information about the asterisk-bugs mailing list