adding my-number directive

sangprabv <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1208109968.12786.10.camel@zilda>
Hi list,
I just tried to add my-number directive in smsc_http.c by patching:
typedef struct conndata {
...
Octstr *my_number;
...
}

static void conndata_destroy(ConnData *conndata)
{
...
octstr_destroy(conndata->my_number);
...
}
static void simulate_receive_sms(SMSCConn *conn, HTTPClient *client,
                               List *headers, Octstr *body, List
*cgivars)
{
ConnData *conndata = conn->data;
...
msg->sms.receiver = octstr_duplicate(conndata->my_number);
...
}

int smsc_http_create(SMSCConn *conn, CfgGroup *cfg)
{
...
conndata->my_number = cfg_get(cfg, octstr_imm("my-number"));
...
}

Also check cfg.def to make sure that my-number directive already
assigned. And I see it under 
MULTI_GROUP(smsc,
...
OCTSTR(my-number)
...
)

make install running well. I start all daemons, and all ok. But when I
try to receive MO. the bearerbox-access.log for [to:] value return
nothing. Is there something I miss patch here? Many thanks for any
reply.

Regards,


Willy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.