[Home]

Summary:ASTERISK-04916: [patch] app_sms does not receive SMS from Swisscom fixed line SMSC
Reporter:sailer (sailer)Labels:
Date Opened:2005-08-28 13:27:38Date Closed:2011-06-07 14:10:40
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_sms
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) swisscomsms.patch.txt
Description:When answering a call from the swisscom SMSC, app_sms needs to be set into SMSC mode, otherwise the swisscom SMSC gets confused and does not respond.

In SMSC mode, app_sms expects the other side to use SMS-SUBMIT messages to transfer messages, the Swisscom SMSC however uses SMS-DELIVER, which app_sms currently only accepts in mobile mode.

My solution (see patch) was to allow both SMS-SUBMIT and SMS-DELIVER, regardless whether app_sms was started in SMSC or mobile mode.

****** STEPS TO REPRODUCE ******

relevant entries from extensions.conf:
[smsrecv]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,NoOp(Receiving SMS from ${CALLERIDNUM})
exten => s,4,SMS(default|sa)
exten => s,5,Hangup()

[zapincoming]
exten => _X./0622100000,1,Goto(smsrecv,s,1)

sample handshake between unpatched app_sms and swisscom SMSC:
   -- Executing SMS("Zap/4-1", "default|sa") in new stack
   -- SMS TX 93 00 6D
   -- SMS RX 91 7B 04 0A 81 70 39 78 25 54 00 00 50 80 82 91 00 61 40 77 CC 74 59 5C 96 83 E8 E8 77 3B...
Aug 28 19:00:22 WARNING[32759]: app_sms.c:980 sms_handleincoming: Unknown message type 04
   -- SMS TX 96 03 00 FF 00 68
   -- SMS RX 91 1B 04 0A 81 40 34 16 36 02 00 F1 50 80 82 91 00 61 40 0A C8 30 9B FD 06 5D CB 6C 3A 20
Aug 28 19:00:22 WARNING[32759]: app_sms.c:980 sms_handleincoming: Unknown message type 04
   -- SMS TX 96 03 00 FF 00 68
   -- SMS RX 91 9B 04 04 81 88 88 00 F1 50 80 82 91 00 71 40 9F C8 B2 5C CF 4E 8F D1 65 D0 51 1E A6 D7...
Aug 28 19:00:24 WARNING[32759]: app_sms.c:980 sms_handleincoming: Unknown message type 04
   -- SMS TX 96 03 00 FF 00 68
   -- SMS RX 94 00 6C
   -- Executing Hangup("Zap/4-1", "") in new stack                                                      
Comments:By: sailer (sailer) 2005-08-28 13:35:15

Andrew, I'd be glad if you can comment on this, thanks.
Tom


By: Kevin P. Fleming (kpfleming) 2005-09-13 18:29:44

It has been two weeks with no additional reports good or bad... suspending until some additional users can report their testing results. Please request a re-open when the results are available.