I was thinking of exactly the reverse. How do I stop /start a single link if I have mutiple ones name the same way (for DLR grouping this is required). Maybe we should have the SMSC link be named unique and group them by some other name for DLR processing.




On Montag, November 18, 2002, at 07:05 Uhr, Nisan Bloch wrote:

Hi All

There is a bug in the smsc stop/start admin interface. Before I fix it, I want to check that the soln we propose will work for the list.

The scenario is as follows:
Assume you have more than one smsc group with the same smsc-id. eg one provider with 2 different host.
Ok when you use the stop-smsc code it stops the first smsc in the list with that smsc-id and not the others.
If you then start and stop and start again one ends up with both the links up, but not necessary to the two different hosts.

eg.. snips from status page
[snip]
linka8 SMPP:web1.host.com:16252/16252:Clickatell: (online 21s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
linka8 SMPP:web2.host.com:26252/26252:Clickatell: (online 24s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
[end snip]
[snip]
linka8 SMPP:web1.host.com:16252/16252:Clickatell: (dead, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
linka8 SMPP:web2.host.com:26252/26252:Clickatell: (online 73s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
[end snip]
[snip]
linka8 SMPP:web2.host.com:26252/26252:Clickatell: (online 107s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
linka8 SMPP:web1.host.com:16252/16252:Clickatell: (online 1s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
[end snip]
[snip]
linka8 SMPP:web2.host.com:26252/26252:Clickatell: (dead, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
linka8 SMPP:web1.host.com:16252/16252:Clickatell: (online 16s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
[end snip]
[snip]
linka8 SMPP:web1.host.com:16252/16252:Clickatell: (online 31s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
linka8 SMPP:web1.host.com:16252/16252:Clickatell: (online 1s, rcvd 0, sent 0, failed 0, queued 0 dlrq 1 msgs)
[end snip]


I propose that the stop-smsc admin interface should stop ALL smsc links with the given smsc-id, similarly start-smsc should start/restart all smsc links with the given smsc-id


In addition there is a new memory leak. For each stop/start we end up with the following
2002-11-18 15:42:45 [0] DEBUG: Allocated by list_create_real at gwlib/list.c:71
2002-11-18 15:42:45 [0] DEBUG: Claimed by smsc2_start at gw/bb_smscconn.c:332


Nisan


Andreas Fink
Global Networks, Inc.

------------------------------------------------------------------
Tel: +41-61-6666333 Fax: +41-61-6932729 Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/� [EMAIL PROTECTED]
------------------------------------------------------------------
Member of the GSM Association

Reply via email to