Commit Graph

118 Commits

Author SHA1 Message Date
Anthony Minessale
2df583650f cleanup some stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4498 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 23:51:52 +00:00
Michael Jerris
f359f847f7 fix magic emacs and vi formatting comments in the bottom of our source files to use tabs instead of spaces
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4176 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-02-09 02:36:03 +00:00
Anthony Minessale
39119eb7a7 fix dingaling reject
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4087 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-01-29 22:22:29 +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
265268cccd fix issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3861 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-28 20:05:38 +00:00
Anthony Minessale
fc85d8aa21 xmas presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3719 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-19 17:29:33 +00:00
Anthony Minessale
b7af6d4def hmm i wonder why i was so against fucking with the build system
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3710 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-19 01:02:17 +00:00
Michael Jerris
933e30dd96 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3661 d0543943-73ff-0310-b7d9-9358b9ac24b2 2006-12-14 22:45:30 +00:00
Anthony Minessale
322ecbbb9b tweak to jingle
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3624 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-12 17:44:59 +00:00
Anthony Minessale
2986cee258 sigh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3513 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-02 02:13:15 +00:00
Anthony Minessale
90ddec83d9 tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3493 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-30 15:27:37 +00:00
Michael Jerris
44649c70b4 Add magic comments for emacs and vi in source and header files to properly format and display tabs vs. spaces in those editors:
/* For Emacs:
 * Local Variables:
 * mode:c
 * indent-tabs-mode:nil
 * tab-width:4
 * c-basic-offset:4
 * End:
 * For VIM:
 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
 */


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3462 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-27 22:30:48 +00:00
Michael Jerris
fc03e90da4 silence silly warning on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-19 01:21:44 +00:00
Anthony Minessale
ff4d2b3dcc pesky interop
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 19:28:05 +00:00
Anthony Minessale
9415cdcacb update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3385 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 16:10:39 +00:00
Anthony Minessale
594ccf8bb8 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-16 15:50:17 +00:00
Anthony Minessale
6013035a6c update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3380 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 20:21:29 +00:00
Anthony Minessale
1fc5fd0e14 inherited 64bit bug curses to unsigned long
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3374 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-15 00:15:38 +00:00
Anthony Minessale
3c20f80991 dox
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3292 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-09 06:55:18 +00:00
Anthony Minessale
1167541063 build stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3287 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-11-09 05:31:29 +00:00
Anthony Minessale
305bc19458 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3199 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-25 17:00:23 +00:00
Anthony Minessale
10ead46ffd update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3181 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-24 18:50:52 +00:00
Anthony Minessale
aba9c77c35 your run-of-the mill nightmarish attempt at normalizing not one crazy protocol but many....
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3151 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-22 04:37:19 +00:00
Anthony Minessale
4770a54d37 strip html till we figure it out
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3129 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 00:59:51 +00:00
Anthony Minessale
747ab41f78 bs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3118 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 06:44:58 +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
Anthony Minessale
12243c194e tidy up, note yesterday's propagate_vars was changed to export_vars
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3106 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 16:33:54 +00:00
Michael Jerris
faf7cd383b add new sha1 code on windows build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3089 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 01:21:43 +00:00
Michael Jerris
f64ae18ac6 add endian defines on MSVC
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3088 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 01:21:17 +00:00
Anthony Minessale
dba1b9b7a1 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3085 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 00:17:47 +00:00
Anthony Minessale
70bfba5b63 Christmas Presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3083 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-18 22:57:35 +00:00
Michael Jerris
5148aa2da6 up the warning level.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3072 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-17 21:56:45 +00:00
Anthony Minessale
ba46200539 refactoring and general improvement (do a make sure)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3035 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-12 00:59:09 +00:00
Michael Jerris
d1ab8a446f type tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2917 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-01 21:44:49 +00:00
Michael Jerris
b2392afa2f add ldl_session_accept_candidate and ldl_session_send_msg to the def file.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2366 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 21:32:23 +00:00
Michael Jerris
14d79cf500 Windows build tweaks.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2352 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-21 22:48:01 +00:00
Anthony Minessale
4f17ab7714 bunch of tweaks to make ivr more fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2350 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-21 19:14:51 +00:00
Anthony Minessale
89e62d8c56 google part 1000
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2330 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 21:02:40 +00:00
Anthony Minessale
6ccb60c25c last round of google cleanup rebuild libdingaling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2327 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 18:44:11 +00:00
Anthony Minessale
47192db741 Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues.
codecs need more work...

