Commit Graph

3576 Commits

Author SHA1 Message Date
Anthony Minessale
f4c1039a16 add prototype for local_stream test it and let me know what you think
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5461 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 23:09:28 +00:00
Michael Jerris
ed0076eb18 add preAnswer method, and throw a js exception if session methods requiring a answered or pre-answered channel are called on a channel that is not. adresses MODLANG-24
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5460 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 21:01:55 +00:00
Michael Jerris
13afb64dcb add new config files to the sln.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5459 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 20:38:22 +00:00
Michael Jerris
f0bf734e6e change the directory walking functions to pass it the buffer.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5458 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 20:37:41 +00:00
Michael Jerris
498aca8df8 add blackfin to config.sub. FSBUILD-5.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5457 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 20:14:17 +00:00
Michael Jerris
b6749d2106 merge MODAPP-16 (add curl support to mod_xml_cdr), thanks Bret.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5456 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 19:57:24 +00:00
Anthony Minessale
158d1f4631 kill mysterious race bug that magicly showed up last week
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5455 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 19:47:39 +00:00
Traun Leyden
700aa0df56 streamFiles 2nd argument is now optional. fix segfault that was happening with originate/bridge due to no valid session in b leg. rename streamfile to streamFile. remove playFile since streamFile does the same thing
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5454 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 17:38:17 +00:00
Michael Jerris
d2d87cf6a1 protect the hash.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5451 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 04:06:05 +00:00
Michael Jerris
c01e8d3e52 those who lock, should also unlock...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5450 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 03:42:11 +00:00
Michael Jerris
33ec66f396 fix hold on ua's that send sendonly in the m instead of the a line and unhold without a sendrecv.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5449 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-24 03:17:21 +00:00
Anthony Minessale
a039d870c3 Add events around all application execution:
fire SWITCH_EVEHT_CHANNEL_EXECUTE
<execute app>
fire SWITCH_EVEHT_CHANNEL_EXECUTE_COMPLETE

This can be used in async socket connections to tell
when a queued application has finished executing.



Add the "event" application to the dialplan:

<action application="event" data="header1=val1,header2=val2"/>

Events fired from this applcation will always have the type SWITCH_EVENT_CHANNEL_APPLICATION.

