Commit Graph

277 Commits

Author SHA1 Message Date
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
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 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
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 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
Anthony Minessale ed41805c17 improve core and basic flow
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4174 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 01:34:01 +00:00
Michael Jerris 58310a9272 make sofia set network_addr as the address the packet was actually received from, not the address from the uri.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4169 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 20:16:08 +00:00
Michael Jerris 0d35fb0308 Fix typo in several places. Patch from Matt Klein.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4163 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-08 13:50:28 +00:00