How to get the SMSC ID and store it as a C string?

vinodkumar <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <B2F1E962E0ABD611A08F0002555854C70161714B@EXSRVR>
Hi all!

I have three requirements and i need HELP:

1.) I want to get the status of the SMSC whenever the status changes to
CONNECTING or RECONNECTING and then send as a UDP packet to another system
along with the SMSC ID. I am able to send the UDP packet automatically
whenever the status changes but unable to get the SMSC ID. I have used
octstr_get_cstr() function to get the C string from the Octet which contains
the SMSC ID, and tried to put that in a "debug" statement but it does not
print the value. This is really urgent, can u please help???

2.) The throughput variable also doesnt seem to work, confirming the earlier
messages about the same.
I have even put a
#define CUSTOM_THROUGHPUT     10                and used

if (cfg_get_integer(&throughput, grp, octstr_imm("throughput")) == -1)
        conn->throughput = CUSTOM_THROUGHPUT;   /* defaults to no
throughtput limitation */
    else
        conn->throughput = (int) throughput;

But kannel seems to send more than 10 messages / second even after
commenting the thoughput variable in the configuration file and using the
above macro.

3.)I have stopped the failed messages from going back into the global queue
but I want the failed messages to be stored in a SQL database, can someone
plz help me with these issues?

I am using Kannel 1.4 and using it as a SMS gateway. Thanks very much in
advance.

Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.