Commit Graph

2373 Commits

Author SHA1 Message Date
Michael Jerris 8089d8ce22 use the right #define flags for permissions on open.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4029 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 02:54:20 +00:00
Michael Jerris 853e067e55 change new xml stuff to use path sep define, and to set file mode on open for write.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4028 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 02:22:45 +00:00
Michael Jerris 88b2a8655c tweak var types in xml config, change makefile to install all the new broken out xml files.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4027 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 01:40:14 +00:00
Anthony Minessale 3241200072 xml preprocessor (calling all documentors and default config composers!!)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4026 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 01:12:47 +00:00
Yossi Neiman 1a25d91044 Merged changes from my branch r4024.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4025 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 23:33:35 +00:00
Yossi Neiman 26bbed3d92 Commented out the CFLAGS in mod_cdr for using my apr_queue enhancements by default.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4023 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 22:08:13 +00:00
Yossi Neiman c5d86f3e6f Merged changes in from my branch at r4020.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4022 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 22:03:56 +00:00
Anthony Minessale d3e1f400e5 tweak core for build err and add core_get_var
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4021 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 21:59:07 +00:00
Michael Jerris 27ebcae63e add "freeswitch_api" in addition to "freeswitch.api" as xmlrpc method so it can work with java.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4019 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 18:18:48 +00:00
Michael Jerris afc95ee798 add file object from spidermonkey.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4018 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 17:59:27 +00:00
Michael Jerris ecb1e9dae0 tweak to work around shutdown segfault in windows in background mode. This forces it to not do apr_terminate, which shouldn't be necessary anyways as the entire process in ending.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4017 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 17:45:09 +00:00
Michael Jerris 4457fe7596 rearrange a bit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4016 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 17:16:25 +00:00
Michael Jerris 4a651581d2 use closesocket on sockets.. not close
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4015 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 16:54:30 +00:00
Anthony Minessale 151e400ebe let bgapi choose your own id
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4014 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-21 19:36:55 +00:00
Michael Jerris 96b276428e make executable.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4010 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-21 00:29:35 +00:00
Michael Jerris 204b8d2474 make r_sdp char * due to function w/ diff const qualifer.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4009 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-20 22:32:20 +00:00
Anthony Minessale a4dd01a0ee add late negotiation mode for sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4008 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-20 18:51:57 +00:00
Michael Jerris 788279608b "pa_dtmf" -> "pa dtmf" in api help text.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4007 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-20 00:22:43 +00:00
Michael Jerris 465456e3ee doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4006 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 22:47:51 +00:00
Michael Jerris 9e2ec3532c whoops.. cr/lf -> lf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4005 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 22:47:23 +00:00
Anthony Minessale 16fce97f7a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 21:56:31 +00:00
Anthony Minessale ccd944d52b minor tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4003 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 20:35:50 +00:00
Anthony Minessale 8e17a9b865 auto ip fix for w32
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4002 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 19:52:19 +00:00
Anthony Minessale 23bc4a6c9a update for mac
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4001 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 19:20:28 +00:00
Anthony Minessale c845cf2839 auto ip stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4000 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 19:11:44 +00:00
Michael Jerris ca5d5ce595 added no fork mode to the executable so it can be used w/ sipx watchdog service. This mode is not available on windows as we do not fork on windows regardless. Thanks to Paweł Pierścionek for the contribution.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3999 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 12:59:49 +00:00
Michael Jerris 680ef8d169 indications are that we can use mfence, lfence, sfence on x86_64, we will need to test and confirm this, but this should fix the build on 64 bit linux gcc at least. need testers to confirm this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3998 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 12:49:10 +00:00
Michael Jerris e5eba308ab use strchr instead of index as recommended by the linux man pages for portability.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 03:08:08 +00:00
Michael Jerris 23a744ad9d Initial windows build for new portaudio module, so far completely untested, it will NOT work on 64 bit and potentially problematic on SMP boxes still as I am building right now. This build currently uses only winmme, will follow up with better support for optionally building against direct sound, asio, and wasapi.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3993 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:45:58 +00:00
Anthony Minessale d89c21fda4 a few twiax for early media (part 1)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:36:20 +00:00
Anthony Minessale b25743c4d1 a few twiax to prevent a race condition
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3991 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:26:22 +00:00
Anthony Minessale 41541428fc minor tweaks on new portaudio stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3990 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:23:27 +00:00
Michael Jerris 85f4441233 remove extra bits of code from debugging
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3989 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 00:31:48 +00:00
Michael Jerris 5208bffe46 fix url parser from when I broke it trying to fix it, but now it's fixed.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3988 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 00:28:21 +00:00
Anthony Minessale ed0524c2fc pre_answer only in ivr menus (you will have to actually answer yourself)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3987 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-18 16:06:04 +00:00
Anthony Minessale 5c802e3196 fix xml parser in ivr menus
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3986 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-18 15:44:01 +00:00
Anthony Minessale aed84d4179 ivr menu tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3985 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-18 14:48:31 +00:00
Anthony Minessale 832c48cb9b allow storage of a1 hash in user directory field 'a1-hash' trumps password field
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3983 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 22:42:52 +00:00
Anthony Minessale 5ea224b3ca fix for cnonce crap (tell pekka)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3982 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 22:04:01 +00:00
Anthony Minessale 39a9e94305 New mod_portaudio (sponspred by eWorldCom http://www.eworldcom.hu/)
This updates mod_portaudio to use the new v19 api and also contains
major behavioural changes.  This initial check-in should be tested to find
any obscure use cases that lead to crashes etc...

All of the old api interface commands are now depricated and any attempt to
use them should cause a polite warning asking you to try the new single "pa" command.

New Features:
*) Mulitiple calls with hold/call switching.
*) Inbound calls can play a ring file on specified device. (global and per call)
*) Optional hold music for backgrounded calls. (global and per call)


