This allows passing Billing information to mmssend program
Vincent.
--
Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR)
Service Technique/Reseau - NOC
Direction du Developpement xMS+
http://www.telemaque.fr/
v.chava...@telemaque.fr
Tel : +33 4 92 90 99 84 (fax 9142)
diff -rbau /mbuni-cvs/mmsc/mmssend.c /mbuni/mmsc/mmssend.c
--- /mbuni-cvs/mmsc/mmssend.c 2009-01-17 05:31:21.0 +0100
+++ /mbuni/mmsc/mmssend.c 2009-10-13 15:06:57.280500020 +0200
@@ -20,6 +20,7 @@
static Octstr *from;
+static Octstr *binfo;
static List *to;
static Octstr *data;
static int savetommbox;
@@ -53,8 +54,14 @@
else if (argv[i][1] == 'r') {
dlr = 1;
return 0;
+ } else if (argv[i][1] == 'B')
+ if (i + 1 < argc) {
+ binfo = octstr_create(argv[i+1]);
+ return 1;
} else
return -1;
+ else
+ return -1;
}
static MmscSettings *settings;
@@ -148,6 +155,10 @@
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,
___
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel