Commit Graph

2789 Commits

Author SHA1 Message Date
Michael Jerris 2aa5aa4fe7 get rid of disabling of some warnings on windows, because we don't have those warnings anymore. Document the others that we have disabled.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4227 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 06:08:28 +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
Michael Jerris f08d0e89c1 add missing prototype for switch_channel_perform_mark_ring_ready
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4225 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 04:41:28 +00:00
Michael Jerris 0a5b02999c add PRINTF_FUNCTION specifier to printf like functions to let gcc tell us when we are using the wrong format specifiers on these functions. Suggested by <MrEIso> via irc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4224 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 03:17:19 +00:00
Anthony Minessale cf24c21e86 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4223 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 03:02:52 +00:00
Michael Jerris 489354037d indirection misdirection?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4222 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:48:50 +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
Michael Jerris db5557983a use const for switch_core_permanent_strdup var.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4220 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:31:26 +00:00
Anthony Minessale 25963d7a57 doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4219 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:31:17 +00:00
Michael Jerris 87d5a3bbb4 char cast on tolower & toupper
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4218 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 02:26:39 +00:00
Anthony Minessale 403243980e mmkay
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4217 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-13 01:58:39 +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
Brian West df79b479d9 woops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4215 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 23:32:29 +00:00
Brian West e3773e1a01 We should only advertise one code per IANA number.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4214 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 23:32:00 +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
Anthony Minessale e360d6500c fix mod_native_file extension thingy
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4212 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 22:56:08 +00:00
Anthony Minessale 8e2c70d797 sndfile tweaks (add ul and al files and more record formats)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 22:42:22 +00:00
Anthony Minessale c133b3453d simplify wanpipe write method
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4210 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 21:08:57 +00:00
Michael Jerris 5ba24598e1 data pulled from xml needs to be duped in order for it to stay around for sure.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4209 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 20:30:13 +00:00
Anthony Minessale 49f0d6152f tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4208 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 20:03:29 +00:00
Michael Jerris 88fda78ee8 avoid array out of bounds.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4207 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 19:55:12 +00:00
Michael Jerris 43e50048ca ntohs takes u_short, and we are in a 16 bit bitfield, so we can cast this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4206 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 19:35:09 +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
Anthony Minessale f2c46f504c alternate which devices we support with the ones we don't using rfc2833
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4204 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 18:22:30 +00:00
Michael Jerris 62a44e621f some more protection from passing around and printing null values, we are now initializing null's passed to switch_caller_profile_new as blank strings in the caller profile, if your using any caller profile values in if's, please use !switch_strlen_zero() in your check.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4203 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 18:13:14 +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
Anthony Minessale 4099d4c351 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4200 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-12 15:47:43 +00:00
Anthony Minessale 18338947a3 minor update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4198 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-11 00:39:46 +00:00
Michael Jerris 16ab18935c be more flexible in what we accept for char based dtmf (ABCD and abcd), patch from George Shaw. Thanks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4197 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:28:19 +00:00
Michael Jerris edbc5594af be more safe about compiler qwirkyness in initialization.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4196 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:26:53 +00:00
Michael Jerris 400372666d add some better returns to invite failures.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4195 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:16:43 +00:00
Anthony Minessale 4a02e80d5e fix dtmf bug
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4194 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 23:16:34 +00:00
Michael Jerris d1d9fd9a23 adding fail_on_single_reject dialplan option that can be set, which then immediately rejects the call even when sent to multiple destinations upon one party rejecting, useful if you are doing a ring all (, separated in the dial string for multiple calls at once) and you want a single rejection to make the call flow to the next action in the dialplan (in combination w/ continue_on_fail) for example to flow to voicemail. Thanks to George Shaw for this patch.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4193 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 21:47:12 +00:00
Anthony Minessale 59d4d0b071 fix no_media mode
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4192 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 19:34:03 +00:00
Brian West 3b6d163b73 Update from Mike Murdock, Thanks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4191 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 17:26:40 +00:00
Anthony Minessale cd0d988e74 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4190 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 01:00:02 +00:00
Anthony Minessale 774b4dbc2f wanpipe update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4189 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-10 00:28:50 +00:00
Michael Jerris c1cf282d39 add some error checking to switch_url_encode function
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4188 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 22:56:42 +00:00
Michael Jerris 712976653d fix paramater checking on switch_ivr_phrase_macro and it's consumers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4187 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 22:55:48 +00:00
Michael Jerris d41b3e14dc Add session.sayPhrase from Mike Murdock.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4186 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:56:44 +00:00
Anthony Minessale d1d6081d63 phrase update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4185 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:48:24 +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
Anthony Minessale 4a1cbdf81d add option to wanpipe
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4183 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 21:32:12 +00:00
Anthony Minessale cb17c45280 fix causes some more
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4182 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 20:36:01 +00:00
Anthony Minessale f03226debb update core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4181 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 20:03:07 +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