Commit Graph

102 Commits

Author SHA1 Message Date
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
Michael Jerris
42cf3fd934 add some missing modules to the sample config.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-30 07:25:58 +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
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
a2683555d6 update defaults
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2867 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-29 13:00:28 +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
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
Michael Jerris
64ec761798 fix timer name.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2836 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-26 00:00:55 +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
Anthony Minessale
f385b33813 change woomera defaults
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2677 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-13 13:41:35 +00:00
Michael Jerris
5b8c50e01c comment out dev conf in the sample config, people can use 1234 to test, I will change the getting started guide.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2529 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-06 03:06:25 +00:00
Michael Jerris
d2a705c639 disable this for now as it acts as a catch all for bad dials.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2465 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-31 01:40:27 +00:00
Michael Jerris
68b9629fe7 add music test extension to the sample config.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2464 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-31 01:16:37 +00:00
Brian West
1726f14557 add sofia to default config file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2427 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-29 16:31:55 +00:00
Anthony Minessale
d8703f5bd2 change conference
no more <rooms>
rooms will just be created on the fly.

<action application="conference" data="myconf@myprofile+1234"/>

+1234 is optional on-the-fly pin





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-24 02:22:57 +00:00
Anthony Minessale
07a7b6e54a update dingaling to be able to use TLS jabber servers such as googletalk
see sample config for new options.

the dingaling library has changed so you must rebuild it 
rm libs/libdingaling/.complete
make installall



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-11 00:24:38 +00:00
Michael Jerris
1228090736 update trixtel regex to work better
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2195 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-28 04:57:58 +00:00
Anthony Minessale
9c79c2a3fb Add mod_event_socket remote client module and sample client.
To Test:

uncomment or add from modules.conf
make installall again to compile it
uncomment the load line from freeswitch.xml

the default values are to bind to 127.0.0.1 port 8021

telnet to port 8021
enter "auth ClueCon" to authenticate

from here you can do the following:
*) events [xml|plain] <list of events to log or all for all>
*) noevents 
*) log <level> // same as the console.conf values
*) nolog
*) api <command> <arg>
*) exit

there is a perl client in scripts/socket called fs.pl

with the module up and loaded:
cd scripts/socket
perl fs.pl <optional log level>

you can enter a few api commands like "show or status"




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2047 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-22 21:49:52 +00:00
Anthony Minessale
240b5439fe make mod_portaudio start by default
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2008 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-20 03:38:27 +00:00
Anthony Minessale
4aa4687836 update example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1979 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-19 13:29:03 +00:00
Anthony Minessale
e73ee221d2 add mod_dptools, for set variable and sleep from the dialplan
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1864 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-13 13:20:20 +00:00
Anthony Minessale
c36145e58b update config
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1820 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-10 22:27:15 +00:00
Anthony Minessale
b63a0c80d2 duh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 19:07:41 +00:00
Anthony Minessale
47b3010ce7 fix param names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1789 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 19:07:07 +00:00
Anthony Minessale
b5a19020f7 add session counter and make all sessions hang up elegantly on shutdown
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1788 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 18:59:14 +00:00
Anthony Minessale
ecb7c08923 Add volume, gain and energy controls.
DTMF:
1 = volume down
2 = volume default
3 = volume up
4 = gain down
5 = gain default
6 = gain up
7 = energy level down
8 = energy level default
9 = energy level up
* = toggle mute + deaf
0 = toggle mute
# = quit 

new api commands to adj volume, gain and energy



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1787 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-07 16:47:20 +00:00
Anthony Minessale
ee5e2e0994 add a new software conference module (mod_conference)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1770 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-07-06 20:12:53 +00:00
Michael Jerris
97eb607fcd fix toll free regex
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1644 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-17 17:09:25 +00:00
Anthony Minessale
ae81787816 ivr stuff (part 3)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1575 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-08 19:31:12 +00:00
Anthony Minessale
9a43ccab24 add mod_rss
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1551 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-06 23:07:37 +00:00
Anthony Minessale
cd3e5e83c2 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1548 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-06 16:22:08 +00:00
Michael Jerris
d16e0faea7 add toll free termination to the default sample dialplan.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1546 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-06 02:52:26 +00:00
Anthony Minessale
0019a2df8b add auth to xmlrpc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1530 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-01 17:16:15 +00:00
Anthony Minessale
160fe134e6 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1526 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-30 17:47:07 +00:00
Anthony Minessale
baa257f2fe update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1513 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-27 00:24:32 +00:00
Anthony Minessale
ab3f42c9c4 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1508 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-26 16:00:08 +00:00
Anthony Minessale
75c0ab62b2 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-24 16:16:03 +00:00
Anthony Minessale
79dcf1969a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1499 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-24 16:10:05 +00:00
Michael Jerris
31ee0d59fc normalize configuration parameters to use - instead of _.
Break everybody's configuration.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1475 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-16 17:08:21 +00:00
Anthony Minessale
9def695568 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1452 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 21:19:42 +00:00
Anthony Minessale
ce4b769c8a update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1451 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 21:13:54 +00:00
Anthony Minessale
6c0016864c update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1450 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 20:11:54 +00:00
Anthony Minessale
050b05861c format
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1447 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 19:36:05 +00:00
Anthony Minessale
d53d9d3997 rearrange some things please see conf/freeswitch.xml as there is a significant change to the conf that will break your stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1446 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 19:28:21 +00:00
Anthony Minessale
1dfa2ce576 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1443 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 13:46:18 +00:00
Anthony Minessale
3c3df4df3d update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1440 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-12 01:13:55 +00:00
Anthony Minessale
97376c095e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1405 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 03:51:35 +00:00
Anthony Minessale
93666f6dd7 XMLification (wave 1)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1401 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-10 03:23:05 +00:00