You can add up to 25 headers of your own to the event via the application arguements.





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5448 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-23 05:41:07 +00:00
Anthony Minessale
c43c080fa3 avoiding racing cpu (part 3)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5447 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-23 03:51:57 +00:00
Anthony Minessale
24d64a618b avoiding racing cpu (part 2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-23 03:26:12 +00:00
Michael Jerris
0f6767a9e4 fix typo.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5445 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 22:29:28 +00:00
Anthony Minessale
699612c2cb avoiding racing cpu
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5444 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 21:45:36 +00:00
Anthony Minessale
5f86cb4606 add exceptions to js and make invalid session access fatal + exception for a try/catch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5443 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 19:59:57 +00:00
Traun Leyden
6f78befac9 implement flushEvents() flushDigits() setAutoHangup() and setHangupHook(). reworked dtmfhandler and some aspects relating to threadstate. folded in memory pool thing from mishehu. added more asserts to switch_core_file (coordinated w/ anthony on this)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5442 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 19:14:53 +00:00
Anthony Minessale
34d6c49870 update example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5439 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 17:38:32 +00:00
Anthony Minessale
da7640faa6 hack, *couugh* i mean fix portaudio to work better
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5438 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 17:05:51 +00:00
Anthony Minessale
c6af283b83 fix core db for js
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5437 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-22 01:55:48 +00:00
Anthony Minessale
cb766bf817 fi
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5436 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-21 23:28:16 +00:00
Anthony Minessale
36ccf76a99 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5435 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-21 22:48:58 +00:00
Anthony Minessale
4e50738c22 try to fix latency on portaudio
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5434 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-21 22:36:04 +00:00
Traun Leyden
7dabe2488f bugfix: return values from playAndGetDigits stopped working
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5433 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-21 18:23:56 +00:00
Anthony Minessale
83b4c47348 fix odbc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5431 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-21 16:30:56 +00:00
Michael Jerris
97b9b262ba make msi work for now.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5429 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 18:53:49 +00:00
Michael Jerris
b16a19a52f whoops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5428 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 18:53:26 +00:00
Michael Jerris
7953a010f5 whoops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5426 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 18:45:35 +00:00
Michael Jerris
f41ce8bb9f fix windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5424 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 15:13:46 +00:00
Anthony Minessale
fc9195fe60 avoiding deadlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5423 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 14:50:02 +00:00
Chris Parker
80a72ea2f1 Remove uneeded module_pool declaration
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5422 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 14:45:28 +00:00
Chris Parker
52fd99666d Changes to new macro initialzation
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5421 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 14:41:55 +00:00
Michael Jerris
bd2c91b028 Add recordFile method. merge svn r5149 from branch.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5420 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 14:35:22 +00:00
Michael Jerris
c31639279a fix for new switch_log_printf prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5418 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 11:02:45 +00:00
Michael Jerris
9d6042dc04 fix for new switch_log_printf prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 10:50:56 +00:00
Michael Jerris
adba671928 fix for new switch_log_printf prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 10:49:25 +00:00
Michael Jerris
9aa7ed492c fix for new switch_log_printf prototype
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5415 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 10:46:51 +00:00
Michael Jerris
69705d5d00 correct printf function args for modified switch_log_printf.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5414 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 10:43:24 +00:00
Michael Jerris
8ff384d36f Update sofia-sip from darcs:
Mon May 14 12:43:07 EDT 2007  martti.mela@nokia.com
  * su_base_port.c: fixed a double free in su_base_port_start_shared().

Fri May 25 13:56:23 EDT 2007  Pekka.Pessi@nokia.com
  * soa: added SOATAG_ORDERED_USER(), SOATAG_REUSE_REJECTED().
  
  Allow replacing existing m=lines.

Sun May 27 14:52:13 EDT 2007  Pekka.Pessi@nokia.com
  * msg_parser.c: fixed bug #1726034

Mon May 28 04:57:08 EDT 2007  Pekka.Pessi@nokia.com
  * test_nth.c: using non-blocking connect in test program, too.

Mon May 28 04:58:05 EDT 2007  Pekka.Pessi@nokia.com
  * su.c: making all sockets non-blocking by default.

Mon May 28 04:59:28 EDT 2007  Pekka.Pessi@nokia.com
  * m4/sac-su.m4: moved contents into sac-s2.m4

Mon May 28 05:32:26 EDT 2007  Pekka.Pessi@nokia.com
  * RELEASE: updated.

Wed May 30 10:37:53 EDT 2007  Pekka.Pessi@nokia.com
  * m4/sac-su2.m4: added configure option --disable-tag-cast.
  
  Added SU_INLINE_TAG_CAST into sofia-sip/su_configure.h{,.in}.
  Using SU_INLINE_TAG_CAST in
    sofia-sip/sip_tag.h{,.in}
    sofia-sip/http_tag.h{,.in}
    sofia-sip/su_tag.h
    sofia-sip/su_tag_io.h
    sofia-sip/auth_module.h
    sofia-sip/nth_tag.h
    sofia-sip/nua_tag.h
  
Fri Jun  1 15:11:52 EDT 2007  Pekka.Pessi@nokia.com
  * tport.c: fixed tport_set_params() with secondary transports

Fri Jun  1 15:13:23 EDT 2007  Pekka.Pessi@nokia.com
  * tport_type_tcp.c: checking for end-of-stream even if su_getmsgsize() promised more data

Fri Jun  1 15:15:34 EDT 2007  Pekka.Pessi@nokia.com
  * tport: added tport_is_clear_to_send(), allow use of tport_pending() without msg
  
  The error callback from tport can now be registered even if there is no
  request pending on transport (e.g., when keeping a transport connection open
  for inbound messages).

Fri Jun  1 15:16:43 EDT 2007  Pekka.Pessi@nokia.com
  * nta: not retrying after an transport error if application provided the transport

Fri Jun  1 15:17:23 EDT 2007  Pekka.Pessi@nokia.com
  * sip: do not accept empty URIs (<>) in From, To, and other headers expecting name-addr format

Fri Jun  1 15:17:43 EDT 2007  Pekka.Pessi@nokia.com
  * torture_url.c: added test for parsing empty URLs.

Fri Jun  1 15:19:27 EDT 2007  Pekka.Pessi@nokia.com
  * nua/test_proxy.[hc]: use registered connections for outbound with TCP.
  
  Added test_proxy_close_tports() used testing recovering from TCP failures.

Fri Jun  1 15:20:33 EDT 2007  Pekka.Pessi@nokia.com
  * test_nua.c: added --print-tags and --tags-a, --tags=b and --tags=c options
  
  Added more functions for handling events

Fri Jun  1 15:22:08 EDT 2007  Pekka.Pessi@nokia.com
  * test_nua: fixed some tests depending on delivery of responses in correct order
  
  Reordering might happen if some messages are sent over TCP, other over UDP.

Fri Jun  1 15:27:55 EDT 2007  Pekka.Pessi@nokia.com
  * nua_register.c: re-registering in case the TCP connection towards proxy is closed
  
  In test_nua, Mr. B is now using TCP with the test proxy.

Fri Jun  1 15:35:39 EDT 2007  Pekka.Pessi@nokia.com
  * nua/test_refer.c: fixed SIP payload checks

Fri Jun  1 15:36:08 EDT 2007  Pekka.Pessi@nokia.com
  * nta_internal.h: added orq_user_tport field

Tue Jun  5 06:16:43 EDT 2007  Pekka.Pessi@nokia.com
  * hide_email.sh: now fixing links, too.

Fri Jun 15 05:34:29 EDT 2007  Pekka.Pessi@nokia.com
  * nua: fixed documentation entries for API functions left out from doxygen
  
  Thanks for Jerry Ricahrds for pointing this out.

Wed May 23 10:26:26 EDT 2007  Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
  * Correct documentation for parameter type of NUTAG_WITH_SAVED

Mon Jun 18 12:34:58 EDT 2007  Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
  * Make nua_saved_event_request() and hence NUTAG_WITH_SAVED resilient to a NULL event content



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 10:41:15 +00:00
Michael Jerris
5b27ad1332 add userdata param to switch_log_printf so we can pass uuid or other session or other identification information to the logger.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 09:19:45 +00:00
Michael Jerris
25f2fc817e only include switch_stun.h where needed. We use some c99isms in this header that do not get along well with some c++ compilers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5411 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 09:02:30 +00:00
Michael Jerris
e028f2691c merge r5393 from http://svn.freeswitch.org/svn/freeswitch/branches/greenlizard/
* implement originate() and bridge() methods in CoreSession.  
* api changes for originate() : no longer passes 11 arguments


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5410 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:56:34 +00:00
Michael Jerris
b7910ac8f9 remove unused function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5409 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:46:13 +00:00
Michael Jerris
04af2a4325 remove unused function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5408 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:45:33 +00:00
Michael Jerris
a2a725f915 typo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5407 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:44:14 +00:00
Michael Jerris
8694a4a7ce add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5406 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:41:55 +00:00
Michael Jerris
4e434aff7f add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5405 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 08:18:18 +00:00
Michael Jerris
ae02cbef83 add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5404 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 07:53:33 +00:00
Michael Jerris
008777e95e add more modules to new mod loader macros/api.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-06-20 07:15:53 +00:00