1224 Commits

Author SHA1 Message Date
Anthony Minessale
741b8329b9 Modifying the behaviour of the dialplan engine
the 'data' field in action tags may now refer to variables and api functions
to be expanded at runtime.

Syntax:

$varname
${varname}
&func_name(func args)


Exception:
variables that are numeric are still expanded at dialplan compile time based on the regex eg $1 $2 etc

Example:

<extension name="1000">
  <condition field="destination_number" expression="^(1000)$">
    <action appplication="my_route_app" data="$1"/>
    <action appplication="bridge" data="$destination"/>
  </condition>
</extension>

Here the $1 is ecaluated before the call begins setting it to 1000 based on the regex ^(1000)$
$destination is evaluated on the fly in execution once the my_route_app has run and has had a 
chance to set the variable 'destination' to the correct value.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-07 19:54:04 +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
Michael Jerris
0fbdfb60b4 update usage descriptions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2983 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-05 20:49:09 +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
d80ce73564 umm, yeah, when it's dynamic, and there are no members, let's go ahead and ummmm exit the thread, mmmkay?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2966 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-03 18:02:23 +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
Michael Jerris
bddb61709a typo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2941 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 04:25:41 +00:00
Michael Jerris
5ecbe8b168 make this build in a few more places for now. This still needs proper autoconf detection for mysql.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2940 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 04:19:04 +00:00
Michael Jerris
cba33ca50a make this build in a few more places for now. This still needs proper autoconf detection for mysql.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2939 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 04:11:22 +00:00
Michael Jerris
f9cec9f371 enable passthrough build of g732_1 and g729 codecs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2934 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-02 03:00:37 +00:00
Michael Jerris
13e67a89e7 don;t think we need sqlite support in sndfile, and it was causing build issues on some freebsd boxes for some reason.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2912 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-01 04:32:52 +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
9f044c701d adios to exosip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2900 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 19:16:40 +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
Michael Jerris
fbb8c54daa add include dir for bnf.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 00:02:56 +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
9da136af12 Adding this for sofia on OS X
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2870 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 18:16:57 +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
db2be393cf fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2868 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 14:15:06 +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
Michael Jerris
1dfd6885db add ws2_32.lib library for gethostname
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2856 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-28 17:34:44 +00:00
Michael Jerris
7805761afd types change for msvc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-28 01:39:42 +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
bdd1566e7d use newest sofia with reg patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2850 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-27 19:28:53 +00:00
Anthony Minessale
e561fa1c25 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2849 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-27 17:15:17 +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
3f59051b0a close the xml handle
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2840 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-27 00:50:38 +00:00
Michael Jerris
f11b1609f1 fix windows line endings... thanks Mr.B for the report.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2838 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-26 14:06:37 +00:00
Anthony Minessale
18a7339d8a remove potential buffer overrun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2833 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-25 20:04:40 +00:00