305 Commits

Author SHA1 Message Date
Michael Jerris
42e78242a3 add wrapper code to fully encapsulate apr, apr-utils, pcre, and sqlite. fully use switch_ namespace in modules, create our own format and type defines. follow up commit for unix autotools coming soon after this. PLEASE NOTE: you will NEED to do a make megaclean and run configure again after this update (and the following commit) or it will not build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:44:13 +00:00
Anthony Minessale
2d78da120a avoid races in super high volume of no media calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4493 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:37:30 +00:00
Anthony Minessale
66b2dac75e send 503 reply on failed alloc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4491 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 17:38:58 +00:00
Anthony Minessale
aaf747641a tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4488 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 01:15:54 +00:00
Michael Jerris
9d84542d39 windows build fix.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4486 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 22:58:16 +00:00
Anthony Minessale
5ccdfc78f0 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4485 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 22:18:33 +00:00
Michael Jerris
0cbd3555b6 add some very basic stun support to ext-sip-ip. please consider this support as testing only, may change syntax or be removed in the future.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4484 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 20:05:09 +00:00
Michael Jerris
74717fcbd0 msvc build tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4483 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 16:43:16 +00:00
Anthony Minessale
5a166b4ba3 test patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4482 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 16:09:57 +00:00
Anthony Minessale
752a51915e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4479 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 02:52:31 +00:00
Michael Jerris
cc0ea39446 fix msvc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4478 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-08 02:31:34 +00:00
Anthony Minessale
70db8abf67 update contd
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4474 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 23:48:02 +00:00
Anthony Minessale
13c9b4779a wip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4473 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 23:24:09 +00:00
Anthony Minessale
e5251932fd you can't handle the truth
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4472 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 22:30:29 +00:00
Anthony Minessale
c8dfa63c82 update wip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4470 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 21:21:42 +00:00
Anthony Minessale
3ba066029c a need a drink
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4469 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 20:23:14 +00:00
Anthony Minessale
7bae5bcfb9 wtf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4468 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 20:06:47 +00:00
Anthony Minessale
e678896404 sigh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4467 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 20:06:15 +00:00
Anthony Minessale
5131ee1cae add management interface and some rtp goodies
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4464 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-07 18:34:22 +00:00
Anthony Minessale
8f0580cd73 now with rollover
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4455 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-06 01:19:41 +00:00
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
20fdbff0ba constification
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4449 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-05 06:56:13 +00:00
Michael Jerris
366b341be4 add a bit more null handling in mod_sofia.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4448 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-05 06:04:37 +00:00
Brian West
bd6720df94 Please besure to do "make sure" this should fix the assert people were getting on ALL channel drivers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4438 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-03 21:02:02 +00:00
Michael Jerris
30e17bbb18 this appears to make more compilers happy.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4425 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 09:11:50 +00:00
Michael Jerris
9b43057b29 when using ext-sip-ip, bind to the internal address, but still have the external address in the contact and via headers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4422 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 01:44:36 +00:00
Michael Jerris
efab82eb23 tokenizing is much better than stringizing any day. oh, and those quotes don't belong.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4421 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 00:36:05 +00:00
Anthony Minessale
c612d4226b add patch to fix stun issue
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4418 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-01 16:11:08 +00:00
Anthony Minessale
3aa23ada21 move string to constant
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4411 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-28 15:48:17 +00:00
Michael Jerris
9c3d336223 more properly handle sdp c lines inside of the audio m line.Resolves jira bug MODENDP-2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4391 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-25 21:37:02 +00:00
Michael Jerris
20ffa32772 Detect proper telephone-event id to use. fix to http://jira.freeswitch.org/browse/MODENDP-4 . using pt.diff.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4390 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-25 21:00:26 +00:00
Michael Jerris
093dc6b4ef refactor of sip_i_invite. Much more error handling of different missing data on the inbound invite. Some minor changes in behavior. Chanvars are now not set for vars we don't have. the channel name will now include :port (the full uri as we create it from the data available), display name is now unknown not service if there is not one available. Added contact uri as a chan var like all the others, the channel name if there is no user portion of the from will not have a from part of service, it will have no user part or @. The contact will now be used for the channel name if there is no from header in the invite.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4388 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-25 16:53:17 +00:00
Anthony Minessale
f69b1aefb6 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4375 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-23 20:03:30 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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