Commit Graph

453 Commits

Author SHA1 Message Date
Anthony Minessale 1b5fe10277 change a few things to allow timers to generate timestamps
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4452 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-05 20:53:54 +00:00
Michael Jerris ea8544579d add cross platform mutex abstraction.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4409 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-28 00:28:23 +00:00
Michael Jerris c64f6ce5c0 copy missing header file to the right place.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-27 19:33:10 +00:00
Michael Jerris 08f512f436 update windows build to use sqlite 3.3.13
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4353 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 23:13:56 +00:00
Michael Jerris 5791353cec sync up our in tree sqlite with the 3.3.13 official release. Commit to follow to finish this process on the windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4351 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-22 22:09:42 +00:00
Michael Jerris 1141525293 don't create new iax sessions when we shouldn't
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4324 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-19 16:56:48 +00:00
Michael Jerris 7b4e100b31 Temporarily reverting sofia-sip library back to prior to the changes merged on 2/7/2007 due to ongoing unresolved issues in the new code. Will re-commit these changes once we receive fixes from the sofia-sip tree for these outstanding issues. Make sure recommended.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4308 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-17 06:25:21 +00:00
Michael Jerris 85c8bcd5ed Merge changes from sofia-sip tree:
Mon Feb 12 21:22:39 EET 2007  Maxim Zaikin <Maxim at amsd.com>
  * su_pthread_port.c: destroying condition variable used when destroying the thread.

Tue Feb 13 01:10:38 EET 2007  kai.vehmanen@nokia.com
  * nua: Ignore CANCEL of incoming request if we have already sent a final response, part 2.

Tue Feb 13 01:02:00 EET 2007  kai.vehmanen@nokia.com
  * nua: Ignore CANCEL of incoming request if we have already sent a final response. Problem reported by Mike Jerris.

nua: fixed problems in state machines.
Pekka Pessi <first.lastname@nokia.com>**20070214201847
   
 These problems are mostly introduced in 1.12.5:
 - assert failed if INVITE was received when calling
   (reported by Michael Jerris)
 - assert failed if nua_invite() was called second time before receiving
   final response to first INVITE (ditto)
 - ACK is now always sent if session was terminated after receiving 2XX
 - if nua has a pending incoming INVITE request, return 491 to
   nua_invite()

nta.c: return 481 response to CANCEL if INVITE transaction was successful
According to the RFC 3261 state diagram the INVITE transaction is destroyed
 immediately when a final 2XX series response is sent. Now nta returns a 481
 response to CANCEL if it finds an INVITE server transaction that was
 responded with a 2XX success response.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4284 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 05:18:37 +00:00
Michael Jerris 6e12fb32cd remove white space chages from sofia tree
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4283 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 04:54:37 +00:00
Michael Jerris e77cedb948 revert some useless differences from the official sofia-sip tree
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4281 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 02:53:37 +00:00
Anthony Minessale 5578b9a889 fix configure test failure if -Werror is in CFLAGS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 23:17:48 +00:00
Anthony Minessale 77484ae4b7 detect __func__ properly even if CFLAGS has -Werror in it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4278 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 22:48:54 +00:00
Michael Jerris 1072896755 fix js file object for good this time
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4275 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 21:57:13 +00:00
Anthony Minessale 24d58ceee5 yet another attempt to properly build with the file object again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4274 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 20:48:15 +00:00
Anthony Minessale 262eedc03c .update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4273 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 20:21:12 +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 ddff61c34c turn off warnings for now until they can get resolved in tree.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4237 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 19:45:32 +00:00
Michael Jerris 0dabc669b9 Don't assert when we get 2 copies of the same invite, just ignore it and do nua_client_return(cr, 900, "INVITE already in progress", msg)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4231 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 16:01:19 +00:00
Michael Jerris 3e4e15924f ignore CANCEL of incoming requests after we send a final response. Patch by me and Kai Vehmanen.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4213 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 23:14:36 +00:00
Michael Jerris 272b78be58 add missing spec file updates
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4205 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 18:29:52 +00:00
Michael Jerris 38cd3a8105 .update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4202 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 16:02:55 +00:00
Michael Jerris 215b751d92 merge fixes to sofia-sip including double free causing segfault or assert in sres
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4201 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 16:01:22 +00:00
Michael Jerris be1e4e3995 I don't think this has any real effect, but it was easier for me to read while I was debugging.. will probably revert it later.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4184 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:47:30 +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 dccf9b3d1b updated makefiles and a missing source file from the last sofia merge
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4179 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 18:15:36 +00:00
Michael Jerris 82def9a70d touch the .update so the lib is totally rebuilt
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4178 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 17:57:51 +00:00
Michael Jerris 666bd3bec3 sync back up again with sofia tree prior to their release
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4177 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 17:32:17 +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 17d57b7142 missing ;
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4168 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 19:35:07 +00:00
Michael Jerris e7d0aaef27 fix warnings and some windows compatibility issues in enum/udns
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4167 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 19:23:36 +00:00
Michael Jerris 96f207585d sync windows build with new sofia build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4155 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-07 22:29:52 +00:00
Michael Jerris cad28828b2 merge changes from current sofia-sip tree.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4153 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-07 21:59:38 +00:00
Michael Jerris e4e3673a2d resolve possible loss of data warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4098 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-31 07:57:12 +00:00
Michael Jerris 55cdd067c0 pointer truncation fix.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4097 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-31 07:55:18 +00:00
Michael Jerris 27f184f2bf fix windows build when there is a space in the source directory name.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4096 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-31 07:54:02 +00:00
Anthony Minessale b16a66caac trigger dingaling rebuild
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4092 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-30 15:12:31 +00:00
Anthony Minessale 39119eb7a7 fix dingaling reject
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4087 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 22:22:29 +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 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
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
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
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 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
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 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
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
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