1463 Commits

Author SHA1 Message Date
Michael Jerris
d246f3a07b add queue_dtmf application, takes one param, a string of dtmf that will be queued to send from the channel. You could use this in the dialplan before a bridge to queue up dtmf to be sent to the other channel for example if you need to dial digits after answer for an fxo ata device.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4085 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 20:06:23 +00:00
Anthony Minessale
a4d3d77871 fix conference parse bug
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4083 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 18:05:22 +00:00
Anthony Minessale
e02299f8f6 add tag to sipfrag notify packets re: pekka's advice
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4080 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 16:54:42 +00:00
Anthony Minessale
d783fc10c1 make sofia try harder to match the packet interval on codecs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4079 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 16:44:44 +00:00
Anthony Minessale
943105b06f few sofia cleanups complements of CtRiX (thanks for pointing them out)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4078 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 15:51:38 +00:00
Anthony Minessale
db70ef2a37 codec tweaks (do a make sure)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4077 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 15:43:41 +00:00
Brian West
fcb152104f this is the correct values
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4076 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 15:34:38 +00:00
Michael Jerris
b2016ca6ab fix session_record api interface param handling (from prof_HATE via irc)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4075 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 08:37:40 +00:00
Brian West
8d45c2e90a update to allow args to enum dialplan for lookups.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4074 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-28 21:43:00 +00:00
Anthony Minessale
0ed9ebe492 CODEC TWEAK
mod_sofia will now examine a variable in the channel to
see what the channel's originator was using for a codec and 
try to put that to the top of the list in the sdp.

if this new sofia profile param is set:
<param name="disable-transcoding" value="true"/>

All outbound calls will use *only* the codec that thier originator 
is using to ensure no transcoding.
(of course that could lead to a failed call where there is no way to do this, so use sparingly)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4073 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-28 17:37:51 +00:00
Anthony Minessale
781c74fc8e add stupid 2833 crap
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4070 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-28 02:38:52 +00:00
Anthony Minessale
e887d1a543 fix (part2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4069 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 18:26:17 +00:00
Anthony Minessale
4162f0e98f fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4068 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 18:23:30 +00:00
Anthony Minessale
b4e374af10 fix mute
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4067 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 16:37:10 +00:00
Anthony Minessale
85dab893d9 A few changes:
1) The xml_curl now has a more enterprise config where it can have more than 1
   url configured so you could have failover. (*note the syntax change*)

2) dialplan modules now take an extra arguement making it possible to pass runtime params to
   them.  This is now used in mod_dialplan_xml to allow an alternate file path to be specified.

   dialplans were already stackable meaning you can configure a sofia profile, for example,
   to use enum followed by the default XML dialplan.

   e.g. <param name="dialplan" value="enum,XML"/>

   From now on, you can also specify :param after each dialplan name to allow param
   to be passed to the module.  mod_dialplan_xml uses this param as a way to override
   where it looks for the dialplan making it possible to stack mutiple calls to the XML dialplan.

   e.g. <param name="dialplan" value="XML:/some/xml/file.xml,XML"/>

   With this you can search the local file file.xml first and if there is still no match
   the hunt will move on to the standard XML using the onboard XML registry and or the external
   gateways.

   *NOTE* this alternate path does not use the external bindings but it does parse the #includes etc.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4066 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 16:23:33 +00:00
