194 + |
194 + |
195 +AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "BACKTICKS() dialplan function"); |
195 +AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "BACKTICKS() dialplan function"); |
196 + |
196 + |
197 Index: apps/app_meetme.c |
197 Index: apps/app_meetme.c |
198 diff -Nau apps/app_meetme.c.orig apps/app_meetme.c |
198 diff -Nau apps/app_meetme.c.orig apps/app_meetme.c |
199 --- apps/app_meetme.c.orig 2011-07-19 17:43:32.000000000 +0200 |
199 --- apps/app_meetme.c.orig 2012-01-09 16:37:12.000000000 +0100 |
200 +++ apps/app_meetme.c 2011-09-14 14:29:50.747960016 +0200 |
200 +++ apps/app_meetme.c 2012-03-18 17:47:07.875949857 +0100 |
201 @@ -607,6 +607,7 @@ |
201 @@ -614,6 +614,7 @@ |
202 |
202 |
203 /*! Do not write any audio to this channel until the state is up. */ |
203 /*! Do not write any audio to this channel until the state is up. */ |
204 #define CONFFLAG_NO_AUDIO_UNTIL_UP (1ULL << 31) |
204 #define CONFFLAG_NO_AUDIO_UNTIL_UP (1ULL << 31) |
205 +#define CONFFLAG_USERNAME (1 << 32) |
205 +#define CONFFLAG_USERNAME (1 << 32) |
206 /*! If set play an intro announcement at start of conference */ |
206 /*! If set play an intro announcement at start of conference */ |
207 #define CONFFLAG_INTROMSG (1ULL << 32) |
207 #define CONFFLAG_INTROMSG (1ULL << 32) |
208 |
208 |
209 @@ -618,6 +619,7 @@ |
209 @@ -625,6 +626,7 @@ |
210 OPT_ARG_MOH_CLASS = 4, |
210 OPT_ARG_MOH_CLASS = 4, |
211 OPT_ARG_INTROMSG = 5, |
211 OPT_ARG_INTROMSG = 5, |
212 OPT_ARG_ARRAY_SIZE = 6, |
212 OPT_ARG_ARRAY_SIZE = 6, |
213 + OPT_ARG_USERNAME = 7, |
213 + OPT_ARG_USERNAME = 7, |
214 }; |
214 }; |
215 |
215 |
216 AST_APP_OPTIONS(meetme_opts, BEGIN_OPTIONS |
216 AST_APP_OPTIONS(meetme_opts, BEGIN_OPTIONS |
217 @@ -651,6 +653,7 @@ |
217 @@ -658,6 +660,7 @@ |
218 AST_APP_OPTION('1', CONFFLAG_NOONLYPERSON ), |
218 AST_APP_OPTION('1', CONFFLAG_NOONLYPERSON ), |
219 AST_APP_OPTION_ARG('S', CONFFLAG_DURATION_STOP, OPT_ARG_DURATION_STOP), |
219 AST_APP_OPTION_ARG('S', CONFFLAG_DURATION_STOP, OPT_ARG_DURATION_STOP), |
220 AST_APP_OPTION_ARG('L', CONFFLAG_DURATION_LIMIT, OPT_ARG_DURATION_LIMIT), |
220 AST_APP_OPTION_ARG('L', CONFFLAG_DURATION_LIMIT, OPT_ARG_DURATION_LIMIT), |
221 + AST_APP_OPTION_ARG('n', CONFFLAG_USERNAME, OPT_ARG_USERNAME), |
221 + AST_APP_OPTION_ARG('n', CONFFLAG_USERNAME, OPT_ARG_USERNAME), |
222 END_OPTIONS ); |
222 END_OPTIONS ); |
223 |
223 |
224 static const char * const app = "MeetMe"; |
224 static const char * const app = "MeetMe"; |
225 @@ -2446,6 +2449,12 @@ |
225 @@ -2453,6 +2456,12 @@ |
226 ast_test_flag64(confflags, CONFFLAG_INTROUSERNOREVIEW))) { |
226 ast_test_flag64(confflags, CONFFLAG_INTROUSERNOREVIEW))) { |
227 char destdir[PATH_MAX]; |
227 char destdir[PATH_MAX]; |
228 |
228 |
229 + if (!ast_test_flag64(confflags, CONFFLAG_USERNAME) |
229 + if (!ast_test_flag64(confflags, CONFFLAG_USERNAME) |
230 + && !ast_strlen_zero(optargs[OPT_ARG_USERNAME]) |
230 + && !ast_strlen_zero(optargs[OPT_ARG_USERNAME]) |
233 + else { |
233 + else { |
234 + |
234 + |
235 snprintf(destdir, sizeof(destdir), "%s/meetme", ast_config_AST_SPOOL_DIR); |
235 snprintf(destdir, sizeof(destdir), "%s/meetme", ast_config_AST_SPOOL_DIR); |
236 |
236 |
237 if (ast_mkdir(destdir, 0777) != 0) { |
237 if (ast_mkdir(destdir, 0777) != 0) { |
238 @@ -2462,6 +2471,7 @@ |
238 @@ -2469,6 +2478,7 @@ |
239 res = ast_record_review(chan, "vm-rec-name", user->namerecloc, 10, "sln", &duration, NULL); |
239 res = ast_record_review(chan, "vm-rec-name", user->namerecloc, 10, "sln", &duration, NULL); |
240 if (res == -1) |
240 if (res == -1) |
241 goto outrun; |
241 goto outrun; |
242 + } |
242 + } |
243 } |
243 } |
244 |
244 |
245 ast_mutex_lock(&conf->playlock); |
245 ast_mutex_lock(&conf->playlock); |
246 Index: apps/app_voicemail.c |
246 Index: apps/app_voicemail.c |
247 diff -Nau apps/app_voicemail.c.orig apps/app_voicemail.c |
247 diff -Nau apps/app_voicemail.c.orig apps/app_voicemail.c |
248 --- apps/app_voicemail.c.orig 2011-07-26 16:04:55.000000000 +0200 |
248 --- apps/app_voicemail.c.orig 2012-01-25 23:21:30.000000000 +0100 |
249 +++ apps/app_voicemail.c 2011-09-14 14:29:50.747960016 +0200 |
249 +++ apps/app_voicemail.c 2012-03-18 17:47:07.888451260 +0100 |
250 @@ -373,6 +373,7 @@ |
250 @@ -376,6 +376,7 @@ |
251 static char imapport[8]; |
251 static char imapport[8]; |
252 static char imapflags[128]; |
252 static char imapflags[128]; |
253 static char imapfolder[64]; |
253 static char imapfolder[64]; |
254 +static int imapsubfold = 0; |
254 +static int imapsubfold = 0; |
255 static char imapparentfolder[64] = "\0"; |
255 static char imapparentfolder[64] = "\0"; |
256 static char greetingfolder[64]; |
256 static char greetingfolder[64]; |
257 static char authuser[32]; |
257 static char authuser[32]; |
258 @@ -2517,7 +2518,7 @@ |
258 @@ -2524,7 +2525,7 @@ |
259 } |
259 } |
260 |
260 |
261 /* Build up server information */ |
261 /* Build up server information */ |
262 - ast_build_string(&t, &left, "{%s:%s/imap", imapserver, imapport); |
262 - ast_build_string(&t, &left, "{%s:%s/imap", imapserver, imapport); |
263 + ast_build_string(&t, &left, "{%s:%s", imapserver, imapport); |
263 + ast_build_string(&t, &left, "{%s:%s", imapserver, imapport); |
264 |
264 |
265 /* Add authentication user if present */ |
265 /* Add authentication user if present */ |
266 if (!ast_strlen_zero(authuser)) |
266 if (!ast_strlen_zero(authuser)) |
267 @@ -6176,6 +6177,7 @@ |
267 @@ -6186,6 +6187,7 @@ |
268 /* simple. huh? */ |
268 /* simple. huh? */ |
269 char sequence[10]; |
269 char sequence[10]; |
270 char mailbox[256]; |
270 char mailbox[256]; |
271 + char folder[256]; |
271 + char folder[256]; |
272 int res; |
272 int res; |
273 |
273 |
274 /* get the real IMAP message number for this message */ |
274 /* get the real IMAP message number for this message */ |
275 @@ -6191,10 +6193,24 @@ |
275 @@ -6201,10 +6203,24 @@ |
276 mail_setflag(vms->mailstream, sequence, "\\Unseen"); |
276 mail_setflag(vms->mailstream, sequence, "\\Unseen"); |
277 mail_clearflag(vms->mailstream, sequence, "\\Seen"); |
277 mail_clearflag(vms->mailstream, sequence, "\\Seen"); |
278 } |
278 } |
279 - if (!strcasecmp(mbox(vmu, NEW_FOLDER), vms->curbox) && (box == NEW_FOLDER || box == OLD_FOLDER)) { |
279 - if (!strcasecmp(mbox(vmu, NEW_FOLDER), vms->curbox) && (box == NEW_FOLDER || box == OLD_FOLDER)) { |
280 - ast_mutex_unlock(&vms->lock); |
280 - ast_mutex_unlock(&vms->lock); |
297 } |
297 } |
298 + |
298 + |
299 /* Create the folder if it don't exist */ |
299 /* Create the folder if it don't exist */ |
300 imap_mailbox_name(mailbox, sizeof(mailbox), vms, box, 1); /* Get the full mailbox name */ |
300 imap_mailbox_name(mailbox, sizeof(mailbox), vms, box, 1); /* Get the full mailbox name */ |
301 ast_debug(5, "Checking if folder exists: %s\n", mailbox); |
301 ast_debug(5, "Checking if folder exists: %s\n", mailbox); |
302 @@ -10469,6 +10485,10 @@ |
302 @@ -10478,6 +10494,10 @@ |
303 #ifndef IMAP_STORAGE |
303 #ifndef IMAP_STORAGE |
304 } else if (!cmd) { |
304 } else if (!cmd) { |
305 vms.deleted[vms.curmsg] = 1; |
305 vms.deleted[vms.curmsg] = 1; |
306 +#else |
306 +#else |
307 + } else if (!cmd && (folder_int(vms.curbox) > 1 || box > 1)) { |
307 + } else if (!cmd && (folder_int(vms.curbox) > 1 || box > 1)) { |
308 + vms.deleted[vms.curmsg] = 1; /* Enforce deletion after */ |
308 + vms.deleted[vms.curmsg] = 1; /* Enforce deletion after */ |
309 + deleted = 1; /* successful copy op */ |
309 + deleted = 1; /* successful copy op */ |
310 #endif |
310 #endif |
311 } else { |
311 } else { |
312 vms.deleted[vms.curmsg] = 0; |
312 vms.deleted[vms.curmsg] = 0; |
313 @@ -11965,6 +11985,15 @@ |
313 @@ -11996,6 +12016,15 @@ |
314 } else { |
314 } else { |
315 ast_copy_string(imapfolder, "INBOX", sizeof(imapfolder)); |
315 ast_copy_string(imapfolder, "INBOX", sizeof(imapfolder)); |
316 } |
316 } |
317 + /* IMAP saved (sub)folder location policy */ |
317 + /* IMAP saved (sub)folder location policy */ |
318 + if ((val = ast_variable_retrieve(cfg, "general", "imapsubfold"))) { |
318 + if ((val = ast_variable_retrieve(cfg, "general", "imapsubfold"))) { |
750 ifeq (${DIVA_STREAMING},1) |
750 ifeq (${DIVA_STREAMING},1) |
751 CFLAGS += -DDIVA_STREAMING=1 |
751 CFLAGS += -DDIVA_STREAMING=1 |
752 endif |
752 endif |
753 Index: channels/chan_sip.c |
753 Index: channels/chan_sip.c |
754 diff -Nau channels/chan_sip.c.orig channels/chan_sip.c |
754 diff -Nau channels/chan_sip.c.orig channels/chan_sip.c |
755 --- channels/chan_sip.c.orig 2011-08-10 00:12:59.000000000 +0200 |
755 --- channels/chan_sip.c.orig 2012-02-28 18:53:34.000000000 +0100 |
756 +++ channels/chan_sip.c 2011-09-14 14:29:50.757959000 +0200 |
756 +++ channels/chan_sip.c 2012-03-18 17:47:07.898462166 +0100 |
757 @@ -11676,7 +11676,16 @@ |
757 @@ -12034,7 +12034,16 @@ |
758 } else { |
758 } else { |
759 if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) { |
759 if (sipmethod == SIP_NOTIFY && !ast_strlen_zero(p->theirtag)) { |
760 /* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */ |
760 /* If this is a NOTIFY, use the From: tag in the subscribe (RFC 3265) */ |
761 - snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "sip:" : ""), p->uri, p->theirtag); |
761 - snprintf(to, sizeof(to), "<%s%s>;tag=%s", (strncasecmp(p->uri, "sip:", 4) ? "sip:" : ""), p->uri, p->theirtag); |
762 + if (strncasecmp(p->uri, "sip:", strlen("sip:"))) |
762 + if (strncasecmp(p->uri, "sip:", strlen("sip:"))) |
802 - LDFLAGS=-L/usr/local/lib |
802 - LDFLAGS=-L/usr/local/lib |
803 - ;; |
803 - ;; |
804 openbsd*) |
804 openbsd*) |
805 ac_default_prefix=/usr/local |
805 ac_default_prefix=/usr/local |
806 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then |
806 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then |
807 @@ -31424,8 +31419,8 @@ |
807 @@ -18904,8 +18899,8 @@ |
808 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then |
808 if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then |
809 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS` |
809 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS` |
810 fi |
810 fi |
811 - imap_libs="${IMAP_TK_DIR}/c-client/c-client.a" |
811 - imap_libs="${IMAP_TK_DIR}/c-client/c-client.a" |
812 - imap_include="-I${IMAP_TK_DIR}/c-client" |
812 - imap_include="-I${IMAP_TK_DIR}/c-client" |
813 + imap_libs="-limap -lssl -lcrypto -lcrypt" |
813 + imap_libs="-limap -lssl -lcrypto -lcrypt" |
814 + imap_include="-DUSE_SYSTEM_IMAP -I${IMAP_TK_DIR}/include/imap" |
814 + imap_include="-DUSE_SYSTEM_IMAP -I${IMAP_TK_DIR}/include/imap" |
815 CPPFLAGS="${CPPFLAGS} ${imap_include}" |
815 CPPFLAGS="${CPPFLAGS} ${imap_include}" |
816 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}` |
816 LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}` |
817 cat >conftest.$ac_ext <<_ACEOF |
817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
818 @@ -49375,7 +49370,7 @@ |
818 @@ -26681,7 +26676,7 @@ |
819 pbxlibdir="-L${SQLITE_DIR}" |
819 pbxlibdir="-L${SQLITE_DIR}" |
820 fi |
820 fi |
821 fi |
821 fi |
822 - pbxfuncname="sqlite_exec" |
822 - pbxfuncname="sqlite_exec" |
823 + pbxfuncname="sqlite3_exec" |
823 + pbxfuncname="sqlite3_exec" |
824 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers |
824 if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers |
825 AST_SQLITE_FOUND=yes |
825 AST_SQLITE_FOUND=yes |
826 else |
826 else |
827 @@ -51127,16 +51122,16 @@ |
|
828 if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then |
|
829 PBX_GMIME=0 |
|
830 if test -n "$ac_tool_prefix"; then |
|
831 - # Extract the first word of "${ac_tool_prefix}gmime-config", so it can be a program name with args. |
|
832 -set dummy ${ac_tool_prefix}gmime-config; ac_word=$2 |
|
833 + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
|
834 +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
|
835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
836 $as_echo_n "checking for $ac_word... " >&6; } |
|
837 -if test "${ac_cv_path_CONFIG_GMIME+set}" = set; then |
|
838 +if test "${ac_cv_path_PKGCONFIG+set}" = set; then |
|
839 $as_echo_n "(cached) " >&6 |
|
840 else |
|
841 - case $CONFIG_GMIME in |
|
842 + case $PKGCONFIG in |
|
843 [\\/]* | ?:[\\/]*) |
|
844 - ac_cv_path_CONFIG_GMIME="$CONFIG_GMIME" # Let the user override the test with a path. |
|
845 + ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
|
846 ;; |
|
847 *) |
|
848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
849 @@ -51147,7 +51142,7 @@ |
|
850 test -z "$as_dir" && as_dir=. |
|
851 for ac_exec_ext in '' $ac_executable_extensions; do |
|
852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
853 - ac_cv_path_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext" |
|
854 + ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
856 break 2 |
|
857 fi |
|
858 @@ -51158,10 +51153,10 @@ |
|
859 ;; |
|
860 esac |
|
861 fi |
|
862 -CONFIG_GMIME=$ac_cv_path_CONFIG_GMIME |
|
863 -if test -n "$CONFIG_GMIME"; then |
|
864 - { $as_echo "$as_me:$LINENO: result: $CONFIG_GMIME" >&5 |
|
865 -$as_echo "$CONFIG_GMIME" >&6; } |
|
866 +PKGCONFIG=$ac_cv_path_PKGCONFIG |
|
867 +if test -n "$PKGCONFIG"; then |
|
868 + { $as_echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 |
|
869 +$as_echo "$PKGCONFIG" >&6; } |
|
870 else |
|
871 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
872 $as_echo "no" >&6; } |
|
873 @@ -51169,18 +51164,18 @@ |
|
874 |
|
875 |
|
876 fi |
|
877 -if test -z "$ac_cv_path_CONFIG_GMIME"; then |
|
878 - ac_pt_CONFIG_GMIME=$CONFIG_GMIME |
|
879 +if test -z "$ac_cv_path_PKGCONFIG"; then |
|
880 + ac_pt_PKGCONFIG=$PKGCONFIG |
|
881 # Extract the first word of "gmime-config", so it can be a program name with args. |
|
882 -set dummy gmime-config; ac_word=$2 |
|
883 +set dummy pkg-config; ac_word=$2 |
|
884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
885 $as_echo_n "checking for $ac_word... " >&6; } |
|
886 -if test "${ac_cv_path_ac_pt_CONFIG_GMIME+set}" = set; then |
|
887 +if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then |
|
888 $as_echo_n "(cached) " >&6 |
|
889 else |
|
890 - case $ac_pt_CONFIG_GMIME in |
|
891 + case $ac_pt_PKGCONFIG in |
|
892 [\\/]* | ?:[\\/]*) |
|
893 - ac_cv_path_ac_pt_CONFIG_GMIME="$ac_pt_CONFIG_GMIME" # Let the user override the test with a path. |
|
894 + ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
|
895 ;; |
|
896 *) |
|
897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
898 @@ -51191,7 +51186,7 @@ |
|
899 test -z "$as_dir" && as_dir=. |
|
900 for ac_exec_ext in '' $ac_executable_extensions; do |
|
901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
902 - ac_cv_path_ac_pt_CONFIG_GMIME="$as_dir/$ac_word$ac_exec_ext" |
|
903 + ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
905 break 2 |
|
906 fi |
|
907 @@ -51202,17 +51197,17 @@ |
|
908 ;; |
|
909 esac |
|
910 fi |
|
911 -ac_pt_CONFIG_GMIME=$ac_cv_path_ac_pt_CONFIG_GMIME |
|
912 -if test -n "$ac_pt_CONFIG_GMIME"; then |
|
913 - { $as_echo "$as_me:$LINENO: result: $ac_pt_CONFIG_GMIME" >&5 |
|
914 -$as_echo "$ac_pt_CONFIG_GMIME" >&6; } |
|
915 +ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
|
916 +if test -n "$ac_pt_PKGCONFIG"; then |
|
917 + { $as_echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5 |
|
918 +$as_echo "$ac_pt_PKGCONFIG" >&6; } |
|
919 else |
|
920 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
921 $as_echo "no" >&6; } |
|
922 fi |
|
923 |
|
924 - if test "x$ac_pt_CONFIG_GMIME" = x; then |
|
925 - CONFIG_GMIME="No" |
|
926 + if test "x$ac_pt_PKGCONFIG" = x; then |
|
927 + PKGCONFIG="No" |
|
928 else |
|
929 case $cross_compiling:$ac_tool_warned in |
|
930 yes:) |
|
931 @@ -51220,22 +51215,17 @@ |
|
932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
933 ac_tool_warned=yes ;; |
|
934 esac |
|
935 - CONFIG_GMIME=$ac_pt_CONFIG_GMIME |
|
936 + PKGCONFIG=$ac_pt_PKGCONFIG |
|
937 fi |
|
938 else |
|
939 - CONFIG_GMIME="$ac_cv_path_CONFIG_GMIME" |
|
940 + PKGCONFIG="$ac_cv_path_PKGCONFIG" |
|
941 fi |
|
942 |
|
943 - if test ! "x${CONFIG_GMIME}" = xNo; then |
|
944 - if test x"" = x ; then A=--cflags ; else A="" ; fi |
|
945 - GMIME_INCLUDE=$(${CONFIG_GMIME} $A) |
|
946 - if test x"" = x ; then A=--libs ; else A="" ; fi |
|
947 - GMIME_LIB=$(${CONFIG_GMIME} $A) |
|
948 + if test ! "x${PKGCONFIG}" = xNo; then |
|
949 + GMIME_INCLUDE=$(${PKGCONFIG} gmime-2.4 --cflags 2>/dev/null) |
|
950 + GMIME_LIB=$(${PKGCONFIG} gmime-2.4 --libs) |
|
951 if test x"#include <gmime/gmime.h>" != x ; then |
|
952 saved_cppflags="${CPPFLAGS}" |
|
953 - if test "x${GMIME_DIR}" != "x"; then |
|
954 - GMIME_INCLUDE="-I${GMIME_DIR}/include" |
|
955 - fi |
|
956 CPPFLAGS="${CPPFLAGS} ${GMIME_INCLUDE}" |
|
957 |
|
958 saved_libs="${LIBS}" |
|
959 Index: formats/format_pcm.c |
827 Index: formats/format_pcm.c |
960 diff -Nau formats/format_pcm.c.orig formats/format_pcm.c |
828 diff -Nau formats/format_pcm.c.orig formats/format_pcm.c |
961 --- formats/format_pcm.c.orig 2011-07-14 22:13:06.000000000 +0200 |
829 --- formats/format_pcm.c.orig 2011-07-14 22:13:06.000000000 +0200 |
962 +++ formats/format_pcm.c 2011-09-14 14:29:50.767970949 +0200 |
830 +++ formats/format_pcm.c 2012-03-18 17:47:07.898462166 +0100 |
963 @@ -354,6 +354,7 @@ |
831 @@ -354,6 +354,7 @@ |
964 ast_log(LOG_WARNING, "Unable to write header\n"); |
832 ast_log(LOG_WARNING, "Unable to write header\n"); |
965 return -1; |
833 return -1; |
966 } |
834 } |
967 + fflush(f); /* issues.asterisk.org bug 0016610 */ |
835 + fflush(f); /* issues.asterisk.org bug 0016610 */ |
968 return 0; |
836 return 0; |
969 } |
837 } |
970 |
838 |
971 Index: formats/format_wav.c |
839 Index: formats/format_wav.c |
972 diff -Nau formats/format_wav.c.orig formats/format_wav.c |
840 diff -Nau formats/format_wav.c.orig formats/format_wav.c |
973 --- formats/format_wav.c.orig 2011-07-29 19:18:56.000000000 +0200 |
841 --- formats/format_wav.c.orig 2011-11-09 16:25:33.000000000 +0100 |
974 +++ formats/format_wav.c 2011-09-14 14:29:50.767970949 +0200 |
842 +++ formats/format_wav.c 2012-03-18 17:47:07.898462166 +0100 |
975 @@ -308,6 +308,7 @@ |
843 @@ -308,6 +308,7 @@ |
976 ast_log(LOG_WARNING, "Unable to write header\n"); |
844 ast_log(LOG_WARNING, "Unable to write header\n"); |
977 return -1; |
845 return -1; |
978 } |
846 } |
979 + fflush(f); /* issues.asterisk.org bug 0016610 */ |
847 + fflush(f); /* issues.asterisk.org bug 0016610 */ |
1019 #include "hash.h" |
887 #include "hash.h" |
1020 |
888 |
1021 /* |
889 /* |
1022 Index: main/features.c |
890 Index: main/features.c |
1023 diff -Nau main/features.c.orig main/features.c |
891 diff -Nau main/features.c.orig main/features.c |
1024 --- main/features.c.orig 2011-08-10 00:12:59.000000000 +0200 |
892 --- main/features.c.orig 2012-01-23 21:30:21.000000000 +0100 |
1025 +++ main/features.c 2011-09-14 14:29:50.777958246 +0200 |
893 +++ main/features.c 2012-03-18 17:47:07.898462166 +0100 |
1026 @@ -1928,6 +1928,10 @@ |
894 @@ -2067,6 +2067,10 @@ |
1027 snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename); |
895 snprintf(args, len, "%s,%s,m", S_OR(touch_format, "wav"), touch_filename); |
1028 } |
896 } |
1029 |
897 |
1030 + for(x = 0; x < strlen(touch_filename); x++) { |
898 + for(x = 0; x < strlen(touch_filename); x++) { |
1031 + if (args[x] == '/') |
899 + if (args[x] == '/') |
1032 + args[x] = '-'; |
900 + args[x] = '-'; |
1033 + } |
901 + } |
1034 for(x = 0; x < strlen(args); x++) { |
902 for(x = 0; x < strlen(args); x++) { |
1035 if (args[x] == '/') |
903 if (args[x] == '/') |
1036 args[x] = '-'; |
904 args[x] = '-'; |
1037 @@ -2044,6 +2048,10 @@ |
905 @@ -2183,6 +2187,10 @@ |
1038 snprintf(args, len, "%s.%s,b", touch_filename, S_OR(touch_format, "wav")); |
906 snprintf(args, len, "%s.%s,b", touch_filename, S_OR(touch_format, "wav")); |
1039 } |
907 } |
1040 |
908 |
1041 + for( x = 0; x < strlen(touch_filename); x++) { |
909 + for( x = 0; x < strlen(touch_filename); x++) { |
1042 + if (args[x] == '/') |
910 + if (args[x] == '/') |
1074 endif |
942 endif |
1075 |
943 |
1076 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) |
944 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) |
1077 Index: main/tcptls.c |
945 Index: main/tcptls.c |
1078 diff -Nau main/tcptls.c.orig main/tcptls.c |
946 diff -Nau main/tcptls.c.orig main/tcptls.c |
1079 --- main/tcptls.c.orig 2011-05-23 18:18:33.000000000 +0200 |
947 --- main/tcptls.c.orig 2011-11-30 22:41:31.000000000 +0100 |
1080 +++ main/tcptls.c 2011-09-14 14:29:50.777958246 +0200 |
948 +++ main/tcptls.c 2012-03-18 17:47:07.898462166 +0100 |
1081 @@ -357,6 +357,7 @@ |
949 @@ -372,6 +372,7 @@ |
1082 if (!ast_strlen_zero(cfg->cafile) || !ast_strlen_zero(cfg->capath)) { |
950 if (!ast_strlen_zero(cfg->cafile) || !ast_strlen_zero(cfg->capath)) { |
1083 if (SSL_CTX_load_verify_locations(cfg->ssl_ctx, S_OR(cfg->cafile, NULL), S_OR(cfg->capath,NULL)) == 0) |
951 if (SSL_CTX_load_verify_locations(cfg->ssl_ctx, S_OR(cfg->cafile, NULL), S_OR(cfg->capath,NULL)) == 0) |
1084 ast_verb(0, "SSL CA file(%s)/path(%s) error\n", cfg->cafile, cfg->capath); |
952 ast_verb(0, "SSL CA file(%s)/path(%s) error\n", cfg->cafile, cfg->capath); |
1085 + SSL_CTX_set_client_CA_list(cfg->ssl_ctx, S_OR(cfg->cafile, NULL)); |
953 + SSL_CTX_set_client_CA_list(cfg->ssl_ctx, S_OR(cfg->cafile, NULL)); |
1086 } |
954 } |
1087 |
955 |
1088 ast_verb(0, "SSL certificate ok\n"); |
956 ast_verb(0, "SSL certificate ok\n"); |
1089 Index: main/udptl.c |
957 Index: main/udptl.c |
1090 diff -Nau main/udptl.c.orig main/udptl.c |
958 diff -Nau main/udptl.c.orig main/udptl.c |
1091 --- main/udptl.c.orig 2011-05-03 21:55:49.000000000 +0200 |
959 --- main/udptl.c.orig 2011-10-06 19:49:38.000000000 +0200 |
1092 +++ main/udptl.c 2011-09-14 14:29:50.777958246 +0200 |
960 +++ main/udptl.c 2012-03-18 17:47:07.898462166 +0100 |
1093 @@ -98,6 +98,18 @@ |
961 @@ -98,6 +98,18 @@ |
1094 |
962 |
1095 #define UDPTL_BUF_MASK 15 |
963 #define UDPTL_BUF_MASK 15 |
1096 |
964 |
1097 +/*! Copied from chan_oss.c, corrects link errors: |
965 +/*! Copied from chan_oss.c, corrects link errors: |