Dear List
My Local Operator have an API that requested our sms gateway to sent
trx_date with format YYYYMMDDHHmmss. i try to modify the smsc_http.c with my
limitation about c programming
struct tm tm;
char p[15];
tm = gw_gmtime(time(NULL));
sprintf(p, "%04d%02d%02d%02d%02d%02d", tm.tm_year + 1900, tm.tm_mon + 1,
tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
if (octstr_search(url, octstr_create("trx_date="), 0) == -1) {
octstr_format_append(url, "&trx_date=%S", p);
}
this can be compile sucessful, but after try to test the bearbox and smsc
PANIC ..
2009-02-19 09:40:59 [1302] [12] PANIC: gwlib/octstr.c:2495:
seems_valid_real: Assertion `ostr->len + 1 <= ostr->size' failed. (Called
from gwlib/octstr.c:372:octstr_duplicate_real.)
What should i do to sending variable like this
http://operator/....&trx_date=20090219215102&othervariable....
Regards
Benjamin H