Commit Graph

2550 Commits

Author SHA1 Message Date
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
Anthony Minessale c8685d483b add enum to default build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3954 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-13 16:52:11 +00:00
Anthony Minessale 0edea416cc Avoiding Segfaults from buggy depend libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3953 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-13 03:28:08 +00:00
Anthony Minessale f4267b0c51 add session_record api command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3951 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-12 16:05:49 +00:00
Anthony Minessale 926282b5a8 Avoiding Deadlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3950 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-12 00:26:36 +00:00
Anthony Minessale 4c9da6fa4d Avoiding Deadlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3949 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-12 00:15:21 +00:00
Anthony Minessale 03f2a4ad7b Avoiding Deadlock (by puting the mutex in the right place)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3948 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-12 00:09:43 +00:00
Michael Jerris d933d5fe2f add max_forwards chanvar, maybe we should put this in caller profile and allways pass it across and decrement it to avoid loops across the switch, at least for protocols that support loop detection.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3947 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 23:44:18 +00:00
Michael Jerris f703a303f0 use blank instead of null if no username
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3946 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 23:04:54 +00:00
Anthony Minessale 9d91113b47 add rwlock to members
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3945 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 22:34:04 +00:00
Michael Jerris 0c97a56956 use the request uri instead of to for primary routing
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3944 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 18:25:35 +00:00
Anthony Minessale e37559eb0e update conference to add lock sounds, sound prefix, and use say: syntax
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3943 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 18:14:02 +00:00
Michael Jerris d83b399d96 completely untested redirect support, need to try this from a machine that can take sip calls.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3942 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-10 21:26:10 +00:00
Brian West ff04adf449 add g729a as a registered codec type.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3938 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-10 19:40:06 +00:00
Anthony Minessale 1208268343 add mod_say_en to default modules.conf.in
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3937 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-10 17:43:57 +00:00
Michael Jerris a17123dae4 The day before today Mike Murdock found a bug making switch_str_time return the day before, but it was already the day before today, so it returned 2 days ago, and that was just not right. Now time has all come back together.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3933 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-10 14:42:47 +00:00
Anthony Minessale 09384634cc add getvar
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3931 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-09 00:39:11 +00:00
Anthony Minessale 97cf339c7e minor tweaks in conference
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3930 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-08 17:19:59 +00:00
Michael Jerris 716a9fbd94 switch all libs and mods to use the dynamic instead of the static runtime so everything in freeswitch runs in a single instance of the runtime.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3929 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-08 13:48:41 +00:00
Michael Jerris 5bc71925a8 Make sure we pass early media after the pre-answer (thanks Mike Murdock for the report and troubleshooting assistance)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3928 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-08 01:55:16 +00:00
Michael Jerris 63d89577d6 switch all libs and mods to use the dynamic instead of the static runtime so everything in freeswitch runs in a single instance of the runtime.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3925 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-07 04:35:16 +00:00
Michael Jerris 1dcfa50d76 potentially uninitialized vars
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3924 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-07 04:34:22 +00:00
Michael Jerris e8f16d9929 add switch_time_exp_gmt_get for mishehu
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3923 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-06 22:57:31 +00:00
Michael Jerris e84b6ee302 the runtime needs to match to core, or the realloc of memory malloc'd from another dll will cause heap corruption.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3922 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-06 21:56:28 +00:00