Commit Graph

137 Commits

Author SHA1 Message Date
Brian West 313805ee11 lets not have a register in the default config \;)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4705 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-21 02:47:58 +00:00
Anthony Minessale 31656e019d retool the sofia outbound registration syntax and dialstring syntax for said registrations ***ATTENTION*** syntax has heavily changed and the former syntax removed completely
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4669 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 21:09:53 +00:00
Anthony Minessale ce25ea7b20 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4655 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-19 14:48:45 +00:00
Brian West 26c4c9f473 add cdr conf example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4573 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-12 18:54:06 +00:00
Anthony Minessale bf086ff6f9 update conf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4431 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-02 19:18:17 +00:00
Anthony Minessale a99973ca7c add colorize option to mod_console (see in-tree conf/console.conf.xml)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-28 18:28:07 +00:00
Anthony Minessale 5090abc9cf update conference to have waste mode for naughty providers
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4399 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-26 18:33:01 +00:00
Anthony Minessale a080949e8f add small demo mod to dump xml call detail reports until we work it into mod_cdr ./configure or manually mkdir /usr/local/freeswitch/log/xml_cdr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4290 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-15 19:46:37 +00:00
Michael Jerris d5f77e14d1 add mod_say_en to load by default.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-14 04:30:14 +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
Anthony Minessale f1ef145bcf wanpipe update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-07 23:43:04 +00:00
Anthony Minessale 8ae5585824 dft config update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4143 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-07 00:49:56 +00:00
Anthony Minessale d863d8dac9 update default conf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4104 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-31 21:56:57 +00:00
Michael Jerris ee16b51a42 fix typo double >, fix via e-mail from Bret McDanel.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4082 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 17:53:07 +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 066807ed52 tweak default conf for better first experience
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4071 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-28 03:05:20 +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
Anthony Minessale d866c0fef8 fix typo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4050 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-24 20:28:54 +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 211cac30b5 fix typo (ya ya very funny)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4040 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 18:22:42 +00:00
Anthony Minessale e47b8edeb3 add original combined conf as an example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4031 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 14:39:56 +00:00
Anthony Minessale 3241200072 xml preprocessor (calling all documentors and default config composers!!)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4026 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-23 01:12:47 +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
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
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
Anthony Minessale e37559eb0e update conference to add lock sounds, sound prefix, and use say: syntax
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3943 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-11 18:14:02 +00:00
Anthony Minessale 6aaedb918c update phrase interface
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3901 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-03 16:43:59 +00:00
Anthony Minessale 57c0d4bdc9 add strepoch api call and more say stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3900 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-03 00:50:11 +00:00
Anthony Minessale bcd1cab882 update example conf to show sofia inbound-no-media param
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3867 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-29 03:55:21 +00:00
Michael Jerris 0dd04e9308 tweak comments.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3831 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-26 16:04:03 +00:00
Michael Jerris d53878f39d add conference caller control example.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-26 15:48:35 +00:00
Anthony Minessale b6721ed4ed add config samples for phrase wip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3808 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-22 22:40:10 +00:00
Anthony Minessale b7dbea6407 add pelim say stuff, module framework, xml parser, dialplan app, and add new channel var called sound_prefix for audio files
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3766 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-20 21:25:14 +00:00
Anthony Minessale 4254ae7008 add example config re: auth to xml_curl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3650 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-14 15:13:01 +00:00
Anthony Minessale 5a8db2cf1b update config
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3630 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-12 20:46:25 +00:00
Anthony Minessale 5daa2313a6 formatting
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3605 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-11 19:02:14 +00:00
Anthony Minessale 01ddfdcba5 separate xml gateway code from mod_xml_rpc into it's own mod_xml_curl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3592 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-10 02:02:30 +00:00
Justin Cassidy 8df4913d01 Updating FreeSWITCH services in default configuration file. My yearly commit really... :D
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3577 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-08 04:25:19 +00:00
Michael Jerris da95d6ef8f Example config for the new ivr application.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3531 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-04 12:41:03 +00:00
Anthony Minessale af5336563a add odbc support to javascript
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3514 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-02 02:41:24 +00:00
Anthony Minessale 60434decf5 ENUM Support
mod_enum can be used as a dialplan app, an api call from the console or as a dialplan interface.


