Hi,

This is with regard to the xser type 0c for billing.

The way I understand it, for "push" messages, we can use binfo of the HTTP interface. But in sending responses to MO messages, how can this field be sent back to the SMSC?

From: http://www.mail-archive.com/[EMAIL PROTECTED]/msg01267.html:

From: Pong
Subject: Re: Inserting a XSER field in UCP4
Date: Sun, 19 Oct 2003 23:50:24 -0700

<snip>

ok, i browsed at the source gw/smsc/smsc_emi2.c  and it looks like
i just need to insert a block of code for  XSer 0C (Billing
Identifier) similar to the following from UDH and DCS:

   /* XSer1: UDH */
   if (octstr_len(msg->sms.udhdata)) {
       str = octstr_create("");
       octstr_append_char(str, 1);
       octstr_append_char(str, octstr_len(msg->sms.udhdata));
       octstr_append(str, msg->sms.udhdata);
       octstr_binary_to_hex(str, 1);
       octstr_append(emimsg->fields[E50_XSER],str);
       octstr_destroy(str);
   }

   /* XSer2: DCS */
   dcs = fields_to_dcs(msg, msg->sms.alt_dcs);
   if (dcs != 0 && dcs != 4) {
       str = octstr_create("");
       octstr_append_char(str, 2);
       octstr_append_char(str, 1); /* len 01 */
       octstr_append_char(str, dcs);
       octstr_binary_to_hex(str, 1);
       octstr_append(emimsg->fields[E50_XSER],str);
       octstr_destroy(str);
   }


---> insert Xser 0C here? is it that simple? looks like?


Did this work?

Thanks a lot.

Johann






Reply via email to