|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static Octstr *from;
|
|
|
|
|
static Octstr *binfo;
|
|
|
|
|
static List *to;
|
|
|
|
|
static Octstr *data;
|
|
|
|
|
static int savetommbox;
|
|
|
|
@ -53,7 +54,13 @@ static int find_own(int i, int argc, char *argv[])
|
|
|
|
|
else if (argv[i][1] == 'r') {
|
|
|
|
|
dlr = 1;
|
|
|
|
|
return 0;
|
|
|
|
|
} else
|
|
|
|
|
} else if (argv[i][1] == 'B')
|
|
|
|
|
if (i + 1 < argc) {
|
|
|
|
|
binfo = octstr_create(argv[i+1]);
|
|
|
|
|
return 1;
|
|
|
|
|
} else
|
|
|
|
|
return -1;
|
|
|
|
|
else
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -148,6 +155,10 @@ int main(int argc, char *argv[])
|
|
|
|
|
http_header_add(h, "X-Mbuni-Tool", "mmssend");
|
|
|
|
|
http_header_add(h, "X-Mbuni-CalledFrom", "Terminal");
|
|
|
|
|
|
|
|
|
|
if (binfo) {
|
|
|
|
|
mms_info(0, "add.info", NULL, "Adding extra headers billing info `X-Mms-Binfo' :");
|
|
|
|
|
http_header_add(h, "X-Mms-Binfo", octstr_get_cstr(binfo));
|
|
|
|
|
}
|
|
|
|
|
s = settings->qfs->mms_queue_add(from, to, NULL, NULL, NULL, time(NULL),
|
|
|
|
|
time(NULL) + settings->default_msgexpiry, m,
|
|
|
|
|
NULL,
|
|
|
|
|