*** empty log message ***
This commit is contained in:
parent
b82e3f2723
commit
335682874b
|
@ -170,7 +170,10 @@ Octstr *mms_make_msgid(char *qf, Octstr *mmscname)
|
||||||
else
|
else
|
||||||
x = octstr_create(qf);
|
x = octstr_create(qf);
|
||||||
|
|
||||||
res = octstr_format("%S@%S", x,mmscname);
|
if (mmscname)
|
||||||
|
res = octstr_format("%S@%S", x,mmscname);
|
||||||
|
else
|
||||||
|
res = octstr_duplicate(x);
|
||||||
|
|
||||||
octstr_destroy(x);
|
octstr_destroy(x);
|
||||||
octstr_destroy(y);
|
octstr_destroy(y);
|
||||||
|
|
|
@ -219,8 +219,8 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
||||||
dlr,
|
dlr,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/SOAP-IN",
|
"MM7/SOAP-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
msgid = mms_make_msgid(octstr_get_cstr(qf), octstr_imm(MM_NAME));
|
msgid = mms_make_msgid(octstr_get_cstr(qf), NULL);
|
||||||
mms_log("Received", from, to, -1, msgid, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
mms_log("Received", from, to, -1, msgid, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
||||||
|
|
||||||
octstr_destroy(linkedid);
|
octstr_destroy(linkedid);
|
||||||
|
@ -249,7 +249,7 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
||||||
0,
|
0,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/SOAP-IN",
|
"MM7/SOAP-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
else
|
else
|
||||||
qf = NULL;
|
qf = NULL;
|
||||||
if (qf)
|
if (qf)
|
||||||
|
@ -291,7 +291,7 @@ static int mm7soap_receive(MmsBoxHTTPClientInfo *h)
|
||||||
0,
|
0,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/SOAP-IN",
|
"MM7/SOAP-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
else
|
else
|
||||||
qf = NULL;
|
qf = NULL;
|
||||||
if (qf)
|
if (qf)
|
||||||
|
@ -462,7 +462,7 @@ static int mm7eaif_receive(MmsBoxHTTPClientInfo *h)
|
||||||
dlr,
|
dlr,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/EAIF-IN",
|
"MM7/EAIF-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
|
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
|
@ -483,7 +483,7 @@ static int mm7eaif_receive(MmsBoxHTTPClientInfo *h)
|
||||||
0,
|
0,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/EAIF-IN",
|
"MM7/EAIF-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
mms_log("Received DLR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
mms_log("Received DLR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
||||||
|
@ -513,7 +513,7 @@ static int mm7eaif_receive(MmsBoxHTTPClientInfo *h)
|
||||||
0,
|
0,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/EAIF-IN",
|
"MM7/EAIF-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
mms_log("Received RR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
mms_log("Received RR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
||||||
|
@ -671,7 +671,7 @@ static int mm7http_receive(MmsBoxHTTPClientInfo *h)
|
||||||
dlr,
|
dlr,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/HTTP-IN",
|
"MM7/HTTP-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
|
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
|
@ -692,7 +692,7 @@ static int mm7http_receive(MmsBoxHTTPClientInfo *h)
|
||||||
0,
|
0,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/HTTP-IN",
|
"MM7/HTTP-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
mms_log("Received DLR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
mms_log("Received DLR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
||||||
|
@ -723,7 +723,7 @@ static int mm7http_receive(MmsBoxHTTPClientInfo *h)
|
||||||
0,
|
0,
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MM7/HTTP-IN",
|
"MM7/HTTP-IN",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
mms_log("Received RR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
mms_log("Received RR", hfrom, to, -1, NULL, NULL, h->m->id, "MMSBox", h->ua, NULL);
|
||||||
|
|
|
@ -1133,17 +1133,17 @@ static int make_and_queue_msg(Octstr *data, Octstr *ctype, List *reply_headers,
|
||||||
|
|
||||||
/* Write to queue. */
|
/* Write to queue. */
|
||||||
x = qfs->mms_queue_add(from, xto, subject,
|
x = qfs->mms_queue_add(from, xto, subject,
|
||||||
e ? e->fromproxy : NULL,
|
e ? e->fromproxy : NULL,
|
||||||
mmc,
|
mmc,
|
||||||
time(NULL), expiryt, m, NULL,
|
time(NULL), expiryt, m, NULL,
|
||||||
xservice_code, /* Send service code as vasp id XXX - not very nice, but */
|
xservice_code, /* Send service code as vasp id XXX - not very nice, but */
|
||||||
svc_name,
|
svc_name,
|
||||||
dlr_url, rr_url,
|
dlr_url, rr_url,
|
||||||
hdrs,
|
hdrs,
|
||||||
(dlr_url != NULL),
|
(dlr_url != NULL),
|
||||||
octstr_get_cstr(qdir),
|
octstr_get_cstr(qdir),
|
||||||
"MMSBox",
|
"MMSBox",
|
||||||
octstr_imm(MM_NAME));
|
NULL);
|
||||||
mms_info(2, "mmsbox", NULL,"MMSBox: Queued message from service [%s], [transid [%s]: %s",
|
mms_info(2, "mmsbox", NULL,"MMSBox: Queued message from service [%s], [transid [%s]: %s",
|
||||||
octstr_get_cstr(svc_name),
|
octstr_get_cstr(svc_name),
|
||||||
otransid ? octstr_get_cstr(otransid) : "",
|
otransid ? octstr_get_cstr(otransid) : "",
|
||||||
|
|
|
@ -42,15 +42,18 @@ static Octstr *_shell_resolve(Octstr *pfrom, Octstr *pto, char *in_mmc, void *mo
|
||||||
s = octstr_format("%s '%s' '%s' '%s'",
|
s = octstr_format("%s '%s' '%s' '%s'",
|
||||||
octstr_get_cstr(script), octstr_get_cstr(pfrom), octstr_get_cstr(pto),
|
octstr_get_cstr(script), octstr_get_cstr(pfrom), octstr_get_cstr(pto),
|
||||||
in_mmc);
|
in_mmc);
|
||||||
|
|
||||||
|
mms_info(0, "mmsbox", NULL, "Preparing to call resolver as: %s", octstr_get_cstr(s));
|
||||||
fp = popen(octstr_get_cstr(s), "r");
|
fp = popen(octstr_get_cstr(s), "r");
|
||||||
octstr_destroy(s);
|
octstr_destroy(s);
|
||||||
|
|
||||||
fgets(buf, 4096, fp);
|
fgets(buf, sizeof buf, fp);
|
||||||
s = octstr_create(buf);
|
s = octstr_create(buf);
|
||||||
octstr_strip_crlfs(s);
|
octstr_strip_crlfs(s);
|
||||||
|
|
||||||
pclose(fp);
|
pclose(fp);
|
||||||
|
|
||||||
|
mms_info(0, "mmsbox", NULL, "Resolver returned: %s", octstr_get_cstr(s));
|
||||||
if (octstr_len(s) == 0) {
|
if (octstr_len(s) == 0) {
|
||||||
octstr_destroy(s);
|
octstr_destroy(s);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue