Commit Graph

169 Commits

Author SHA1 Message Date
Anthony Minessale ab65dab071 update sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3012 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-09 19:30:54 +00:00
Anthony Minessale 071e720f87 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3009 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-09 17:11:39 +00:00
Anthony Minessale dcdc0cdaac bug pointed out by stkn, thanks\!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3008 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-09 14:47:36 +00:00
Anthony Minessale 6a96670267 refine code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3006 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-09 02:24:43 +00:00
Anthony Minessale d44c204f5b fix goofy 183 madness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-08 15:51:10 +00:00
Anthony Minessale bc7a378c4e Modify Originate input syntax
This adds the | to the originate syntax 
making it possible to put a list of urls to call and attempt
to call them one at a time until one of them is successful or there
are none of them left

The original & delimited list is valid for each step in the | separated
list

Example
sofia/test-int/3920@10.3.3.104|sofia/test-int/3910@10.3.3.104&sofia/test-int/3920@10.3.3.104

first call 1 location and if that results in a failure, try 2 at once on the next go



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2996 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-07 22:19:24 +00:00
Anthony Minessale 4ede7f7593 Update to new sofia snapshot, includes fixes for 100 on notify, and for sdp not in 200 after 183 when not using 100rel
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2993 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-07 18:54:29 +00:00
Anthony Minessale 0d23976f2a Insane amounts of yucky satanic code to make transfer and that kind of thing work.
Transfers work better when both legs of the call live in thier own channel eg bridged calls
A -> B where you want a to make B -> C

when you route a call to an IVR or playback app you are not really bridging you have
A all alone executing the script so it's hard to transfer that.

I do have it aparently working but it's goofy and you are better off
putting your IVR on it's own switch so they are all inbound calls
then you have A -> B -> IVR
now A can happily transfer B who can stay on line with IVR without stopping
the execution.  You can also accomplish this by calling in a loop back to the same box
if you dont want to have 2 boxes.


Also the beginning effort at bridging calls with no media is here
set this magic variable in your dialplan to convince mod_sofia
to pass A's sdp as it's own to B and return B's sdp back to A on 200 or 183

<action application="set" data="no_media=true"/>
<action application="bridge" data="sofia/id@host.com"/>

You will need a new sofia tarball for this version


There is a bunch of other odds and ends added like a function or 2 etc
Oh,

And don't be suprised if it introduces all kinds of bugs!



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-06 22:39:49 +00:00
Anthony Minessale c23c32f013 sofia again
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2981 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 15:07:45 +00:00
Anthony Minessale 9ff8f4d7b0 sigh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2980 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 14:45:56 +00:00
Michael Jerris bd84b01a4b initialize some vars that might not get initialized in some codepaths.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2979 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 14:29:54 +00:00
Anthony Minessale f993cd6791 more sofia stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2978 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 14:24:25 +00:00
Anthony Minessale 4c6aac4f3f update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2976 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 04:25:32 +00:00
Anthony Minessale 82bb3d2a7c update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2975 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 04:23:13 +00:00
Anthony Minessale 535d4c4d06 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2974 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 04:15:04 +00:00
Anthony Minessale 596b88e584 fix callerid even better!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2973 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 04:06:07 +00:00
Michael Jerris 4e9be89ad6 update windows sofia build to latest release.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2972 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 03:11:09 +00:00
Anthony Minessale 26f5e1c6ce fix callerid
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2970 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 00:38:45 +00:00
Anthony Minessale 7de068b9ac sip work in progress changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2969 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-04 23:11:11 +00:00
Anthony Minessale 513d5dbbdd adding transfer part 1
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2962 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-03 04:08:30 +00:00
Anthony Minessale 5751f1f643 tweak sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2952 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 17:21:06 +00:00
Anthony Minessale 503d50b16c process reinvite
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2903 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 19:22:53 +00:00
Anthony Minessale c19e1330b1 process reinvite
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2902 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 19:17:35 +00:00
Anthony Minessale 00fa0c6fab remove wtf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2899 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 17:39:45 +00:00
Anthony Minessale ca7c2168ce update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2897 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 16:30:29 +00:00
Anthony Minessale 4c0d89aace freq 0 means dont reg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2879 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 01:26:54 +00:00
Anthony Minessale 8d716e6ab9 break everything in sofia as you know it but add in/out reg + auth, look in the default config for the new syntax
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2875 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 00:00:07 +00:00
Michael Jerris 06c60ea8f9 type tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2871 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 18:19:31 +00:00
Brian West 396beef390 refactor sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2869 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 18:12:31 +00:00
Anthony Minessale 60f8e4aa03 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2866 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 12:50:11 +00:00
Anthony Minessale 168c69bb36 more auth
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2861 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 01:07:51 +00:00
Michael Jerris 346eb82c5a update for windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2860 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-28 21:29:32 +00:00
Anthony Minessale 28770b3b30 auth
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2859 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-28 21:21:44 +00:00
Michael Jerris ea3eab9cfd Update sofia build to 1.12.2 on windows.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2858 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-28 20:03:23 +00:00
Anthony Minessale 663079d8a6 add multicast stuff to sofia reg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2851 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-27 20:18:14 +00:00
Anthony Minessale 074e9d2de5 oh yeah sqlite's idea of thread safe is not so great, 1 handle per thread so blah let's open seperate handles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2845 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-27 04:34:19 +00:00
Anthony Minessale 5a3a8297ef peliminary sofia inbound reg support rm all traces of sofia and rebuild or face certian doom
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2843 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-27 03:44:14 +00:00
Anthony Minessale 2967ad8acd fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2807 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-23 18:32:39 +00:00
Anthony Minessale 39aafd7dbd disable mini
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2778 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-22 13:43:33 +00:00
Anthony Minessale 6c5672b1ef undo abundant evil -props to the man who won't stfu and leave me alone to code <- his request i say that....
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2774 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-21 19:52:56 +00:00
Anthony Minessale c3757293f0 add justinu's patch for sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2766 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-20 20:26:21 +00:00
Anthony Minessale 90815616cc small core refactoring use -hp arg to gain high priority mode, add fsctl command USAGE: fsctl [hupall|pause|resume|shutdown]
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-20 20:25:26 +00:00
Anthony Minessale c8ba03eec2 sofia tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-18 16:32:47 +00:00
Anthony Minessale 84a2bebb86 add nat buster flag to sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2742 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-18 14:30:12 +00:00
Anthony Minessale 41edf96fba experimental tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2725 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-17 21:57:20 +00:00
Anthony Minessale 555bd0af08 ok maybe this will fix the conditional mutext race we will readlock the session during any callbacks and cancel the operation if read_lock fails
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2709 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-16 00:43:58 +00:00
Anthony Minessale aa2a793e28 optimizations and disable the conditional thing till we see why it dies at 100cps X 800 calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2708 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-15 21:43:18 +00:00
Michael Jerris 9efc687d7a handle no channel gracefully.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2706 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-14 23:48:19 +00:00
Michael Jerris 9a91102fe0 move inside the if.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2705 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-14 23:05:27 +00:00
Anthony Minessale c79cd67dee no data means bad read
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2703 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-14 21:12:39 +00:00
Anthony Minessale 8a0e9ccf1f performance tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2693 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-14 00:15:03 +00:00
Michael Jerris 231c1d09f0 fix rtp destroy race.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2678 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-13 14:31:55 +00:00
Anthony Minessale 387fdc5311 add justinu's patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2670 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-12 22:24:39 +00:00
Anthony Minessale 56827bc9ec enhance timers and make rtp use it that way
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2669 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-12 22:23:45 +00:00
Anthony Minessale 1050a93c0f wild guess
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2570 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-08 03:28:49 +00:00
Anthony Minessale 52956d5cb1 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2554 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-07 15:08:40 +00:00
Brian West f34ed15ac2 adding a check for frame sizes so VBR codecs work correctly.. Should this be moved to the core instead?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2538 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-06 23:58:14 +00:00
Brian West 6b079d1404 Missing end tag
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-04 00:03:20 +00:00
Anthony Minessale 8543778b7c pack this mutha %^%$^&
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2483 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-02 23:04:25 +00:00
Brian West a31eb82d0b small tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2439 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-30 02:38:32 +00:00
Anthony Minessale ded7fa6c6f g726 work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2432 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 21:07:24 +00:00
Anthony Minessale c5b8547676 WIP
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2422 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 02:42:27 +00:00
Anthony Minessale 8cc23ab2ef update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2421 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 01:27:23 +00:00
Anthony Minessale c0849e1a40 fix stupidness
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2419 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-28 23:50:10 +00:00
Anthony Minessale 353f936095 tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-28 23:05:26 +00:00
Anthony Minessale 0c1e874de2 WIP
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-28 16:40:05 +00:00
Brian West d4da2570ea adding note
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2415 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-28 03:14:21 +00:00
Anthony Minessale f83a8ecf46 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2401 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-26 21:13:56 +00:00
Anthony Minessale 4bb6f96926 Adding mod_sofia to the tree so we can work on it easier....
I am not adding it to the examples or to the modules.conf because it's not really ready for that yet.
This is only 1.5 days old from scratch at this point but the brave hearted who want to play with it can do the following:

Add this to modules.conf:
-----------------------------------------------------------------------------
endpoints/mod_sofia
-----------------------------------------------------------------------------

Add this to freeswitch.xml in the configuration/modules.conf area
-----------------------------------------------------------------------------
<load module="mod_sofia"/>
-----------------------------------------------------------------------------

Add this to freeswitch.xml in the configuration section

-----------------------------------------------------------------------------
    <configuration name="sofia.conf" description="sofia Endpoint">
      <!-- You may have multiple profiles -->
      <profile name="test">
        <param name="rfc2833-pt" value="101"/>
        <param name="sip-port" value="5060"/>
        <param name="dialplan" value="XML"/>
        <param name="dtmf-duration" value="100"/>
        <param name="codec-prefs" value="PCMU"/>
        <param name="use-rtp-timer" value="true"/>
        <param name="rtp-ip" value="127.0.0.1"/>
        <param name="sip-ip" value="127.0.0.1"/>
        <!-- optional ; -->
        <!-- <param name="ext-rtp-ip" value="stun:stun.server.com"/>-->
        <!-- <param name="ext-rtp-ip" value="100.101.102.103"/> -->

        <!-- VAD choose one (out is a good choice); -->
        <!-- <param name="vad" value="in"/> -->
        <!-- <param name="vad" value="out"/> -->
        <!-- <param name="vad" value="both"/> -->
	<!--<param name="alias" value="sip:208.64.200.40:5555"/>-->
      </profile>
    </configuration>
-----------------------------------------------------------------------------

The call string to use profile test would be:

sofia/test/1000@1.2.3.4

as in:

<action application="bridge" data="sofia/test/1000@1.2.3.4"/>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2398 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-25 23:55:59 +00:00