Michael Jerris
f17eece9e3 fail the call when the best match is a codec with no name.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4065 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-27 04:45:54 +00:00
Anthony Minessale
f11f120a05 add sip_call_id variable to sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4062 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-26 21:12:19 +00:00
Anthony Minessale
00d7e70e2d fix cause code passthrough
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4061 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-26 20:39:45 +00:00
Anthony Minessale
c48449854d add more hint info to conference xml open
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4059 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-26 15:58:35 +00:00
Anthony Minessale
a4e967a097 add more hint info to conference xml open
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4058 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-26 15:48:58 +00:00
Anthony Minessale
a5bec02bea modest rearranging
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4057 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-26 15:42:38 +00:00
Anthony Minessale
4e75aa0b52 make conference_local_play_file honor the sound-prefix param
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4056 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-25 17:26:23 +00:00
Anthony Minessale
86bbb55e40 make reg freq 2 sec less than you actually say to avoid crossfire and make the minimum setting be 5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4055 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-25 14:56:32 +00:00
Anthony Minessale
b0eb04c065 Initial Check-In of mod_lumenvox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4052 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-25 00:19:41 +00:00
Anthony Minessale
8662ab4882 add some more dispositions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4051 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-24 20:52:42 +00:00
Michael Jerris
618d1ef698 who thought tolower should return int??
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4047 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 22:40:01 +00:00
Anthony Minessale
644131d0a2 add nonce TTL option to sofia to decide when nonce is stale
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4046 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 22:04:05 +00:00
Anthony Minessale
23e5477ab4 add via hack for portaudio
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4038 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 18:00:37 +00:00
Anthony Minessale
d00baf0d09 add flags command to control mute and deaf operations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4032 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 16:06:25 +00:00
Yossi Neiman
1a25d91044 Merged changes from my branch r4024.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4025 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 23:33:35 +00:00
Yossi Neiman
26bbed3d92 Commented out the CFLAGS in mod_cdr for using my apr_queue enhancements by default.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4023 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 22:08:13 +00:00
Yossi Neiman
c5d86f3e6f Merged changes in from my branch at r4020.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4022 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 22:03:56 +00:00
Michael Jerris
27ebcae63e add "freeswitch_api" in addition to "freeswitch.api" as xmlrpc method so it can work with java.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4019 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-22 18:18:48 +00:00
Anthony Minessale
151e400ebe let bgapi choose your own id
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4014 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-21 19:36:55 +00:00
Michael Jerris
204b8d2474 make r_sdp char * due to function w/ diff const qualifer.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4009 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-20 22:32:20 +00:00
Anthony Minessale
a4dd01a0ee add late negotiation mode for sofia
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4008 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-20 18:51:57 +00:00
Michael Jerris
788279608b "pa_dtmf" -> "pa dtmf" in api help text.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4007 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-20 00:22:43 +00:00
Anthony Minessale
16fce97f7a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 21:56:31 +00:00
Anthony Minessale
ccd944d52b minor tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4003 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 20:35:50 +00:00
Anthony Minessale
c845cf2839 auto ip stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4000 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 19:11:44 +00:00
Michael Jerris
680ef8d169 indications are that we can use mfence, lfence, sfence on x86_64, we will need to test and confirm this, but this should fix the build on 64 bit linux gcc at least. need testers to confirm this.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3998 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 12:49:10 +00:00
Michael Jerris
e5eba308ab use strchr instead of index as recommended by the linux man pages for portability.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3994 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 03:08:08 +00:00
Michael Jerris
23a744ad9d Initial windows build for new portaudio module, so far completely untested, it will NOT work on 64 bit and potentially problematic on SMP boxes still as I am building right now. This build currently uses only winmme, will follow up with better support for optionally building against direct sound, asio, and wasapi.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3993 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:45:58 +00:00
Anthony Minessale
d89c21fda4 a few twiax for early media (part 1)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3992 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:36:20 +00:00
Anthony Minessale
b25743c4d1 a few twiax to prevent a race condition
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3991 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:26:22 +00:00
Anthony Minessale
41541428fc minor tweaks on new portaudio stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3990 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-19 01:23:27 +00:00
Anthony Minessale
ed0524c2fc pre_answer only in ivr menus (you will have to actually answer yourself)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3987 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-18 16:06:04 +00:00
Anthony Minessale
5c802e3196 fix xml parser in ivr menus
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3986 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-18 15:44:01 +00:00
Anthony Minessale
832c48cb9b allow storage of a1 hash in user directory field 'a1-hash' trumps password field
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3983 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 22:42:52 +00:00
Anthony Minessale
39a9e94305 New mod_portaudio (sponspred by eWorldCom http://www.eworldcom.hu/)
This updates mod_portaudio to use the new v19 api and also contains
major behavioural changes.  This initial check-in should be tested to find
any obscure use cases that lead to crashes etc...

All of the old api interface commands are now depricated and any attempt to
use them should cause a polite warning asking you to try the new single "pa" command.

New Features:
*) Mulitiple calls with hold/call switching.
*) Inbound calls can play a ring file on specified device. (global and per call)
*) Optional hold music for backgrounded calls. (global and per call)


Example dialplan usage:

<extension name="2000">
  <condition field="destination_number" expression="^2000$">
    <!--if the next 3 lines are omitted the defaults will be used from portaudio.conf-->
    <action application="set" data="pa_ring_file=/sounds/myring.wav"/>
    <action application="set" data="pa_hold_file=/sounds/myhold.wav"/>
    <action application="set" data="export_vars=pa_ring_file,pa_hold_file"/>
    <action application="bridge" data="portaudio"/>
  </condition>
</extension>


Example API interface usage:

call extension 1000
> pa call 1000

call extension 1001 putting the other call on hold
> pa call 1001

swap the calls between hold and active
> pa switch

view the current calls
> pa list

forground the call with id 1 
> pa switch 1

background all calls
> pa switch none

send a dtmf string (1234) to the current call
> pa dtmf 1234

answer the oldest unanswered inbound call
> pa answer

answer the call with id 1
> pa answer 1

hangup the active call
> pa hangup

hangup the call with id 1
> pa hangup 1

get device info
> pa dump

print usage summary
> pa help


USAGE:
--------------------------------------------------------------------------------
pa help
pa dump
pa call <dest> [<dialplan> <cid_name> <cid_num> <rate>]
pa answer [<call_id>]
pa hangup [<call_id>]
pa list
pa switch [<call_id>|none]
pa_dtmf <digit string>
--------------------------------------------------------------------------------

The source of the portaudio v19 library will also be checked in for the 
sake of the build system.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3981 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-17 19:10:03 +00:00