mentby.com
Blog | Jobs | Help | Signup | Login

Hello,

  I've two mobile phones registered to OpenBTS. I can successfully make
calls between them, but I can't send sms between them. The log is:
OpenBTS> 1265781762.1534 INFO 3074448272
RadioResource.cpp:152:AccessGrantResponder: RA=0xeb when=0:111199 age=24
TOA=0.0000
1265781762.1536 INFO 3074448272 GSMLogicalChannel.cpp:42:open:
1265781762.1537 INFO 3074448272 GSMLogicalChannel.cpp:42:open:
1265781762.1540 INFO 3074448272 RadioResource.cpp:207:AccessGrantResponder:
sending PageMode=(0) DedicatedModeOrTBF=(TMA=0 Downlink=0 DMOrTBF=0)
ChannelDescription=(typeAndOffset=SDCCH/4-0 TN=0 TSC=0 ARFCN=513)
RequestReference=(RA=235 T1'=19 T2=23 T3=19) TimingAdvance=0
1265781762.4865 INFO 3072318352 GSML3Message.cpp:162:parseL3: L3 recv MM CM
Service Request serviceType=SMS mobileIdentity=(TMSI=0x4b724a33)
1265781762.4867 INFO 3072318352
MobilityManagement.cpp:59:CMServiceResponder: MM CM Service Request
serviceType=SMS mobileIdentity=(TMSI=0x4b724a33)
1265781762.4868 INFO 3072318352 SMSControl.cpp:306:MOSMSController: MOSMS,
req MM CM Service Request serviceType=SMS mobileIdentity=(TMSI=0x4b724a33)
1265781762.4869 INFO 3072318352 SMSControl.cpp:332:MOSMSController: sending
CMServiceAccept
1265781762.4870 INFO 3072318352 GSMLogicalChannel.cpp:76:send: L3 SAP0
sending MM CM Service Accept

OpenBTS>
OpenBTS>
OpenBTS>
OpenBTS>
OpenBTS> 1265781765.0751 INFO 3072318352 SMSControl.cpp:352:MOSMSController:
sending CPAck

OpenBTS> 1265781765.1309 INFO 3072318352 SMSControl.cpp:366:MOSMSController:
CPData CP-DATA TI=(0,7)
RPDU=(007a000891683108603605f023017a0481251900001d4f78d92da6cf41f4f29c9e769f41f674d93d0791eb20ba3c3f07)
1265781765.1312 INFO 3072318352 SMSControl.cpp:285:handleRPDU: SMS RP-DATA 0
ref=122 origSMSC=(type=unknown plan=unknown digits=)
destSMSC=(type=international plan=E.164/ISDN digits=8613800663500)
TPDU=(primitive=undefined
data=(017a0481251900001d4f78d92da6cf41f4f29c9e769f41f674d93d0791eb20ba3c3f07))
1265781765.1314 INFO 3072318352 SMSControl.cpp:262:handleTPDU: SMS
SMS-SUBMIT 1 RD=0 VPF=0 RP=0 UDHI=0 SRR=0 MR=122 DA=(type=unknown
plan=E.164/ISDN digits=5291) PI=0 DCS=0 VP=(expiration=(Tue Feb 16 22:02:45
2010)) UD="Openbts testing viens du trys"
1265781765.1316 INFO 3072318352 SMSControl.cpp:217:submitSMS: from
IMSI=460029179918532
1265781765.1317 INFO 3072318352 SMSControl.cpp:172:sendToNumericAddress:
from IMSI=460029179918532 mesage: 1 RD=0 VPF=0 RP=0 UDHI=0 SRR=0 MR=122
DA=(type=unknown plan=E.164/ISDN digits=5291) PI=0 DCS=0 VP=(expiration=(Tue
Feb 16 22:02:45 2010)) UD="Openbts testing viens du trys"
1265781765.1318 INFO 3072318352 ControlCommon.cpp:239:add: new transaction
1804289385 TI=(0,0) IMSI=460029179918532 SMS to=5291 Q.931State=SMS
submission SIPState=Null
1265781765.1320 INFO 3072318352 SIPEngine.cpp:652:MOSMSSendMESSAGE: SIP send
to 5291@127.0.0.1 MESSAGE Openbts testing viens du trys
1265781765.1321 INFO 3072318352 SIPInterface.cpp:107:addCall: creating SIP
message FIFO callID 1099023905
1265781765.1323 INFO 3072318352 SIPInterface.cpp:167:write: write MESSAGE
sip:5291@127.0.0.1 <sip%3A5291@127.0.0.1> SIP/2.0

OpenBTS>
OpenBTS> 1265781767.1328 ALARM 3072318352
SIPEngine.cpp:698:MOSMSWaitForSubmit: timed out, is SMS server OK?
1265781767.1330 INFO 3072318352 SIPInterface.cpp:114:removeCall: removing
SIP message FIFO callID 1099023905
1265781767.1331 INFO 3072318352 SMSControl.cpp:389:MOSMSController: sending
RPError in CPData
1265781767.4292 INFO 3072318352 SMSControl.cpp:405:MOSMSController: CPAck
CP-ACK TI=(0,7)
1265781767.4294 INFO 3072318352 SMSControl.cpp:408:MOSMSController: closing
1265781767.4294 INFO 3072318352 GSMLogicalChannel.cpp:76:send: L3 SAP0
sending RR Channel Release cause=0x0
1265782015.4970 INFO 3074448272 RadioResource.cpp:152:AccessGrantResponder:
RA=0xf when=0:166089 age=24 TOA=2.0000
1265782015.4971 INFO 3074448272 GSMLogicalChannel.cpp:42:open:
1265782015.4972 INFO 3074448272 GSMLogicalChannel.cpp:42:open:
1265782015.4975 INFO 3074448272 RadioResource.cpp:207:AccessGrantResponder:
sending PageMode=(0) DedicatedModeOrTBF=(TMA=0 Downlink=0 DMOrTBF=0)
ChannelDescription=(typeAndOffset=SDCCH/4-0 TN=0 TSC=0 ARFCN=513)
RequestReference=(RA=15 T1'=29 T2=1 T3=33) TimingAdvance=2
1265782015.7659 INFO 3072318352 GSML3Message.cpp:162:parseL3: L3 recv MM
Location Updating Request LAI=(MCC=460 MNC=02 LAC=0x29a)
MobileIdentity=(TMSI=0x4b724a34)
1265782015.7661 INFO 3072318352
MobilityManagement.cpp:139:LocationUpdatingController: MM Location Updating
Request LAI=(MCC=460 MNC=02 LAC=0x29a) MobileIdentity=(TMSI=0x4b724a34)
1265782015.7662 INFO 3072318352 SIPEngine.cpp:148:Register:
SIPEngine::Register mState=Null 0 callID 623176392
1265782015.7663 INFO 3072318352 SIPInterface.cpp:107:addCall: creating SIP
message FIFO callID 623176392
1265782015.7667 INFO 3072318352 SIPInterface.cpp:167:write: write REGISTER
sip:127.0.0.1 SIP/2.0
1265782015.7675 INFO 3074980752 SIPInterface.cpp:192:drive: read SIP/2.0 100
Trying
1265782015.7981 INFO 3074980752 SIPInterface.cpp:192:drive: read SIP/2.0 200
OK
1265782015.7986 INFO 3072318352 SIPInterface.cpp:114:removeCall: removing
SIP message FIFO callID 623176392
1265782015.7988 INFO 3072318352
MobilityManagement.cpp:189:LocationUpdatingController: registration SUCCESS:
IMSI=460020148034588
1265782015.7989 INFO 3072318352 GSMLogicalChannel.cpp:76:send: L3 SAP0
sending MM MM Information short name=(OpenBTS)
1265782015.8224 INFO 3072318352 GSMLogicalChannel.cpp:76:send: L3 SAP0
sending MM Location Updating Accept LAI=(MCC=460 MNC=02 LAC=0x29a)
1265782016.2364 INFO 3072318352 GSMLogicalChannel.cpp:76:send: L3 SAP0
sending RR Channel Release cause=0x0

The config is:
Asterisk.IP: 127.0.0.1
Asterisk.Port: 5060
Control.FailedRegistrationWelcomeMessage: It's been fun.  See you next year.
Control.FailedRegistrationWelcomeShortCode: 666
Control.NormalRegistrationWelcomeMessage: Welcome to OpenBTS!
Control.NormalRegistrationWelcomeShortCode: 0000
Control.OpenRegistration: 0
Control.OpenRegistrationWelcomeShortCode: 23
GSM.ARFCN: 513
GSM.AssignmentType: 1
GSM.BCC: 0
GSM.Band: 1800
GSM.CCD.ATT: 1
GSM.CCD.CCCH_CONF: 1
GSM.CI: 10
GSM.CS.CELL_RESELECT_HYSTERESIS: 7
GSM.CS.MS_TXPWR_MAX_CCH: 0
GSM.CS.RXLEV_ACCESS_MIN: 0
GSM.LAC: 666
GSM.LURejectCause: 0x04
GSM.MCC: 460
GSM.MNC: 02
GSM.MaxRACHDelay: 20
GSM.NCC: 0
GSM.NCCsPermitted: 1
GSM.Neighbors: 29
GSM.NumC1s: 5
GSM.NumC7s: 1
GSM.PowerAttenDB: 0
GSM.RACH.AC: 0
GSM.RACH.CellBarAccess: 0
GSM.RACH.MaxRetrans: 3
GSM.RACH.TxInteger: 14
GSM.RADIO_LINK_TIMEOUT: 15
GSM.ShortName: OpenBTS
GSM.T3122Max: 255000
GSM.T3122Min: 2000
GSM.T3212: 6
LogLevel: INFO
Messenger.IP: 127.0.0.1
Messenger.Port: 5063
PBX.Emergency: 2101
RTP.Range: 98
RTP.Start: 16484
SIP.IP: 127.0.0.1
SIP.Port: 5062
SIP.RegistrationPeriod: 3600
SIP.Timer.A: 1000
SMS.DefaultDestSMSC: 0000
SMS.FakeSrcSMSC: 0000
SMS.HTTP.AccessString: sendmsg?user=xxxx&password=xxxx&api_id=xxxx
SMSLoopback.Port: 5064
TRX.IP: 127.0.0.1
TRX.LogLevel: NOTICE
TRX.Path: ../Transceiver52M/transceiver
TRX.Port: 5700
TestCall.Port: 28670
Wireshark.Port: 4729

  My question is, does it need additional software for sending SMS like
Kannel ?
Thanks for help

--
Best Regards,
Giedrius


Giedrius Augys Tue, 09 Feb 2010 22:24:55 -0800

To send SMS from one handset to another, you need to be running  
smqueue.  It is included in release 2.5 and later.  See smqueue/README.

David A. Burgess
Kestrel Signal Processing, Inc.


David A. Burgess Tue, 09 Feb 2010 22:34:00 -0800

Were you running smqueue?


Harvind Samra Tue, 09 Feb 2010 22:51:52 -0800

I missed this smsqueue. I launched it, now I get this:
Got SMS '939--tlkbw' from IMSI460029179918532 for 5291.
Responding with "202 Queued".
Lookup IMSI <IMSI460029179918532> to phonenum failed.
Bouncing 939--tlkbw from IMSI460029179918532 to 5291: You're on the BM free
cell                                ular net; text your phone number to 101
first
=== Feb  9 23:29:41 1 queued; 75 seconds til Request Destination SIP URL for
668                                1--6681
Got SMS 200 Response '6681--6681'.
Got 200 response for sent msg '6681--6681' in state 7
Deleting sent message.
=== Feb  9 23:29:46 0 queued; waiting.

  And also after launching smsqueue, I see this warning:
/smqueue
Listening at address '0.0.0.0:5063'.
listen_on_port(5063) can't bind to addr ':::5063': Address already in use
My own IP address is configured as 127.0.0.1
The HLR registry is at 127.0.0.1:5060
Failed to read queue from file savedqueue.txt

--
Best Regards,
Giedrius


Giedrius Augys Tue, 09 Feb 2010 23:33:49 -0800

Hello Giedrius,

I also had some "lookup IMSI to phonenum" errors, although I don't
exactly remember if it were the same. Anyhow - the problem was, that the
context in the asterisk config was another than "sip-local", and smqueue
didn't find the number then. Maybe that helps.

Best regards
Michael


Michael Folz Wed, 10 Feb 2010 08:32:04 -0800

Hi Giedrius,
*//*
Right now smqueue only supports local delivery.  In the future it will
support SMPP so that you can use Kannel.

There are example configurations in apps/OpenBTS.config.example for
using an SMS HTTP Gateway. This will bypass smqueue.

-Donald


Donald C. Kirker Fri, 12 Feb 2010 14:50:03 -0800

One way to accomplish this is to have a central server running  
Asterisk and smqueue.  Then have all of the OpenBTS units use that  
central server instead of their own local Asterisk/smqueue.

David A. Burgess
Kestrel Signal Processing, Inc.


David A. Burgess Tue, 23 Mar 2010 14:07:42 -0700

And what about sending/receiving SMS from other GSM networks?
--
Best Regards,
Giedrius


Giedrius Augys Wed, 24 Mar 2010 12:33:43 -0700

This is currently being implemented.

My plan is to implement an SMPP link so that smqueue can be interfaced
with other carriers' SMSCs, or with a peering partner.

-Donald


Donald C. Kirker Wed, 24 Mar 2010 17:04:49 -0700



Related Topics

Post a Comment