Stefan Knoblich
f9d0e249a1
freeswitch: Rework option handling in main() and other clean ups.
...
Use a chain of "else if" statements, drop known_opt completely.
Added bonus: We stop trying to parse option arguments as (possible) options.
Arguments of -u/-g and path options (-conf) now check whether their argument
starts with a dash ('-') and error out in case it does (= next option, not a valid argument).
Use PATH_MAX for everything that stores files / directories.
Use switch_bool_t and SWITCH_TRUE/_FALSE for boolean variables.
Use EXIT_SUCCESS/_FAILURE for exit() calls.
Get rid of excessive indenting (especially in the win32 parts of main()).
NOTE: Win32 parts untested.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Stefan Knoblich
659ea9f117
freeswitch: Move usage description out of main() and improve cmdline option handling.
...
Move empty cmdline option string check and "-help/-h/-?" handling to top of loop.
Emit a proper error message for unknown options. (Just displaying the
usage description, but not telling the user which option was wrong, is bad mojo).
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Stefan Knoblich
d6a395b642
freeswitch: Use switch_strlen_zero() to check for empty strings.
...
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Anthony Minessale
ba428a1559
FS-4406 please test asap and report back
2012-07-10 23:04:16 -05:00
Anthony Minessale
293516be59
FS-4370 --resolve
2012-07-10 22:44:11 -05:00
Anthony Minessale
6904ae6f3b
FS-4404 regression from b9b4db7d40159ec1b8d2a0c0f41655339daa0887
2012-07-10 13:28:38 -05:00
Stefan Knoblich
111ef49f1f
mod_sofia: Use switch_add_event_header_string() for string values.
...
Errors fixed:
sofia.c: In function 'sofia_handle_sip_i_refer':
sofia.c:7323:5: error: format not a string literal and no format arguments
sofia.c:7324:5: error: format not a string literal and no format arguments
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-10 14:30:01 +02:00
Anthony Minessale
e79e6146c5
FS-4378 add sofia::error custom event
2012-07-09 10:56:04 -05:00
Anthony Minessale
b9b4db7d40
FS-4404 --resolve
2012-07-09 10:37:15 -05:00
Anthony Minessale
16cb32cd5c
come to cluecon will ya
2012-07-06 17:54:21 -05:00
Anthony Minessale
c6fc4a2774
add Current-Energy to conference events
2012-07-06 17:20:44 -05:00
Anthony Minessale
6cf9ea181d
FS-4364 --resolve
2012-07-06 16:16:51 -05:00
Anthony Minessale
9ca929218f
FS-4382 --resolve
2012-07-06 11:12:14 -05:00
Anthony Minessale
da8885cc51
FS-4397 --resolve
2012-07-06 10:55:53 -05:00
Anthony Minessale
6ea4c42c95
have sql thread manually subscribe to each event it cares about instead of every event and filtering it
2012-07-05 16:42:49 -05:00
Anthony Minessale
bf20f52452
add execute_on_post_originate and api_on_post_originate to run on chosen newly originated channels vs execute_on_originate which runs on all candidates
2012-07-05 12:34:09 -05:00
Anthony Minessale
ef23fbaf12
FS-4374 moving the memory to the heap, this should take care of the problem for sure
2012-07-05 12:04:30 -05:00
Anthony Minessale
694c8c0fa1
FS-4335 please update and try this
2012-07-05 11:42:07 -05:00
Darren Schreiber
5bc2745472
Avoid segfault and race condition when socket is destroyed while listener is in use.
2012-07-05 01:47:07 -07:00
Jeff Lenk
939a26764f
FS-4387 --resolve
2012-07-04 23:06:32 -05:00
Anthony Minessale
b1ae97466d
add enable-use-system-time param to switch.conf.xml use at your own risk, someone with windows could verify it works ok
2012-07-03 17:15:14 -05:00
Anthony Minessale
02f4aa8590
change default
2012-07-03 13:53:29 -05:00
Anthony Minessale
e941a61ff7
add v18_mode var
2012-07-03 13:35:08 -05:00
Anthony Minessale
59bd4b0f14
fix regression with proxy_packet flag
2012-07-03 13:17:38 -05:00
Anthony Minessale
c5ba5acbd5
move stacksize thing into the core deeper to avoid build issues
2012-07-03 11:35:41 -05:00
Anthony Minessale
2b17e82dd4
FS-4380 --resolve
2012-07-03 11:06:12 -05:00
Anthony Minessale
15fda06646
FS-4381 --resolve
2012-07-03 09:23:25 -05:00
Anthony Minessale
f3a49366a1
FS-4331 please test and post a new log if necessary
2012-07-03 08:05:41 -05:00
Jeff Lenk
305aa77a15
FS-2216 --resolve clang
2012-07-03 09:01:27 -05:00
Anthony Minessale
3708c96257
add uuid to event socket apps
2012-07-02 15:12:55 -05:00
Anthony Minessale
3951a187a0
FS-4331 please test this patch and regenerate logs if necessary
2012-07-02 14:03:05 -05:00
Michael Jerris
02c2b532e7
add vm::maintenance event for mwi change
2012-07-02 16:22:36 -04:00
Anthony Minessale
87eeaac629
wrong commit
2012-07-02 13:02:18 -05:00
Anthony Minessale
412efaaf87
let campon_hold_music take precedence over the normal hold_music variable
2012-07-02 12:54:01 -05:00
Jeff Lenk
78addbfe44
trivial fix windows build
2012-07-02 14:42:06 -05:00
Anthony Minessale
d32a72bcc1
show current process stack size from status command where supported
2012-07-02 11:49:42 -05:00
Anthony Minessale
4654bda84a
FS-4374 try this: it will set the stack size for the whole app to 240 if its too big or too small, if there are system limits, fs may have to be run as root and drop privs to be allowed to change this setting
2012-07-02 11:20:05 -05:00
Anthony Minessale
e06bf26e65
add tdd data also as a header for even lazier parsers
2012-07-02 11:05:56 -05:00
Anthony Minessale
158f96651f
add trailing newlines for lazy parsers
2012-07-02 11:04:10 -05:00
Anthony Minessale
104bab6b92
tdd fix
2012-07-02 12:33:13 -05:00
Anthony Minessale
784fcf08ad
FS-4373 --resolve
2012-07-02 09:51:08 -05:00
Michael Jerris
195949f25f
don't seg on no valid_terminators
2012-07-02 11:55:49 -04:00
Anthony Minessale
5f09b40381
add sip_recovery_break_rfc variable to set globally or per channel to not reverse the from and 2 on uas re-invites
2012-06-29 14:41:06 -05:00
Brian West
13068f1783
allow silence for moh type on campon
2012-06-29 16:14:46 -05:00
Anthony Minessale
7ec8fb43d4
add initial-event-threads to switch.conf.xml
2012-06-29 11:39:49 -05:00
Anthony Minessale
dca6e2bb8e
FS-4359 --resolve
2012-06-28 12:12:44 -05:00
Anthony Minessale
848f05fb41
FS-3659 this fixes sub issue, this should have been a new jira ticket
2012-06-28 14:02:02 -05:00
Anthony Minessale
ed6e7b9fc0
if valid_terminators string starts with = it implies one of them must be typed
2012-06-28 13:17:57 -05:00
Anthony Minessale
1330ad9cf4
FS-4363 try this
2012-06-28 10:21:08 -05:00
Anthony Minessale
8850c1d5e5
moot leak in logger since it only happens on shutdown 1/10 times but hey, lets fix it
2012-06-28 10:10:30 -05:00