Re: Question about auto-rebinding
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
On 15.09.2006, at 06:23, Yoga Nandiwardhana wrote: > OK here's what happens, the telco i'm connecting to requires us to > have an auto-rebinding test. Well, we failed. When they cut off the > connection, I got this: > > 2006-09-15 10:46:35 [27740] [6] DEBUG: SMPP PDU 0xb0f00ad0 dump: > 2006-09-15 10:46:35 [27740] [6] DEBUG: type_name: enquire_link > 2006-09-15 10:46:35 [27740] [6] DEBUG: command_id: 21 = 0x00000015 > 2006-09-15 10:46:35 [27740] [6] DEBUG: command_status: 0 = > 0x00000000 > 2006-09-15 10:46:35 [27740] [6] DEBUG: sequence_number: 700 = > 0x000002bc > 2006-09-15 10:46:35 [27740] [6] DEBUG: SMPP PDU dump ends. > 2006-09-15 10:46:35 [27740] [6] ERROR: SMPP[_M8_]: No responses > from SMSC within 300 sec. Reconnecting. > 2006-09-15 10:46:35 [27740] [6] ERROR: SMPP[_M8_]: Couldn't connect > to SMS center (retrying in 10 seconds). > 2006-09-15 10:46:36 [27740] [7] DEBUG: SMPP[_M8_]: Sending enquire > link: > 2006-09-15 10:46:36 [27740] [7] DEBUG: SMPP PDU 0xb0f00ad0 dump: > 2006-09-15 10:46:36 [27740] [7] DEBUG: type_name: enquire_link > 2006-09-15 10:46:36 [27740] [7] DEBUG: command_id: 21 = 0x00000015 > 2006-09-15 10:46:36 [27740] [7] DEBUG: command_status: 0 = > 0x00000000 > 2006-09-15 10:46:36 [27740] [7] DEBUG: sequence_number: 701 = > 0x000002bd > 2006-09-15 10:46:36 [27740] [7] DEBUG: SMPP PDU dump ends. > 2006-09-15 10:46:36 [27740] [7] ERROR: SMPP[_M8_]: No responses > from SMSC within 300 sec. Reconnecting. > 2006-09-15 10:46:36 [27740] [7] ERROR: SMPP[_M8_]: Couldn't connect > to SMS center (retrying in 10 seconds). > > over and over. > > so i stop my service, and then restart it. but i got: > > 2006-09-15 11:08:07 [1575] [6] DEBUG: SMPP[_M8_]: Sending PDU: > 2006-09-15 11:08:07 [1575] [6] DEBUG: SMPP PDU 0x9210678 dump: > 2006-09-15 11:08:07 [1575] [6] DEBUG: type_name: bind_transceiver > 2006-09-15 11:08:07 [1575] [6] DEBUG: command_id: 9 = 0x00000009 > 2006-09-15 11:08:07 [1575] [6] DEBUG: command_status: 0 = 0x00000000 > 2006-09-15 11:08:07 [1575] [6] DEBUG: sequence_number: 1 = > 0x00000001 > 2006-09-15 11:08:07 [1575] [6] DEBUG: system_id: "lalalalalala" > 2006-09-15 11:08:07 [1575] [6] DEBUG: password: "dumdeedumdeedum" > 2006-09-15 11:08:07 [1575] [6] DEBUG: system_type: "" > 2006-09-15 11:08:07 [1575] [6] DEBUG: interface_version: 52 = > 0x00000034 > 2006-09-15 11:08:07 [1575] [6] DEBUG: addr_ton: 0 = 0x00000000 > 2006-09-15 11:08:07 [1575] [6] DEBUG: addr_npi: 0 = 0x00000000 > 2006-09-15 11:08:07 [1575] [6] DEBUG: address_range: NULL > 2006-09-15 11:08:07 [1575] [6] DEBUG: SMPP PDU dump ends. > 2006-09-15 11:08:07 [1575] [7] DEBUG: SMPP[_M8_]: Sending PDU: > 2006-09-15 11:08:07 [1575] [7] DEBUG: SMPP PDU 0x9210798 dump: > 2006-09-15 11:08:07 [1575] [7] DEBUG: type_name: bind_receiver > 2006-09-15 11:08:07 [1575] [7] DEBUG: command_id: 1 = 0x00000001 > 2006-09-15 11:08:07 [1575] [7] DEBUG: command_status: 0 = 0x00000000 > 2006-09-15 11:08:07 [1575] [7] DEBUG: sequence_number: 2 = > 0x00000002 > 2006-09-15 11:08:07 [1575] [7] DEBUG: system_id: "lalalalalala" > 2006-09-15 11:08:07 [1575] [7] DEBUG: password: "dumdeedumdeedum" > 2006-09-15 11:08:07 [1575] [7] DEBUG: system_type: "" > 2006-09-15 11:08:07 [1575] [7] DEBUG: interface_version: 52 = > 0x00000034 > 2006-09-15 11:08:07 [1575] [7] DEBUG: addr_ton: 0 = 0x00000000 > 2006-09-15 11:08:07 [1575] [7] DEBUG: addr_npi: 0 = 0x00000000 > 2006-09-15 11:08:07 [1575] [7] DEBUG: address_range: NULL > 2006-09-15 11:08:07 [1575] [7] DEBUG: SMPP PDU dump ends. > 2006-09-15 11:08:07 [1575] [7] ERROR: Error reading from fd 28: > 2006-09-15 11:08:07 [1575] [7] ERROR: System error 104: Connection > reset by peer > 2006-09-15 11:08:07 [1575] [7] ERROR: SMPP[_M8_]: Couldn't connect > to SMS center (retrying in 10 seconds). > > > Then after i asked the telco to refresh my bind connection, only > then i was able to reconnect. The telco said that when we tried to > re-bind, we keep trying to use the old session instead of getting > the new session. > The above shows that Kannel tries to connect again. Now in SMPP there is no mentioning of "old session" or "new session". when you create a TCP stream, you have a new session. The only error I can imagine is that you have set your own TCP port. If you do that, the connection always comes from the same TCP port while if you don't set it, your OS will allocate a new source port. The setting is only there to work around some very stupid firewalls admins who dont know what they are doing (I think we should put some notes in the doc about that). Andreas Fink Fink Consulting GmbH --------------------------------------------------------------- Tel: +41-61-6666332 Fax: +41-61-6666331 Mobile: +41-79-2457333 Address: Clarastrasse 3, 4058 Basel, Switzerland E-Mail: [email protected] Homepage: http://www.finkconsulting.com --------------------------------------------------------------- ICQ: 8239353 MSN: [email protected] AIM: smsrelay Skype: andreasfink Yahoo: finkconsulting SMS: +41792457333