Hi,

I have 2 questions regarding EMI/UCP.
I have set concatenation = true and flow-control = 1 in my kannel config.
I am using 1.4.1

/*
group = smsc
smsc = emi
smsc-id = incomming
allowed-smsc-id = outgoing
host = xxx.xxx.xxx.xxx
port = xxx
smsc-username = xxxx
smsc-password = xxxx
keepalive = 120
sender-prefix = ""
flow-control = 1

group = sendsms-user
username = xxxx
password = xxxx
concatenation = true
max-messages = 3
default-smsc = incomming
*/


1. When I try to send 430 characters (concatenated) the last part is
being sent first and the first part is being sent last. When starting
kannel it sends in the correct order. 1-2-3.. But if I send another
message it send 3-2-1. The message is the same. So I always need to
restart kannel to send in the correct order. This doesnt happen in
cimd2. The first part is being sent first. Always.

2. Assuming my first problem is fixed. My current telco is sending
(05) error which means 'call baring active' so when the first part of
the message and I got a response is 05 i should stop sending the 2nd
and 3rd part of the concatenated message.

   I am editing smsc_emi.c in emi2_handle_smscreq.

/* system message is optional */
if (emimsg->fields[2] != NULL)
        octstr_append(reply, emimsg->fields[2]);
/* XXX Process error code here */
long errorcode;
octstr_parse_long(&errorcode, emimsg->fields[1], 0, 10);
if (errorcode == 05)
{
        debug("bb.sms", 0, "EMI2[%s]: Stop here", 
octstr_get_cstr(privdata->name));
        //emimsg_destroy(emimsg);
        //return -1;
}

    This doesnt work but I want to delete the remaining concatenated
parts since I got an
    error 05 and resume normal dlr reject notice.

    Any help on what to edit I would appreciate it.


Wendy

  • [no subject] Trowa Barton
    • Re: Andreas Fink

Reply via email to