fred пишет:
you shouldn't pass protocol specific parameter up the chain to the
application, the whole idea of Kannel is to abstract the
SMS messaging layer from the application,  the application should simply
deal with A message MT/MO,
the application shouldn't need to worry about mesg packets, and splitting or
whatever else - otherwise may as well dump
kannel and write your own SMPP/whatever  handler in your application!!


Thank you! I will think about it

what you want to do is identify concatenated messages in
bb_smscconn_receive_message()
{
....
 if( catenation_incoming )
 {
  if(catenation_udh(sms,&part_no,&num_messages) != 0 ) // by catentation
commands in udh
  {
   if(part_no < num_messages)
   {
    gwlist_append(incoming_sms_parts,sms);
    return 0;
   }
   if(part_no == num_messages) //got all the parts
   {
    sms = catenation_mesgs(sms,incoming_sms_parts);
   }
  }
  else if(sms->sms.smsc_partid !=-1)      //using the smpp protocol fields
  {
   if(sms->sms.segseqnum < sms->sms.totalsegs)
   {
    gwlist_append(incoming_sms_parts,sms);
    return 0;
   }
   if(sms->sms.segseqnum == sms->sms.totalsegs)
   {
    sms= catenation_mesgs(sms,incoming_sms_parts);
   }

  }
 }

.................
store them in another queue untill all parts received, then send the message
to smsbox as normal.
you need to examine udh, or the optional parameters.
best to do that by using
  INTEGER(totalsegs);
  INTEGER(segseqnum);
in the msg-decl.h structure.


unfortuneatly can't provide a patch with just this, too many
differences...had argument with whoever b4....
maybe the above hint will get u on your way.......
cheers
fred_of_5thfinger.com






--
begin:vcard
fn:Denis V. Gudtsov
n:Gudtsov;Denis
org:Tango Telecom;IT
adr:;;;Izhevsk;UDM;426000;Russia
email;internet:[EMAIL PROTECTED]
tel;work:+7-(3412)-916-500
tel;fax:+7-(3412)-916-501
tel;pager:icq#158668135
tel;home:+7-(3412)-916-503
tel;cell:+7-904-311-03-78
x-mozilla-html:FALSE
url:http://www.tangotel.ru/
version:2.1
end:vcard

Reply via email to