SMPP Message routing

SMPP Message routing SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through February 09, 2012 » SMPP Message routing « Previous || Next »
Author Message
Ian Ruddell
New member
Username: Ianr

Post Number: 1
Registered: 10-2011
Posted on Thursday, October 27, 2011 - 06:16 pm:   

I'm trying to use the accounting callbacks to decide the routing but are having no luck. Below is a log from SMSDebug where in response to the SMSSend and SMSOut messages I'm setting the SMSCRoute to 2degrees. However it always fails with "No SMSC defined to route message". We work in a number portability enviroment so do a DB look up to see where to route the message.
Many thanks for your help
Ian Ruddell
10:05:40:713 [17] ThreadProcessSMPPConnection: Processing SMPP connection from 202.180.69.40...
10:05:45:448 [18] ThreadProcessSMPPConnection: Processing SMPP connection from 202.180.69.26...
10:05:45:448 [18] SMPPServerReceiveMessageCallback: inbound message:
sender=, recip=+6422123456, pid=0, dcs=0, msgFlags=0, udh=, msg=uiytiuy, extraParms=Validity=2M
10:05:45:448 [18] GetAccountingKeepAlive: Closing keep-alive socket
10:05:45:448 [18] RetrieveURL: Retrieving http://202.50.170.245/cgi-bin/smsg.cgi?PreAuth=Yes&Type=SMSSend&From=Ian&To=%2B6 422123456&MsgCount=1&SubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy
10:05:45:463 [18] RetrieveURL: Retrieving cgi-bin/smsg.cgi?PreAuth=Yes&Type=SMSSend&From=Ian&To=%2B6422123456&MsgCount=1&S ubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy
10:05:45:463 [18] RetrieveURL: GET
/cgi-bin/smsg.cgi?PreAuth=Yes&Type=SMSSend&From=Ian&To=%2B6422123456&MsgCount=1& SubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy
HTTP/1.1
User-Agent: Now SMS/MMS Gateway v2011.07.05
Accept: */*
Host: 202.50.170.245
10:05:45:526 [18] HttpResponseWait: Chunked response Ok
10:05:45:526 [18] RetrieveURL: HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 21:05:44 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1
Transfer-Encoding: chunked
Content-Type: text/plain
SMSCRoute = 2degrees
Validity = 2M
SubmitIP = 202.180.69.26
Text = uiytiuy
MsgCount = 1
Type = SMSSend
PreAuth = Yes
To = +6422123456
From = Ian
10:05:45:526 [18] RetrieveURL: Saving keep-alive socket
10:05:45:526 [18] RetrieveURL: got success response
10:05:45:526 [18] RetrieveURL: text/plain
10:05:45:526 [18] GetAccountingKeepAlive: Re-using keep-alive socket
10:05:45:526 [18] RetrieveURL: Retrieving http://202.50.170.245/cgi-bin/smsg.cgi?Type=SMSSend&From=Ian&To=%2B6422123456&Me ssageID=4E8E9C9D.req&SubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy
10:05:45:526 [18] RetrieveURL: Using keep-alive socket
10:05:45:526 [18] RetrieveURL: Retrieving cgi-bin/smsg.cgi?Type=SMSSend&From=Ian&To=%2B6422123456&MessageID=4E8E9C9D.req&S ubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy
10:05:45:526 [18] RetrieveURL: GET
/cgi-bin/smsg.cgi?Type=SMSSend&From=Ian&To=%2B6422123456&MessageID=4E8E9C9D.req& SubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy
HTTP/1.1
User-Agent: Now SMS/MMS Gateway v2011.07.05
Accept: */*
Host: 202.50.170.245
10:05:45:573 [18] HttpResponseWait: Chunked response Ok
10:05:45:573 [18] RetrieveURL: HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 21:05:44 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1
Transfer-Encoding: chunked
Content-Type: text/plain
SMSCRoute = 2degrees
Type = SMSSend
MessageID = 4E8E9C9D.req
To = +6422123456
Validity = 2M
SubmitIP = 202.180.69.26
Text = uiytiuy
From = Ian
10:05:45:573 [18] RetrieveURL: Saving keep-alive socket
10:05:45:573 [18] RetrieveURL: got success response
10:05:45:573 [18] RetrieveURL: text/plain
10:05:45:588 [18] ThreadProcessSMPPConnection: Releasing SMPP connection from 202.180.69.26
10:05:45:588 [18] WaitForSocketClose: WinSock reported ioctlsocket complete
10:05:46:042 [15] GetAccountingKeepAlive: Re-using keep-alive socket
10:05:46:042 [15] RetrieveURL: Retrieving http://202.50.170.245/cgi-bin/smsg.cgi?Type=SMSOut&From=Ian&To=%2B6422123456&Mes sageID=4E8E9C9D.req&SubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy&SMSCRouteNam e=2degrees&SMSCName=SMPP%20-%20118.148.2.50:5019&Status=Error:%20%20No%20SMSC%20 defined%20to%20route%20message
10:05:46:042 [15] RetrieveURL: Using keep-alive socket
10:05:46:042 [15] RetrieveURL: Retrieving cgi-bin/smsg.cgi?Type=SMSOut&From=Ian&To=%2B6422123456&MessageID=4E8E9C9D.req&Su bmitIP=202.180.69.26&Validity=2M&Text=uiytiuy&SMSCRouteName=2degrees&SMSCName=SM PP%20-%20118.148.2.50:5019&Status=Error:%20%20No%20SMSC%20defined%20to%20route%2 0message
10:05:46:042 [15] RetrieveURL: GET
/cgi-bin/smsg.cgi?Type=SMSOut&From=Ian&To=%2B6422123456&MessageID=4E8E9C9D.req&S ubmitIP=202.180.69.26&Validity=2M&Text=uiytiuy&SMSCRouteName=2degrees&SMSCName=S MPP%20-%20118.148.2.50:5019&Status=Error:%20%20No%20SMSC%20defined%20to%20route% 20message
HTTP/1.1
User-Agent: Now SMS/MMS Gateway v2011.07.05
Accept: */*
Host: 202.50.170.245
10:05:46:120 [15] HttpResponseWait: Chunked response Ok
10:05:46:120 [15] RetrieveURL: HTTP/1.1 200 OK
Date: Wed, 26 Oct 2011 21:05:45 GMT
Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1
Transfer-Encoding: chunked
Content-Type: text/plain
SMSCRouteName = 2degrees
Status = Error: No SMSC defined to route message Validity = 2M SubmitIP = 202.180.69.26 Text = uiytiuy Type = SMSOut SMSCName = SMPP - 118.148.2.50:5019 MessageID = 4E8E9C9D.req SMSCRouteName = 2degrees To = +6422123456 From = Ian
10:05:46:120 [15] RetrieveURL: Saving keep-alive socket
10:05:46:120 [15] RetrieveURL: got success response
10:05:46:120 [15] RetrieveURL: text/plain
10:05:46:120 [15] ThreadProcessModem: SMS message could not be sent to
+6422123456, Error: No SMSC defined to route message
10:05:50:588 [18] ThreadProcessSMPPConnection: Processing SMPP connection from 202.180.69.26...
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3570
Registered: 08-2008
Posted on Thursday, October 27, 2011 - 06:19 pm:   

Hi Ian,

I think I see the problem. Remove the spaces around the "=".

The parser is actually looking for "SMSCRoute=" in the response, so it does not recognise "SMSCRoute =".

--
Des
NowSMS Support
Ian Ruddell
New member
Username: Ianr

Post Number: 2
Registered: 10-2011
Posted on Thursday, October 27, 2011 - 06:41 pm:   

Worked brilliantly thanks for your help

Login Login / Register Logout Logout Search Last 30 Days Topics Topics