Yes, I know that chek if a TCP connection is up is pretty simple. What I meant 
is that when I see the logs the connection is already reestablished and all 
works fine again, so it is too late to check manually nothing. 

Really I only saw this error a couple of times and want to know if it is a 
SMSC or kannel fault. Looking at the logs it seems a kannel fault because it 
seems that the enquire link is not being sent (and not that the SMSC is not 
responding).

The same applies to your second advise.

Once again, thank you for your time :-)

Regards,
Alberto


On Friday 23 December 2005 14:18, Rodrigo Cremaschi wrote:
> The TCP connection is easily checked (manually) if you use netstat or you
>
> telnet <SMSC_IP> <SMSC_PORT>
>
> You will not get a prompt, but something like this:
>
> Trying aaa.bbb.ccc.ddd...
> Connected to smsc.server.yourcarrier.com (aaa.bbb.ccc.ddd).
> Escape character is '^]'.
>
> Besides, if you can receive any kind of SMPP traffic, the TCP connection IS
> up. Did you tried my second advise?
>
> Regards,
> Rodrigo.
>
> On 12/22/05, Alberto Devesa <[EMAIL PROTECTED]> wrote:
> > Hi Rodrigo,
> >
> > First of all thank you for your time.
> >
> > It is very difficult to check if the TCP connection with the SMSC is up
> > because that error is not very usually and when I see the error in the
> > logs the connection is already reestablished by kannel.
> >
> > Anyway if the connection was broken I guess that the enquire link send by
> > kannel should appear in the logs without its correspondig enquire link
> > resp from smsc or, at least, kannel should try to reconnect inmeadtly and
> > not 300 seconds after. Am I wrong about this ?
> >
> >
> > Regards,
> > Alberto
> >
> > On Thursday 22 December 2005 15:34, Rodrigo Cremaschi wrote:
> > > Hola Alberto:
> > >
> > >      Maybe your transmitter disconnects and that is why Kannel cannot
> > > send any more SMPP packets to your SMSC.
> > >
> > > - Did you check if both transmitter and receiver are connected?
> > > - Try to send some SMS to a phone as a keep-alive before the 6 minute
> > > period, and see if the problem persists. (Some SMSCs behave strangely
> > > and disconnect the ESME if they don“t get an SMS, even if you send
> > > enquire links...). In this particular case, you should disconnect and
> > > reconnect :(
> > >
> > >     I hope this may be of help.
> > >
> > > Rodrigo.
> > >
> > > On 12/21/05, Alberto Devesa <[EMAIL PROTECTED]> 
wrote:
> > > > Hello,
> > > >
> > > > I am getting a strange behaviour while connected to a SMPP SMSC.
> > > > Kannel is sending an enquire link each 60 seconds (as configured) but
> > > > at a given moment it stops sending enquire links and after 6 minutes
> > > > it complains about not receiving response from SMSC but it seems that
> > > > really it is kannel who does not send the enquire link.
> > > >
> > > > Here are the logs:
> > > >
> > > >
> > > > Enquire link n:
> > > >
> > > > 2005-12-21 19:43:22 [30798] [7] DEBUG: SMPP[smpp1]: Sending enquire
> > > > link: 2005-12-21 19:43:22 [30798] [7] DEBUG: SMPP PDU 0x81bb170 dump:
> > > > 2005-12-21 19:43:22 [30798] [7] DEBUG:   type_name: enquire_link
> > > > 2005-12-21 19:43:22 [30798] [7] DEBUG:   command_id: 21 = 0x00000015
> > > > 2005-12-21 19:43:22 [30798] [7] DEBUG:   command_status: 0 =
> > > > 0x00000000 2005-12-21 19:43:22 [30798] [7] DEBUG:   sequence_number:
> > > > 1729 = 0x000006c1 2005-12-21 19:43:22 [30798] [7] DEBUG: SMPP PDU
> > > > dump ends. 2005-12-21 19:43:22 [30798] [7] DEBUG: SMPP[smpp1]: Got
> > > > PDU: 2005-12-21 19:43:22 [30798] [7] DEBUG: SMPP PDU 0x81bb170 dump:
> > > > 2005-12-21 19:43:22 [30798] [7] DEBUG:   type_name: enquire_link_resp
> > > > 2005-12-21 19:43:22 [30798] [7] DEBUG:   command_id: 2147483669 =
> > > > 0x80000015 2005-12-21 19:43:22 [30798] [7] DEBUG:   command_status: 0
> > > > = 0x00000000 2005-12-21 19:43:22 [30798] [7] DEBUG:  
> > > > sequence_number: 1729 = 0x000006c1 2005-12-21 19:43:22 [30798] [7]
> > > > DEBUG: SMPP PDU dump ends.
> > > >
> > > > Enquire link n+1:
> > > >
> > > > 2005-12-21 19:44:22 [30798] [7] DEBUG: SMPP[smpp1]: Sending enquire
> > > > link: 2005-12-21 19:44:22 [30798] [7] DEBUG: SMPP PDU 0x81bb170 dump:
> > > > 2005-12-21 19:44:22 [30798] [7] DEBUG:   type_name: enquire_link
> > > > 2005-12-21 19:44:22 [30798] [7] DEBUG:   command_id: 21 = 0x00000015
> > > > 2005-12-21 19:44:22 [30798] [7] DEBUG:   command_status: 0 =
> > > > 0x00000000 2005-12-21 19:44:22 [30798] [7] DEBUG:   sequence_number:
> > > > 1730 = 0x000006c2 2005-12-21 19:44:22 [30798] [7] DEBUG: SMPP PDU
> > > > dump ends. 2005-12-21 19:44:23 [30798] [7] DEBUG: SMPP[smpp1]: Got
> > > > PDU: 2005-12-21 19:44:23 [30798] [7] DEBUG: SMPP PDU 0x81bb170 dump:
> > > > 2005-12-21 19:44:23 [30798] [7] DEBUG:   type_name: enquire_link_resp
> > > > 2005-12-21 19:44:23 [30798] [7] DEBUG:   command_id: 2147483669 =
> > > > 0x80000015 2005-12-21 19:44:23 [30798] [7] DEBUG:   command_status: 0
> > > > = 0x00000000 2005-12-21 19:44:23 [30798] [7] DEBUG:  
> > > > sequence_number: 1730 = 0x000006c2 2005-12-21 19:44:23 [30798] [7]
> > > > DEBUG: SMPP PDU dump ends.
> > > >
> > > > Enquire link n+2 (6 minutes later !!)
> > > >
> > > > 2005-12-21 19:50:35 [30798] [7] DEBUG: SMPP[smpp1]: Sending enquire
> > > > link: 2005-12-21 19:50:35 [30798] [7] DEBUG: SMPP PDU 0x81bb170 dump:
> > > > 2005-12-21 19:50:35 [30798] [7] DEBUG:   type_name: enquire_link
> > > > 2005-12-21 19:50:35 [30798] [7] DEBUG:   command_id: 21 = 0x00000015
> > > > 2005-12-21 19:50:35 [30798] [7] DEBUG:   command_status: 0 =
> > > > 0x00000000 2005-12-21 19:50:35 [30798] [7] DEBUG:   sequence_number:
> > > > 1731 = 0x000006c3 2005-12-21 19:50:35 [30798] [7] DEBUG: SMPP PDU
> > > > dump ends. 2005-12-21 19:50:35 [30798] [7] ERROR: SMPP[smpp1]: No
> > > > responses from SMSC within 300 sec. Reconnecting.
> > > >
> > > > Here, kannel reconnects and all goes fine again.
> > > >
> > > >
> > > > Regards and thanks for your help
> > > >
> > > > Alberto

Reply via email to