Hi change this:
<to>smpp</to> with <to>91977....</to> // this is the destination number and add <smsc-id>smpp</smsc-id> // this is the route it should take. You might omit this Hope helps Alvaro On 9/19/13, John alero <[email protected]> wrote: > Dear Team, > > We are facing strange issue when we request POST XML request. > > Kindly find the logs in given below. We are getting error "WARNING: Message > rejected by bearerbox, no router!" in Bearerbox.log. Please let me know if > i missing any parameters. > > > Bearerbox Log: > > 2013-09-19 14:04:42 [13421] [26] DEBUG: boxc_receiver: sms received > 2013-09-19 14:04:42 [13421] [26] WARNING: Cannot find SMSCConn for message > to <91XXXXXXXXX>, rejected. > 2013-09-19 14:04:42 [13421] [26] DEBUG: SMSC[UNKNOWN]: creating DLR message > 2013-09-19 14:04:42 [13421] [26] DEBUG: SMSC[UNKNOWN]: DLR = > http://localhost/delivery-report.php?send_history_id=13853217&to_number=91XXXXXXXX&type=%d > 2013-09-19 14:04:42 [13421] [26] WARNING: Message rejected by bearerbox, no > router! > 2013-09-19 14:04:42 [13421] [26] DEBUG: send_msg: sending msg to boxc: > <asmsbox> > 2013-09-19 14:04:42 [13421] [27] DEBUG: send_msg: sending msg to boxc: > <asmsbox> > 2013-09-19 14:04:42 [13421] [27] DEBUG: boxc_sender: sent message to > <127.0.0.1> > 2013-09-19 14:04:42 [13421] [26] DEBUG: boxc_receiver: got ack > > > SMSBOX logs: > 2013-09-19 14:04:42 [13450] [3] INFO: smsbox: Got HTTP request > </cgi-bin/sendsms> from <192.168.1.1> > 2013-09-19 14:04:42 [13450] [3] DEBUG: XMLParsing: XML: <<?xml > version="1.0" encoding="UTF-8"?> > <message> > <submit> > <da><number>91XXXXXXXXX</number></da> > <oa><number>TESTSM</number></oa> > <ud>Test</ud> > <statusrequest> > <dlr-mask>31</dlr-mask> > <dlr-url> > http://localhost/delivery-report.php?send_history_id=13853217&to_number=91XXXXXXXXX&type=%d > </dlr-url> > </statusrequest> > <from> > <username>kannel</username> > <password>kannel1</password> > <account>trans</account> > <binfo>MT</binfo> > </from> > <to>smpp</to> > </submit> > </message>> > 2013-09-19 14:04:42 [13450] [3] INFO: sendsms used by <kannel> > 2013-09-19 14:04:42 [13450] [3] INFO: sendsms sender:<kannel:TESTSM> > (192.168.1.1) to:<multi-cast> msg:<Test> > 2013-09-19 14:04:42 [13450] [3] DEBUG: Stored UUID > fc45a00e-ede5-402a-9d80-4a449ee541cf > 2013-09-19 14:04:42 [13450] [3] DEBUG: message length 4, sending 1 messages > 2013-09-19 14:04:42 [13450] [3] DEBUG: Status: 202 Answer: <Sent.> > 2013-09-19 14:04:42 [13450] [3] DEBUG: Delayed reply - wait for bearerbox > 2013-09-19 14:04:42 [13450] [0] DEBUG: Got ACK (1) of > fc45a00e-ede5-402a-9d80-4a449ee541cf > 2013-09-19 14:04:42 [13450] [0] DEBUG: HTTP: Resetting HTTPClient for > `192.168.1.1'. > 2013-09-19 14:04:42 [13450] [4] INFO: Starting delivery report > <vivakannel2> from <TESTSM> > 2013-09-19 14:04:42 [13450] [9] DEBUG: Queue contains 0 pending requests. > 2013-09-19 14:04:42 [13450] [9] DEBUG: Parsing URL ` > http://localhost/delivery-report.php?send_history_id=13853217&to_number=91XXXXXXXXXX&type=16 > ': > 2013-09-19 14:04:42 [13450] [9] DEBUG: Scheme: http:// > 2013-09-19 14:04:42 [13450] [9] DEBUG: Host: localhost > 2013-09-19 14:04:42 [13450] [9] DEBUG: Port: 80 > 2013-09-19 14:04:42 [13450] [9] DEBUG: Username: (null) > 2013-09-19 14:04:42 [13450] [9] DEBUG: Password: (null) > 2013-09-19 14:04:42 [13450] [9] DEBUG: Path: /delivery-report.php > 2013-09-19 14:04:42 [13450] [9] DEBUG: Query: > send_history_id=13853217&to_number=91XXXXXXXXXX&type=16 > 2013-09-19 14:04:42 [13450] [9] DEBUG: Fragment: (null) > 2013-09-19 14:04:42 [13450] [9] DEBUG: Connecting nonblocking to > <127.0.0.1> > 2013-09-19 14:04:42 [13450] [9] DEBUG: HTTP: Opening connection to > `localhost:80' (fd=27). > 2013-09-19 14:04:42 [13450] [9] DEBUG: Socket connecting > 2013-09-19 14:04:42 [13450] [8] DEBUG: Get info about connecting socket > 2013-09-19 14:04:42 [13450] [8] DEBUG: HTTP: Sending request: > 2013-09-19 14:04:42 [13450] [8] DEBUG: Octet string at 0x1c763ea0: > 2013-09-19 14:04:42 [13450] [8] DEBUG: len: 160 > 2013-09-19 14:04:42 [13450] [8] DEBUG: size: 1024 > 2013-09-19 14:04:42 [13450] [8] DEBUG: immutable: 0 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 47 45 54 20 2f 64 65 6c 69 > 76 65 72 79 2d 72 65 GET /delivery-re > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 70 6f 72 74 2e 70 68 70 3f > 73 65 6e 64 5f 68 69 port.php?send_hi > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 73 74 6f 72 79 5f 69 64 3d > 31 33 38 35 33 32 31 story_id=1385321 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 37 26 74 6f 5f 6e 75 6d 62 > 65 72 3d 39 31 39 37 7&to_number=91XX > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 37 33 35 39 36 38 30 37 26 > 74 79 70 65 3d 31 36 XXXXXXXX&type=16 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 20 48 54 54 50 2f 31 2e 31 > 0d 0a 48 6f 73 74 3a HTTP/1.1..Host: > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 20 6c 6f 63 61 6c 68 6f 73 > 74 0d 0a 43 6f 6e 6e localhost..Conn > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 65 63 74 69 6f 6e 3a 20 6b > 65 65 70 2d 61 6c 69 ection: keep-ali > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 76 65 0d 0a 55 73 65 72 2d > 41 67 65 6e 74 3a 20 ve..User-Agent: > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 4b 61 6e 6e 65 6c 2f 31 2e > 35 2e 30 0d 0a 0d 0a Kannel/1.5.0.... > 2013-09-19 14:04:42 [13450] [8] DEBUG: Octet string dump ends. > 2013-09-19 14:04:42 [13450] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK> > 2013-09-19 14:04:42 [13450] [8] DEBUG: HTTP: Received response: > 2013-09-19 14:04:42 [13450] [8] DEBUG: Octet string at 0x1c75f5e0: > 2013-09-19 14:04:42 [13450] [8] DEBUG: len: 212 > 2013-09-19 14:04:42 [13450] [8] DEBUG: size: 1024 > 2013-09-19 14:04:42 [13450] [8] DEBUG: immutable: 0 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 44 61 74 65 3a 20 54 68 75 > 2c 20 31 39 20 53 65 Date: Thu, 19 Se > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 70 20 32 30 31 33 20 30 38 > 3a 33 34 3a 34 32 20 p 2013 08:34:42 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 47 4d 54 0d 0a 53 65 72 76 > 65 72 3a 20 41 70 61 GMT..Server: Apa > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 63 68 65 2f 32 2e 32 2e 33 > 20 28 43 65 6e 74 4f che/2.2.3 (CentO > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 53 29 0d 0a 58 2d 50 6f 77 > 65 72 65 64 2d 42 79 S)..X-Powered-By > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 3a 20 50 48 50 2f 35 2e 34 > 2e 31 36 0d 0a 43 6f : PHP/5.4.16..Co > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 6e 74 65 6e 74 2d 4c 65 6e > 67 74 68 3a 20 30 0d ntent-Length: 0. > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 0a 4b 65 65 70 2d 41 6c 69 > 76 65 3a 20 74 69 6d .Keep-Alive: tim > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 65 6f 75 74 3d 31 35 2c 20 > 6d 61 78 3d 31 30 30 eout=15, max=100 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 0d 0a 43 6f 6e 6e 65 63 74 > 69 6f 6e 3a 20 4b 65 ..Connection: Ke > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 65 70 2d 41 6c 69 76 65 0d > 0a 43 6f 6e 74 65 6e ep-Alive..Conten > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 74 2d 54 79 70 65 3a 20 74 > 65 78 74 2f 68 74 6d t-Type: text/htm > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 6c 3b 20 63 68 61 72 73 65 > 74 3d 55 54 46 2d 38 l; charset=UTF-8 > 2013-09-19 14:04:42 [13450] [8] DEBUG: data: 0d 0a 0d > 0a .... > 2013-09-19 14:04:42 [13450] [8] DEBUG: Octet string dump ends. > > 2013-09-19 14:04:57 [13450] [8] DEBUG: HTTP: Server closed connection, > destroying it <localhost:80:0::><0x1c76ec70><fd:27>. > > > > smskannel.conf > > > # CORE > # > # There is only one core group and it sets all basic settings > # of the bearerbox (and system). You should take extra notes on > # configuration variables like 'store-file' (or 'store-dir'), > # 'admin-allow-ip' and 'access.log' > > > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password =kannel1 > status-password =kannel1 > log-file = "/var/log/kannel/kannel.log" > access-log = "/var/log/kannel/kannel_access.log" > store-location = "/home/kannel/kannel.store" > #log-level = 0 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > #unified-prefix = "+358,00358,0;+,00" > #access-log = "/tmp/access.log" > #store-file = "kannel.store" > #sms-combine-concatenated-mo = true > #ssl-server-cert-file = "cert.pem" > #ssl-server-key-file = "key.pem" > #ssl-certkey-file = "mycertandprivkeyfile.pem" > dlr-storage=mysql > sms-resend-freq=60 > sms-resend-retry=1 > > > group = smsc > smsc = smpp > smsc-id = smpp > host= 10.0.0.25 > smsc-username= smpp > smsc-password= smpp > port = 1234 > connect-allow-ip = 127.0.0.1 > system-type="test" > address-range="" > alt-charset="ASCII" > source-addr-ton=1 > source-addr-npi=1 > dest-addr-ton=1 > dest-addr-npi=1 > allowed-smsc-id= smpp > #keepalive = 25 > #reconnect-delay = 60 > #transceiver-mode=1 > enquire-link-interval=30 > throughput= 40 > > #--------------------------------------------- > # Smsbox(es) do higher-level SMS handling after they have been received > from > # SMSBOX SETUP > # > # SMS centers by bearerbox, or before they are given to bearerbox for del > > group = smsbox > smsbox-id=asmsbox > bearerbox-host = 127.0.0.1 > sendsms-port = 13013 > global-sender = teat > #sendsms-chars = "0123456789 +-" > #log-file = "/var/log/kannel/smsbox.log" > #log-level = 0 > #access-log = "/var/log/kannel/smsbox01.log" > http-request-retry=5 > http-queue-delay=50 > > > #--------------------------------------------- > # SEND-SMS USERS > # > # These users are used when Kannel smsbox sendsms interface is used to > # send PUSH sms messages, i.e. calling URL like > # > http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar. > .. > > group = sendsms-user > username = kannel > password = kannel1 > #user-deny-ip = "" > #user-allow-ip = "" > max-messages = 5 > concatenation=true > > > #--------------------------------------------- > # SERVICES > # > # These are 'responses' to sms PULL messages, i.e. messages arriving from > # handsets. The response is based on message content. Only one sms-service > is > # applied, using the first one to match. > > group = sms-service > keyword = nop > text = "You asked nothing and I did it!" > > # There should be always a 'default' service. This service is used when no > # other 'sms-service' is applied. > > > group = sms-service > keyword = default > catch-all = yes > max-messages = 0 > text=<480 Characters with spaces> > concatenation=true > max-messages=5 > > > group = mysql-connection > id = mydlr > host = localhost > username = root > password = test > database = abc > > group = dlr-db > id = mydlr > table = abc > field-smsc = smsc > field-timestamp = ts > field-source=source > field-destination = destination > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id=boxc > > > ---------- > > XML CODE: > > <?xml version="1.0" encoding="UTF-8"?> > <message> > <submit> > <da><number>91XXXXXX</number></da> > <oa><number>TEST</number></oa> > <ud>Test</ud> > <statusrequest> > <dlr-mask>31</dlr-mask> > <dlr-url> > http://localhost/delivery-report.php?send_history_id=13853217&to_number=919773596807&type=%d > </dlr-url> > </statusrequest> > <from> > <username>kannel</username> > <password>kannel1</password> > <account>trans</account> > <binfo>MT</binfo> > </from> > <to>smpp</to> > </submit> > </message> > > > Please let me know how to slove the issue. > > > On Mon, Sep 16, 2013 at 11:48 AM, Smith <[email protected]> wrote: > >> >> unsubscribe >> >> > -- |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com