Dialplan Interface:
put enum as the dialplan parameter in an endpoint module
i.e. instead of "XML" set it to "enum" or "enum,XML" for fall through.

Dialplan App:
This example will do a lookup and set the a variable that is the proper
dialstring to call all of the possible routes in order of preference according to 
the lookup and the order of the routes in the enum.conf section.

<extension name="tollfree">
  <condition field="destination_number" expression="^(18(0{2}|8{2}|7{2}|6{2})\d{7})$">
    <action application="enum" data="$1"/>
    <action application="bridge" data="${enum_auto_route}"/>
  </condition>
</extension>

You can also pick an alrernate root:
<action application="enum" data="$1 myroot.org"/>	


API command:
at the console you can say:
enum <number> [<root>]

The root always defaults to the one in the enum.conf section.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 21:28:32 +00:00
Anthony Minessale d7baa16132 Ringback (sponsored by Front Logic)
This addition lets you set artifical ringback on a channel
that is waiting for an originated call to be answered.

the syntax is 

<action application="set" data="ringback=[data]"/>

where data is either the full path to an audio file
or a teletone generation script..


syntax of teletone scripts

LEGEND:

0-9,a-d,*,# (standard dtmf tones)

variables: c,r,d,v,>,<,+,w,l,L,%

c (channels)        - Sets the number of channels.
r (rate)            - Sets the sample rate.
d (duration)        - Sets the default tone duration.
v (volume)          - Sets the default volume.
> (decrease vol)    - factor to decrease volume by per frame (0 for even decrease across duration).
< (increase vol)    - factor to increase volume by per frame (0 for even increase across duration).
+ (step)            - factor to step by used by < and >.
w (wait)            - default silence after each tone.
l (loops)           - number of times to repeat each tone in the script.
L (LOOPS)           - number of times to repeat the the whole script.
% (manual tone)     - a generic tone specified by a duration, a wait and a list of frequencies.

standard tones can have custom duration per use with the () modifier
7(1000, 500) to generate DTMF 7 for 1 second then pause .5 seconds

EXAMPLES

UK Ring Tone [400+450 hz on for 400ms off for 200ms then 400+450 hz on for 400ms off for 2200ms]
%(400,200,400,450);%(400,2200,400,450)

US Ring Tone [440+480 hz on for 2000ms off for 4000ms]
%(2000,4000,440,480)

ATT BONG [volume level 4000, even decay, step by 2, # key for 60ms with no wait, volume level 2000, 350+440hz {us dialtone} for 940ms
v=4000;>=0;+=2;#(60,0);v=2000;%(940,0,350,440)

SIT Tone 913.8 hz for 274 ms with no wait, 1370.6 hz for 274 ms with no wait, 1776.7 hz for 380ms with no wait
%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)

ATTN TONE (phone's off the hook!) 1400+2060+2450+2600 hz for 100ms with 100ms wait
%(100,100,1400,2060,2450,2600)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3408 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:05:06 +00:00
Anthony Minessale 4e1d518c0e spidermonkey has it's own loadable modules now good luck
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3307 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-10 21:49:57 +00:00
Anthony Minessale 71043450c7 A change has been made to the user directory.
the <param> tags that was in the <user>
are now nested in thier own <params> tag.


Also when using dingaling in component mode you can add a <vcard> to the
user that will be deliverd when requested when using an id like 

user+stpeter@jabber.org assuming the comonent subdomain is jabber.org





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3152 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-22 04:49:46 +00:00
Michael Jerris 458b6012a2 fix typo profile->profiles, unmatched tag.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3117 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 06:28:39 +00:00
Anthony Minessale 3a32d9e53c Presence and Chat Gateway Code
This is some brand new stuff to gateway chat/presence/audio from one protocol to another
So far it only works between google/jingle and SIP

All I had to test the SIP end was X-Lite and Eyebeam and GoogleTalk on the jingle end.

With this setup registered X-Lite's can chat with each other and call each other 
as well as X-Lite to GoogleTalk and GoogleTalk to X-Lite audio calls.

Chat May also be done between X-Lite and jabber 

You'll also need a jabber server configured for component login so you can interface.
We have only tested with jabberd2 so far.

Configure DNS so srv records for jabber for your subdomain (fs.mydomain.com in the example)
so the jabber records are pointed at your jabber server.

RELEVANT CONFIGS

<!-- Brian has no jingle support so send calls to him over to his iax url -->
<extension name="bkw">
  <condition field="destination_number" expression="^jingle\+brian@agents.cylynx.com$">
    <action application="bridge" data="iax/guest@brianwest.homeunix.org/9184290404"/>
  </condition>
</extension>

<!-- Assumption is made here that both sip and jingle have the same profile/domain name as documented below -->

<extension name="jingle2sip">
  <condition field="source" expression="mod_dingaling"/>
  <condition field="destination_number" expression="^sip\+([^\@]+)\@(.*)$">
    <action application="bridge" data="sofia/$2/$1%$2"/>
  </condition>
</extension>

<extension name="sip2jingle">
  <condition field="source" expression="mod_sofia"/>
  <condition field="destination_number" expression="^jingle\+([^\@]+)\@(.*)$">
    <action application="bridge" data="dingaling/sip+${sip_fromuser}@${sip_fromhost}/$1@$2"/>
  </condition>
</extension>


<configuration name="sofia.conf" description="sofia Endpoint">
  <global_settings>
    <param name="log-level" value="0"/>
  </global_settings>

  <profiles>
    <profile name="fs.mydomain.com">
      <registrations/>
      <settings>
	<param name="debug" value="1"/>
	<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="codec-ms" value="20"/>
	<param name="accept-blind-reg" value="true"/>
	<param name="manage-presence" value="true"/>
	<!--<param name="full-id-in-dialplan" value="true"/>-->
	<!--<param name="auth-calls" value="true"/>-->
	<!--<param name="auth-all-packets" value="true"/>-->
	<param name="use-rtp-timer" value="true"/>
	<param name="rtp-timer-name" value="soft"/>
	<param name="rtp-ip" value="100.200.100.200"/>
	<param name="sip-ip" value="fs.mydomain.com"/>
      </settings>
    </profile>
  </profiles>

</configuration>


<configuration name="dingaling.conf" description="XMPP Jingle Endpoint">
  <settings>
    <param name="debug" value="0"/>
    <param name="codec-prefs" value="PCMU"/>
  </settings>

  <profile type="component">
    <param name="name" value="fs.mydomain.com"/>
    <param name="password" value="secret"/>
    <param name="dialplan" value="XML"/>
    <param name="rtp-ip" value="208.64.200.42"/>
    <param name="server" value="jabber.freeswitch.org:5347"/>
    <!-- disable to trade async for more calls -->
    <param name="use-rtp-timer" value="true"/>
    <param name="exten" value="_auto_"/>
    <!--<param name="vad" value="both"/>-->
  </profile>

</configuration>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3115 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 06:17:00 +00:00
Michael Jerris 48a8cd0786 comment registration in default config so all new builds don't try to reg.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3077 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-18 17:18:16 +00:00
Anthony Minessale efd246babd add auto-reply option to dingaling to allow the gateway bot to auto-reply to chat msgs recieved outside the context of a call
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3041 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-12 14:06:09 +00:00
Michael Jerris efc894b6dd reformat sample conf, remove exosip references
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2906 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-01 00:21:06 +00:00
Anthony Minessale 62e2b843ee adios to exosip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2901 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 19:16:55 +00:00