Re: Question about auto-rebinding

2006-09-14 Thread Yoga Nandiwardhana
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_link2006-09-15 10:46:35 [27740] [6] DEBUG:   command_id: 21 = 0x00152006-09-15 10:46:35 [27740] [6] DEBUG:   command_status: 0 = 0x2006-09-15 10:46:35 [27740] [6] DEBUG:   sequence_number: 700 = 0x02bc2006-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_link2006-09-15 10:46:36 [27740] [7] DEBUG:   command_id: 21 = 0x00152006-09-15 10:46:36 [27740] [7] DEBUG:   command_status: 0 = 0x2006-09-15 10:46:36 [27740] [7] DEBUG:   sequence_number: 701 = 0x02bd2006-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_transceiver2006-09-15 11:08:07 [1575] [6] DEBUG:   command_id: 9 = 0x00092006-09-15 11:08:07 [1575] [6] DEBUG:   command_status: 0 = 0x2006-09-15 11:08:07 [1575] [6] DEBUG:   sequence_number: 1 = 0x00012006-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 = 0x00342006-09-15 11:08:07 [1575] [6] DEBUG:   addr_ton: 0 = 0x2006-09-15 11:08:07 [1575] [6] DEBUG:   addr_npi: 0 = 0x2006-09-15 11:08:07 [1575] [6] DEBUG:   address_range: NULL2006-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_receiver2006-09-15 11:08:07 [1575] [7] DEBUG:   command_id: 1 = 0x00012006-09-15 11:08:07 [1575] [7] DEBUG:   command_status: 0 = 0x2006-09-15 11:08:07 [1575] [7] DEBUG:   sequence_number: 2 = 0x00022006-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 = 0x00342006-09-15 11:08:07 [1575] [7] DEBUG:   addr_ton: 0 = 0x2006-09-15 11:08:07 [1575] [7] DEBUG:   addr_npi: 0 = 0x2006-09-15 11:08:07 [1575] [7] DEBUG:   address_range: NULL2006-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 peer2006-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.any ideas?regardsYoga NandiwardhanaOn Sep 14, 2006, at 8:21 PM, Andreas Fink wrote:On 14.09.2006, at 12:42, Yoga Nandiwardhana wrote: Hi,I'm new to Kannel, and for so much i've only been a user, never really twiddle around with the configurations. Now the telco operator i'm connecting to requires me to do auto-rebinding whenever the connection got closed. How does Kannel handle this? Kannel automatically reconnects. Nothing to be done there.   

Re: Question about auto-rebinding

2006-09-14 Thread Andreas Fink
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_link2006-09-15 10:46:35 [27740] [6] DEBUG:   command_id: 21 = 0x00152006-09-15 10:46:35 [27740] [6] DEBUG:   command_status: 0 = 0x2006-09-15 10:46:35 [27740] [6] DEBUG:   sequence_number: 700 = 0x02bc2006-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_link2006-09-15 10:46:36 [27740] [7] DEBUG:   command_id: 21 = 0x00152006-09-15 10:46:36 [27740] [7] DEBUG:   command_status: 0 = 0x2006-09-15 10:46:36 [27740] [7] DEBUG:   sequence_number: 701 = 0x02bd2006-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_transceiver2006-09-15 11:08:07 [1575] [6] DEBUG:   command_id: 9 = 0x00092006-09-15 11:08:07 [1575] [6] DEBUG:   command_status: 0 = 0x2006-09-15 11:08:07 [1575] [6] DEBUG:   sequence_number: 1 = 0x00012006-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 = 0x00342006-09-15 11:08:07 [1575] [6] DEBUG:   addr_ton: 0 = 0x2006-09-15 11:08:07 [1575] [6] DEBUG:   addr_npi: 0 = 0x2006-09-15 11:08:07 [1575] [6] DEBUG:   address_range: NULL2006-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_receiver2006-09-15 11:08:07 [1575] [7] DEBUG:   command_id: 1 = 0x00012006-09-15 11:08:07 [1575] [7] DEBUG:   command_status: 0 = 0x2006-09-15 11:08:07 [1575] [7] DEBUG:   sequence_number: 2 = 0x00022006-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 = 0x00342006-09-15 11:08:07 [1575] [7] DEBUG:   addr_ton: 0 = 0x2006-09-15 11:08:07 [1575] [7] DEBUG:   addr_npi: 0 = 0x2006-09-15 11:08:07 [1575] [7] DEBUG:   address_range: NULL2006-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 peer2006-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 FinkFink Consulting GmbH---Tel: +41-61-332 Fax: +41-61-331  Mobile: +41-79-2457333Address: Clarastrasse 3, 4058 Basel, SwitzerlandE-Mail:  [EMAIL PROTECTED]Homepage: http://www.finkconsulting.com---ICQ: 8239353MSN: [EMAIL PROTECTED] AIM: smsrelay Skype: andreasfinkYahoo: finkconsulting SMS: +41792457333 

Re: Question about auto-rebinding

2006-09-14 Thread Yoga Nandiwardhana
In a matter of fact, I am using a specific port. The port was  
assigned to us by the operator. Thus when they cut off our SMPP  
connection by switching off the network, we still keep the TCP  
connection (because Kannel isn't being restarted).  So when Kannel  
attempts to re-bind, it failed.I figure that's what happened?


Now the operator of course won't change their settings, all i can do  
is set up a workaround. How can I achieve this? Can Kannel tries to  
rebind from attempting the TCP socket connection again?


On Sep 15, 2006, at 12:19 PM, Andreas Fink wrote:



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).