Expose events into javascript so you can create and fire events and 
and pick up chat events with chat-enabled clients like googletalk
EXAMPLE:

session.answer();

e = new Event("custom", "JS::Custom");
e.addHeader("subject", "cool");
e.addBody("hello this is a test");
e.fire;

while(session.ready()) {
    session.execute("sleep", "1000");
    event = session.getEvent();
    if (event) {
      str = event.serialize(); // or ("xml")
      console_log("debug", "Dump Event:\n" + str + "\n");


        e = new Event("custom", "JS::Chat");
        e.addHeader("works", "yes");
        e.addBody("you said: " + event.getBody());
        session.sendEvent(e);
      event.destroy();
    }
}





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 01:28:50 +00:00
Michael Jerris
d066dca08e fix signedness issue and strlen to uint32_t cast
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-13 05:09:29 +00:00
Anthony Minessale
45f49eccbe update roster nonsense
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2272 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-12 17:09:11 +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
Anthony Minessale
988841611a dingaling tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1660 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-06-22 21:57:40 +00:00
Michael Jerris
10ae6c32c7 add new functions.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1347 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-04 15:56:00 +00:00
Anthony Minessale
83edba5385 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1345 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-04 15:37:06 +00:00
Anthony Minessale
49e7b1bbca update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1344 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-04 14:37:11 +00:00
Anthony Minessale
ccbf0b5544 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1334 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-03 23:54:30 +00:00
Anthony Minessale
c7e5e47ab6 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1332 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-03 20:08:38 +00:00
Anthony Minessale
00219ede9d update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1331 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-03 19:02:33 +00:00
Anthony Minessale
3252e6ef68 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1330 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-03 18:43:57 +00:00
Anthony Minessale
5ad8162dbf update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1329 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-03 18:41:14 +00:00
Anthony Minessale
397bf1bffc change dingaling to break everybody
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1318 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-02 16:43:13 +00:00
Michael Jerris
1349bbff39 add function from rev 1312 ldl_handle_send_msg to def file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1314 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-01 19:47:07 +00:00
Anthony Minessale
607109bfaa update to dingaling (rm ./libs/libdingaling/.complete
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1312 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-05-01 18:55:04 +00:00
Michael Jerris
fd7bf0eaaa update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1171 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-15 22:30:25 +00:00
Anthony Minessale
5d47cffc28 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1162 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-15 05:00:51 +00:00
Anthony Minessale
0e0e1e3673 make dingaling need talk in the resource to clear up collisions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1159 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 18:10:24 +00:00
Michael Jerris
f6dba5de97 add new function ldl_global_set_logger
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1154 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 14:13:28 +00:00
Michael Jerris
d6d313884e update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1148 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 03:04:53 +00:00
Anthony Minessale
cb28473398 add logger
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1147 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-14 02:05:29 +00:00
Brian West
559b8ab26c Gut Logger and put it back modular style
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1117 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-11 21:13:44 +00:00
Anthony Minessale
46febe98bc add missing byte to dingaling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1072 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-06 23:31:01 +00:00
Michael Jerris
0fe4db12d0 move stun to the core
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1038 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-04 16:50:35 +00:00
Anthony Minessale
4fa64dd6d2 a stunning new change
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1036 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-04 16:07:40 +00:00
Michael Jerris
1e37c413ff add new function to def
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1003 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-04-01 01:37:59 +00:00
Anthony Minessale
2e02468fa3 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@997 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-31 21:42:36 +00:00
Anthony Minessale
a3e7b59de6 Addition of libdingaling and mod_dingaling to enable jingle support
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@995 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-03-31 19:38:09 +00:00