Adding .cvsignore files
Small bug fix to mmsmobilesender (if recipient does not support mms and no message set, do not send it)
This commit is contained in:
parent
4a6237fda7
commit
068ebd9a9c
|
@ -0,0 +1,18 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
mpeg2dec-*.tar.gz
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
configure
|
||||||
|
.deps
|
||||||
|
.libs
|
||||||
|
aclocal.m4
|
||||||
|
config.log
|
||||||
|
config.cache
|
||||||
|
libtool
|
||||||
|
config.status
|
||||||
|
gmon.out
|
|
@ -0,0 +1,19 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
||||||
|
config.guess
|
||||||
|
config.sub
|
||||||
|
depcomp
|
||||||
|
install-sh
|
||||||
|
ltconfig
|
||||||
|
ltmain.sh
|
||||||
|
missing
|
||||||
|
mkinstalldirs
|
||||||
|
compile
|
|
@ -0,0 +1,10 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
|
@ -0,0 +1,10 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
|
@ -0,0 +1,10 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
|
@ -0,0 +1,10 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
|
@ -0,0 +1,11 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
||||||
|
mmsbox
|
|
@ -0,0 +1,14 @@
|
||||||
|
.*.sw[po]
|
||||||
|
*~
|
||||||
|
*.diff
|
||||||
|
*.patch
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
.deps
|
||||||
|
.libs
|
||||||
|
mmsrelay
|
||||||
|
mmsproxy
|
||||||
|
mmsfromemail
|
||||||
|
mmssend
|
|
@ -320,32 +320,30 @@ static int sendNotify(MmsEnvelope *e)
|
||||||
if (mms_queue_update(e) == 1)
|
if (mms_queue_update(e) == 1)
|
||||||
e = NULL; /* Queue entry gone. */
|
e = NULL; /* Queue entry gone. */
|
||||||
else
|
else
|
||||||
mms_queue_free_env(e);
|
mms_queue_free_env(e);
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
} else if (send_ind == 0) { /* provisioned but does not support */
|
} else if (send_ind == 0) { /* provisioned but does not support */
|
||||||
Octstr *s = octstr_format(octstr_get_cstr(settings->mms_notify_txt),
|
Octstr *s = octstr_format(octstr_get_cstr(settings->mms_notify_txt),
|
||||||
from);
|
from);
|
||||||
List *pheaders;
|
if (s && octstr_len(s) > 0) { /* Only send if the string was set. */
|
||||||
Octstr *sto = octstr_duplicate(phonenum);
|
List *pheaders;
|
||||||
|
Octstr *sto = octstr_duplicate(phonenum);
|
||||||
octstr_url_encode(s);
|
|
||||||
octstr_url_encode(sto);
|
octstr_url_encode(s);
|
||||||
|
octstr_url_encode(sto);
|
||||||
url = octstr_format("%S&text=%S&to=%S",settings->sendsms_url,s, sto);
|
|
||||||
pheaders = http_create_empty_headers();
|
url = octstr_format("%S&text=%S&to=%S",settings->sendsms_url,s, sto);
|
||||||
http_header_add(pheaders, "Connection", "close");
|
pheaders = http_create_empty_headers();
|
||||||
http_header_add(pheaders, "User-Agent", MM_NAME "/" GW_VERSION);
|
http_header_add(pheaders, "Connection", "close");
|
||||||
|
http_header_add(pheaders, "User-Agent", MM_NAME "/" VERSION);
|
||||||
http_start_request(httpcaller, HTTP_METHOD_GET, url,
|
|
||||||
pheaders, NULL, 0, &edummy, NULL);
|
http_start_request(httpcaller, HTTP_METHOD_GET, url,
|
||||||
|
pheaders, NULL, 0, &edummy, NULL);
|
||||||
|
http_destroy_headers(pheaders);
|
||||||
http_destroy_headers(pheaders);
|
octstr_destroy(url);
|
||||||
octstr_destroy(url);
|
octstr_destroy(sto);
|
||||||
octstr_destroy(s);
|
} else if (s)
|
||||||
octstr_destroy(sto);
|
octstr_destroy(s);
|
||||||
|
|
||||||
res = MMS_SEND_OK;
|
res = MMS_SEND_OK;
|
||||||
err = octstr_imm("No MMS Ind support, sent SMS instead");
|
err = octstr_imm("No MMS Ind support, sent SMS instead");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue