Michael Jerris
6b46843c57
try a bit harder to make sure we don't do printf like functions on null.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4369 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-23 17:28:41 +00:00
Anthony Minessale
a644b549c5
remove redundant strlen
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4357 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-23 16:43:07 +00:00
Anthony Minessale
f8352e76ae
fix transaction locking error in the core sql thread
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4356 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-23 16:42:40 +00:00
Michael Jerris
6461d8faff
windows build tweaks to resolve warnings.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4352 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 23:12:58 +00:00
Anthony Minessale
64133ab31a
one more for ilbc
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4350 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 21:25:32 +00:00
Anthony Minessale
9bd118dc28
add mode goodies to ilbc
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4349 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 21:13:36 +00:00
Anthony Minessale
77fe0e7bcd
add mode goodies to ilbc
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4348 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 20:56:23 +00:00
Anthony Minessale
a88da36253
add heartbeat event and core uuid
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 17:38:34 +00:00
Anthony Minessale
4dd3e158a0
send break sig after sending messages and events to sessions
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4346 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 16:06:42 +00:00
Anthony Minessale
6c0152ca2f
try to pass 2833-pt across calls
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4344 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-21 21:46:32 +00:00
Michael Jerris
d90ca2f270
added switch_file_lock and switch_file_unlock to the exposed functions from apr to be used to make FSCORE-14 jira ticket cross platform.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4343 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-21 18:39:10 +00:00
Anthony Minessale
5ca710d252
make ilbc fail the call when the frame is wrong
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4342 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-21 17:59:08 +00:00
Anthony Minessale
f703658741
add 120ms to g711, fix errs in g711 alaw defs, tweak buffer in file playback and add kill to hupall
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4341 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-21 06:35:55 +00:00
Brian West
ddd613eefd
change the override to header symbol from : to ^ (beware)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4340 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-21 03:37:17 +00:00
Michael Jerris
915944b7ed
add pool allocated printf function switch_core_sprintf
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4339 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-20 21:54:23 +00:00
Michael Jerris
e4947bfbfe
refactor switch_core_sql_thread with the following main changes:
...
Do the entire transaction as a single exec, instead of 3 separate ones to resolve issue of unmatched transaction error.
try really hard to commit the transaction (1000 times) but we no longer try forever. If 1000 times fail, you will lose some update/insert/deletes from the core db, but we will no longer continue to loop forever and stop processing the sql queue in the case of an error.
added better overflow protection to the buffer, we now ignore sql strings we get over 64k. (not full transactions, just individual sql strings that we get queued). Previously this caused a buffer overflow.
We now use sprintf instead of snprintf as we are already handling overflow checks outside of the sprintf.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4338 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-20 18:27:21 +00:00
Anthony Minessale
9e8a2b3e07
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4337 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-20 17:50:50 +00:00
Michael Jerris
58705374f4
switch_channel_set_variable_nodup which does not dup the value from the session pool. The value MUST already be allocated from the pool for that session, or very bad things could happen. Use with caution.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4329 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 22:57:27 +00:00
Brian West
ad6cca6737
add channel data to event
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4328 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 21:28:58 +00:00
Brian West
5e4396a46e
making private events fire (please test)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4327 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 21:06:27 +00:00
Mike Murdock
d0cda3c757
Fix indents to tabs in previous commit
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4326 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 17:00:29 +00:00
Mike Murdock
4e858fc38c
No entry at menu should not play the invalid prompt but still count as an invalid entry and repeat the menu
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4325 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 16:57:14 +00:00
Anthony Minessale
962c8ba4f2
add rwlocks to bridge
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 15:20:16 +00:00
Michael Jerris
ee101704d7
constify switch_caller_profile_new
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4321 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 03:23:02 +00:00
Michael Jerris
bbf3c290d9
add switch_core_session_sprintf which allocates from the session pool
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4319 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 02:21:27 +00:00
Anthony Minessale
045eb8a9de
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4318 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-18 16:51:11 +00:00
Michael Jerris
6322a73341
fix typo to fix build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4317 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-18 14:33:55 +00:00
Anthony Minessale
0884c559ef
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4315 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-18 04:37:06 +00:00
Anthony Minessale
e87e5b5759
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 22:22:52 +00:00
Anthony Minessale
4974b5b2b1
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4313 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 22:19:56 +00:00
Anthony Minessale
b47cd0314b
tweak
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4312 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 22:13:19 +00:00
Anthony Minessale
368ac20dc1
rearrange things to work better
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4311 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 18:40:42 +00:00
Anthony Minessale
4913ae24e1
move session-rest
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4310 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 17:30:49 +00:00
Michael Jerris
4ae10379f2
add windows build for mod_xml_cdr. This probably also fixes the build on several non-linux systems.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4309 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 06:55:43 +00:00
Michael Jerris
08debcfcb4
completion of the commit from revision 4305
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4307 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 06:22:47 +00:00
Michael Jerris
3f72839a65
constify switch_channel_set_variable and remove some incorrect casts in it's consumers.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4306 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 00:56:16 +00:00
Michael Jerris
654dc6e616
fix copy/paste error on setting SWITCH_GLOBAL_dirs.temp_dir on windows.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4305 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 23:37:14 +00:00
Michael Jerris
9fc1f45ebd
constify switch_core_hash functions and some of their consumers.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4304 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 23:36:10 +00:00
Michael Jerris
db797b8130
match new prototype for switch_ivr_park
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4303 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 23:12:20 +00:00
Michael Jerris
77347efd45
match new prototype for switch_ivr_menu_init
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4302 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 23:11:52 +00:00
Anthony Minessale
a03f962174
add callbacks to park
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4300 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 21:32:49 +00:00
Anthony Minessale
9626393ef8
add export app (set + adding to export_vars) in 1
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4299 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 20:07:35 +00:00
Anthony Minessale
c78bd99d80
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4298 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 19:43:00 +00:00
Anthony Minessale
4ddc9e1681
add some commands to portaudio
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4297 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 16:19:39 +00:00
Mike Murdock
9af074316f
Added support for default_language channel variable. If no language specified explicitly in the API call then default_language will be used. If no default_language specified then english will be used.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4296 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-16 01:57:54 +00:00
Mike Murdock
f181b0ef9e
Tweak - phrase_lang should have been phrase-lang in ivr menu parameters for consistency
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4295 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 22:23:33 +00:00
Mike Murdock
a918bea9cf
Add Phrase Macro support to ivr menu.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4293 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 21:59:59 +00:00
Anthony Minessale
700c115632
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 20:02:52 +00:00
Anthony Minessale
3b09790ba6
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4291 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 19:58:25 +00:00
Anthony Minessale
a080949e8f
add small demo mod to dump xml call detail reports until we work it into mod_cdr ./configure or manually mkdir /usr/local/freeswitch/log/xml_cdr
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 19:46:37 +00:00
Anthony Minessale
b82cf5683b
xml formatting for call detail
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4289 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 19:20:14 +00:00
Michael Jerris
2bd4fdad57
don't strip the resource off the from in a chat msg
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4288 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 17:48:14 +00:00
Michael Jerris
671259959b
a little re-work in preparation for being able to outdial from a conference that does not yet exist.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4287 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 17:28:09 +00:00
Anthony Minessale
d484b87343
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4286 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 16:53:44 +00:00
Michael Jerris
813c4cd85d
make the 2833 dtmf increase the sequence number before it sends instead of after. The net result of this is, we are still doing it wrong (sending both and audio packet with the same sequence number as our 2833 packet) but because we increment it first, the ua should get our 2833 packet with that sequence number before it gets the audio packet with that sequence number. This should help dtmf interop on ua's that were discarding rtp packets received with a sequence number that it had already received.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4285 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 14:32:34 +00:00
Michael Jerris
604f7a0ed5
don't pass NUTAG_URL a display name.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4282 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 04:37:57 +00:00
Anthony Minessale
b154ea7e2b
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4279 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 23:08:10 +00:00
Anthony Minessale
e96f7a118c
add resets to a few places
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4277 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 22:41:03 +00:00
Anthony Minessale
3cfc19fd4c
fix codec neg
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4276 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 22:14:32 +00:00
Michael Jerris
b8d838640e
%d can't take the long long result.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4272 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 20:15:51 +00:00
Anthony Minessale
fcfb34989d
fix
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4271 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 20:06:39 +00:00
Anthony Minessale
318914124b
add var that can set gmail greeting
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4270 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:47:16 +00:00
Michael Jerris
41d2d43e99
warning: ISO C does not allow extra ; outside of a function
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4269 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:45:56 +00:00
Michael Jerris
7c29b64cd6
fix file object support in spidermonkey build
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4268 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:42:45 +00:00
Michael Jerris
fc330804ff
thats not a real fd, it's a switch_socket_t *
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4267 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:31:58 +00:00
Michael Jerris
58636d9db1
warning: ISO C does not allow extra ; outside of a function
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4266 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:22:42 +00:00
Michael Jerris
9dbba11035
more constification cleanups.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4265 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:15:20 +00:00
Michael Jerris
2b507706c9
switch_core_session_strdup now takes const char * arg.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4264 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 19:14:53 +00:00
Michael Jerris
a986980c0e
fix typedef for switch_stream_handle_write_function_t to also use const char * fmt and match other uses of that type.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4262 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 18:08:11 +00:00
Michael Jerris
c48792c61c
fix potential xml handle leak from previous committ.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4261 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 17:34:16 +00:00
Michael Jerris
251723ba41
fix missing strdup in switch_ivr_menu_bind_function
...
change most char * values in ivr_menu functions to const char *
change switch_core_strdup to get passed const char * instead of char *
change switch_xml_find_child to get passed const char * instead of char *
change the ivr dialplan application to free the xml config as soon as it is done building the xml menu and not hold it until the menu is done being run, so that you can do a reloadxml while someone is in a menu without blocking.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4260 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 17:28:42 +00:00
Michael Jerris
81dcb65cd5
remove extra ;
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4259 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 17:22:34 +00:00
Anthony Minessale
4a48bbf0f7
the guy on the mailing list had a good idea, add a message in dingalaing announcing the caller id as a chat message, added, but not testesd...can someone test this?
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4258 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 15:32:02 +00:00
Anthony Minessale
fdac4282b6
add new xml call detail function to the core and a way to use it from javascript
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4257 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 15:19:01 +00:00
Anthony Minessale
b0901fe4ce
s.data is void *
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 15:08:49 +00:00
Michael Jerris
11a8218db0
potential format string exploits (warning: format not a string literal and no format arguments)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4254 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 03:45:10 +00:00
Michael Jerris
711c59a6e0
potential format string exploit
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4253 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 03:32:13 +00:00
Michael Jerris
2cf3ad1c6f
cleanups: duplicate declarations, shadowed global names, extra paramaters, and constifications.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4252 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 03:24:20 +00:00
Michael Jerris
258e28dd11
constification for switch_core_hash_find and switch_event_create_subclass
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 03:22:43 +00:00
Michael Jerris
a7cf447f93
eliminate shadowing of function level variables (functionally equivalent but redundant in this case)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4250 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 02:56:31 +00:00
Michael Jerris
95374edaab
constify the fmt string on all printf like functions
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4249 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 02:53:23 +00:00
Anthony Minessale
c3bcb585e3
add nil thing to xml func
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4248 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 01:01:58 +00:00
Michael Jerris
c0a362d156
use WaitForSingleObject for the console loop to wait on stdin on the windows build, as the select was not working properly.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4247 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 00:31:11 +00:00
Michael Jerris
0c34702513
fix warnings on weird L value casts for function pointers.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4246 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 22:15:24 +00:00
Michael Jerris
67a42d5a12
mod_conference use void function pointer for the caller control function table instead of a void data pointer (c99 likes to keep them separate)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4245 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 22:07:28 +00:00
Michael Jerris
055a056394
missing return;
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4244 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:54:16 +00:00
Michael Jerris
5694445ae2
potentially uninitialized variable.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4243 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:52:33 +00:00
Michael Jerris
f5de340dcc
some msvc warnings that I re-enabled came back due to messy header files in some libs.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4242 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:38:12 +00:00
Michael Jerris
ceafc84ca0
constify some arguments to switch_console_printf and switch_cut_path and remove improper casts for the consumers of those functions.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4241 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 21:03:06 +00:00
Michael Jerris
681b8e94eb
we can't cast from apr_dso_sym_t directly to a function pointer (c99 says no no) so we must cast to intptr_t first.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4240 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 20:59:17 +00:00
Michael Jerris
64c3ecf288
use switch_log_printf instead of switch_console printf so it will hit other logger services.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4239 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 20:31:23 +00:00
Michael Jerris
66f4c25643
ssrc is a 32 bit value, not 16.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4238 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 19:46:10 +00:00
Anthony Minessale
ebdbebc246
my preacious...
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4236 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 17:39:44 +00:00
Anthony Minessale
c40bed843a
doh
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4235 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 17:27:57 +00:00
Mike Murdock
3b66035129
Fix ivr_menu, no entry is considered invalid, keying digits during audio is not an error
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4234 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 17:15:42 +00:00
Anthony Minessale
bdd8f6ad73
2833 bs
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4233 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 17:14:39 +00:00
Anthony Minessale
e1001b95db
2833 bs
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4232 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 17:13:57 +00:00
Anthony Minessale
a62d9fd951
lord of the rings
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4230 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 15:47:15 +00:00
Anthony Minessale
9a870c5fb6
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4229 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 14:58:06 +00:00
Michael Jerris
dcb452bcf7
match prototype.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4228 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 06:18:01 +00:00
Michael Jerris
2aa5aa4fe7
get rid of disabling of some warnings on windows, because we don't have those warnings anymore. Document the others that we have disabled.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4227 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 06:08:28 +00:00
Michael Jerris
07d6f12018
use "%s" format specifier for uses of switch_event_add_header that just pass a string to avoid potential issues/exploits"
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4226 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 04:43:49 +00:00
Michael Jerris
f08d0e89c1
add missing prototype for switch_channel_perform_mark_ring_ready
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4225 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 04:41:28 +00:00
Michael Jerris
0a5b02999c
add PRINTF_FUNCTION specifier to printf like functions to let gcc tell us when we are using the wrong format specifiers on these functions. Suggested by <MrEIso> via irc.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4224 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 03:17:19 +00:00
Anthony Minessale
cf24c21e86
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4223 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 03:02:52 +00:00
Michael Jerris
489354037d
indirection misdirection?
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4222 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:48:50 +00:00
Anthony Minessale
07efd559d2
add ring ready flag to core
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4221 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:32:10 +00:00
Michael Jerris
db5557983a
use const for switch_core_permanent_strdup var.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4220 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:31:26 +00:00
Anthony Minessale
25963d7a57
doh
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4219 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:31:17 +00:00
Michael Jerris
87d5a3bbb4
char cast on tolower & toupper
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4218 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:26:39 +00:00
Anthony Minessale
403243980e
mmkay
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4217 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 01:58:39 +00:00
Anthony Minessale
be118eb28a
Sofia Behaviour Modification (please document)
...
1) This commit adds the ability to override the To: header so you
can place an outbound SIP call to a paticular destination.
For instance, if you have a user registered to your machine as 'gateway' and
you want to call another extension at that machine 'foo' you can now call:
sofia/mydomain.com/gateway:foo@anydomain.com
or if you just want to call some SIP url and put an alternate To:
so you can do forwarding:
sofia/mydomain.com/1000@somwhere.com:12122551234@realdest.com
2) You can add headers to outbound SIP calls by
prefixing the string 'SIP_h_' to any channel variable:
<action application="set" data="SIP_h_X-Answer=42"/>
<action application="bridge" data="sofia/mydomain.com/1000@somehost.com"/>
3) All inbound SIP calls will install any X- headers into local variables
this means in conjunction with item 2, all X- headers will pass across
bridged calls auto-magicly.
4) The switch_ivr_transfer_variable function in switch_ivr.c has been modified so if the last arguement
'var' starts with a ~ it will copy anything that is prefixed with that string rather than an exact match.
*NOTE* you are not required to put an X- prefix in the SIP_h_ vars but
it is reccommended because most SIP devices will ignore any unknown headers that don't.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4216 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 01:22:17 +00:00
Brian West
df79b479d9
woops
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4215 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 23:32:29 +00:00
Brian West
e3773e1a01
We should only advertise one code per IANA number.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 23:32:00 +00:00
Anthony Minessale
e360d6500c
fix mod_native_file extension thingy
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4212 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 22:56:08 +00:00
Anthony Minessale
8e2c70d797
sndfile tweaks (add ul and al files and more record formats)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 22:42:22 +00:00
Anthony Minessale
c133b3453d
simplify wanpipe write method
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4210 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 21:08:57 +00:00
Michael Jerris
5ba24598e1
data pulled from xml needs to be duped in order for it to stay around for sure.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4209 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 20:30:13 +00:00
Anthony Minessale
49f0d6152f
tweaks
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4208 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 20:03:29 +00:00
Michael Jerris
88fda78ee8
avoid array out of bounds.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4207 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 19:55:12 +00:00
Michael Jerris
43e50048ca
ntohs takes u_short, and we are in a 16 bit bitfield, so we can cast this.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4206 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 19:35:09 +00:00
Anthony Minessale
f2c46f504c
alternate which devices we support with the ones we don't using rfc2833
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4204 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 18:22:30 +00:00
Michael Jerris
62a44e621f
some more protection from passing around and printing null values, we are now initializing null's passed to switch_caller_profile_new as blank strings in the caller profile, if your using any caller profile values in if's, please use !switch_strlen_zero() in your check.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4203 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 18:13:14 +00:00
Anthony Minessale
4099d4c351
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4200 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 15:47:43 +00:00
Anthony Minessale
18338947a3
minor update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4198 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-11 00:39:46 +00:00
Michael Jerris
16ab18935c
be more flexible in what we accept for char based dtmf (ABCD and abcd), patch from George Shaw. Thanks.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4197 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:28:19 +00:00
Michael Jerris
edbc5594af
be more safe about compiler qwirkyness in initialization.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4196 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:26:53 +00:00
Michael Jerris
400372666d
add some better returns to invite failures.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4195 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:16:43 +00:00
Anthony Minessale
4a02e80d5e
fix dtmf bug
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4194 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:16:34 +00:00
Michael Jerris
d1d9fd9a23
adding fail_on_single_reject dialplan option that can be set, which then immediately rejects the call even when sent to multiple destinations upon one party rejecting, useful if you are doing a ring all (, separated in the dial string for multiple calls at once) and you want a single rejection to make the call flow to the next action in the dialplan (in combination w/ continue_on_fail) for example to flow to voicemail. Thanks to George Shaw for this patch.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4193 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 21:47:12 +00:00
Anthony Minessale
59d4d0b071
fix no_media mode
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4192 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 19:34:03 +00:00
Brian West
3b6d163b73
Update from Mike Murdock, Thanks
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4191 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 17:26:40 +00:00
Anthony Minessale
cd0d988e74
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4190 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 01:00:02 +00:00
Anthony Minessale
774b4dbc2f
wanpipe update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4189 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 00:28:50 +00:00
Michael Jerris
c1cf282d39
add some error checking to switch_url_encode function
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4188 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 22:56:42 +00:00
Michael Jerris
712976653d
fix paramater checking on switch_ivr_phrase_macro and it's consumers.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4187 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 22:55:48 +00:00
Michael Jerris
d41b3e14dc
Add session.sayPhrase from Mike Murdock.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4186 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:56:44 +00:00
Anthony Minessale
d1d6081d63
phrase update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4185 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:48:24 +00:00
Anthony Minessale
4a1cbdf81d
add option to wanpipe
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4183 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:32:12 +00:00
Anthony Minessale
cb17c45280
fix causes some more
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4182 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 20:36:01 +00:00
Anthony Minessale
f03226debb
update core
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4181 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 20:03:07 +00:00
Michael Jerris
1eacf043d2
merge sofia windows build, add ifdefed out code to avoid assert if it comes back.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4180 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 19:14:20 +00:00
Michael Jerris
f359f847f7
fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:36:03 +00:00
Michael Jerris
ea3e61f3d8
tweak the defines for memory barriers. This should fix the freebsd build, and adds proper memory barrier defines for msvc build.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4175 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:05:46 +00:00
Anthony Minessale
ed41805c17
improve core and basic flow
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4174 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 01:34:01 +00:00
Michael Jerris
e6dac0923a
don't use a few more blocks either.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4173 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 21:21:12 +00:00
Michael Jerris
96c0f9eaf6
don't use 169.254. auto ip's either.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4172 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 21:16:27 +00:00
Michael Jerris
b227ee8521
add a more descriptive error message on no (or no usable) candidates
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4171 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 21:08:45 +00:00
Anthony Minessale
5327a156ee
fix bug/race in core
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4170 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 20:47:46 +00:00
Michael Jerris
58310a9272
make sofia set network_addr as the address the packet was actually received from, not the address from the uri.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4169 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 20:16:08 +00:00