Example dialplan usage:

<extension name="2000">
  <condition field="destination_number" expression="^2000$">
    <!--if the next 3 lines are omitted the defaults will be used from portaudio.conf-->
    <action application="set" data="pa_ring_file=/sounds/myring.wav"/>
    <action application="set" data="pa_hold_file=/sounds/myhold.wav"/>
    <action application="set" data="export_vars=pa_ring_file,pa_hold_file"/>
    <action application="bridge" data="portaudio"/>
  </condition>
</extension>


Example API interface usage:

call extension 1000
> pa call 1000

call extension 1001 putting the other call on hold
> pa call 1001

swap the calls between hold and active
> pa switch

view the current calls
> pa list

forground the call with id 1 
> pa switch 1

background all calls
> pa switch none

send a dtmf string (1234) to the current call
> pa dtmf 1234

answer the oldest unanswered inbound call
> pa answer

answer the call with id 1
> pa answer 1

hangup the active call
> pa hangup

hangup the call with id 1
> pa hangup 1

get device info
> pa dump

print usage summary
> pa help


USAGE:
--------------------------------------------------------------------------------
pa help
pa dump
pa call <dest> [<dialplan> <cid_name> <cid_num> <rate>]
pa answer [<call_id>]
pa hangup [<call_id>]
pa list
pa switch [<call_id>|none]
pa_dtmf <digit string>
--------------------------------------------------------------------------------

The source of the portaudio v19 library will also be checked in for the 
sake of the build system.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3981 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 19:10:03 +00:00
Anthony Minessale 0ac4fbc159 Add mod_xml_curl to modules.conf.in and add parameter change submitted by Bret McDanel (thanks)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3980 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 17:22:14 +00:00
Anthony Minessale 7c4d9e1c83 fix play member in conf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3976 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-16 20:05:06 +00:00
Brian West bf9a2605d2 The Makefile.in was correct but this file was not.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3974 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-16 16:01:54 +00:00
Anthony Minessale 408464c0b4 factor out pool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3973 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-16 15:50:13 +00:00
Michael Jerris 44a3909e79 fix seg with register w/ no contact.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3968 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-15 22:12:15 +00:00
Michael Jerris 5db9b9d0b7 better error message/don't print null when no sip-ip is specified.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3967 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-15 19:00:47 +00:00
Anthony Minessale fec8895d62 heed the advice of tech_choose_port
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-15 16:59:42 +00:00
Michael Jerris 61dfa852ca can't set max forwards if it's not there.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-15 15:40:35 +00:00
Michael Jerris c2b78628ee bind to the right address when using ext-sip-ip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3962 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-15 04:32:21 +00:00
Michael Jerris d2099ef174 if we define ext-sip-ip in the profile for config, use it for the profile url. This does not yet use stun, or have any method for determining on a call by call basis if a call needs to use the internal or external.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3961 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-15 03:52:39 +00:00