Re: UCP/EMI to support E50_HPLMN and E50_AC
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
thanks for your contribution but this is not acceptable patch, see below...
+
+ //Insert the E50_HPLMN into meta_data
we are in C and this is not C comment style ;)
+ msg->sms.meta_data = octstr_duplicate(emimsg->fields[E50_HPLMN]);
potential mem leak, best to destroy meta_data first
+ if (msg->sms.meta_data != NULL) {
+ meta_data_set_value(msg->sms.meta_data, "smpp" , octstr_imm("E50_HPLMN"), octstr_duplicate(emimsg->fields[E50_HPLMN]),1);
+ }
why do you use smpp meta data group in UCP ? Please change to use ?emi? or ?ucp? group.
Alex
Am 10.07.2014 um 19:59 schrieb [email protected]:
> Hi,
>
> I'm using the meta-data to get the E50_HPLMN and set the E50_AC.
>
> here's the patch to support that for the EMI protocol. If you guys have a better way of doing so please feel free to give me a hint.
>
> I'd like to apply the patch in the main repo asap.
>
> thanks
>
>
> <emi.patch>