Re: [PATCH] smsc id
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
committed to cvs.
Thanks,
Alex
Rene Kluwen schrieb:
> I atttached a little issue that came up in the Clickatell driver.
> This patch sets the smsc_id in incoming messages.
> Otherwise, they are unable to be routed (smsbox_list empty).
>
> Rene Kluwen
> Chimit
>
>
> Index: gw/smsc/smsc_http.c
> ===================================================================
> RCS file: /home/cvs/gateway/gw/smsc/smsc_http.c,v
> retrieving revision 1.45
> diff -u -r1.45 smsc_http.c
> --- gw/smsc/smsc_http.c 17 Mar 2006 10:39:01 -0000 1.45
> +++ gw/smsc/smsc_http.c 27 Mar 2006 21:40:33 -0000
> @@ -669,6 +669,7 @@
> momsg->sms.msgdata = octstr_duplicate(text);
> momsg->sms.charset = octstr_duplicate(charset);
> momsg->sms.binfo = octstr_duplicate(api_id);
> + momsg->sms.smsc_id = octstr_duplicate(conn->id);
> if (octstr_len(udh) > 0) {
> momsg->sms.udhdata = octstr_duplicate(udh);
> }
>
>
> ------------------------------------------------------------------------
>
> Index: gw/smsc/smsc_http.c
> ===================================================================
> RCS file: /home/cvs/gateway/gw/smsc/smsc_http.c,v
> retrieving revision 1.45
> diff -u -r1.45 smsc_http.c
> --- gw/smsc/smsc_http.c 17 Mar 2006 10:39:01 -0000 1.45
> +++ gw/smsc/smsc_http.c 27 Mar 2006 21:40:33 -0000
> @@ -669,6 +669,7 @@
> momsg->sms.msgdata = octstr_duplicate(text);
> momsg->sms.charset = octstr_duplicate(charset);
> momsg->sms.binfo = octstr_duplicate(api_id);
> + momsg->sms.smsc_id = octstr_duplicate(conn->id);
> if (octstr_len(udh) > 0) {
> momsg->sms.udhdata = octstr_duplicate(udh);
> }