Commit Graph

1842 Commits

Author SHA1 Message Date
Paul Tinsley 900ad177d6 Rework of Filter's handling of the socket with freeswitch, the previous implementation was a serious cheat. We now properly handle the Content-Length tag and go out of line based mode and into length mode.
Also updated the console to show replies to commands.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3168 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-23 20:47:22 +00:00
Michael Jerris 39df1481c2 move to new sofia tarball for windows build, this new tarball includes fix for build w/o glib on *nix, fix for segfault on cancel during early media, and proper implementation of handing subscribe and publish requests up to the application (removes our private hacks to enable this behavior).
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3167 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-23 20:39:48 +00:00
Anthony Minessale b30eb82b84 new sofia rollout
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3166 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-23 20:28:55 +00:00
Anthony Minessale d1965b701c let log and event work
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3165 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-23 17:40:26 +00:00
Anthony Minessale 776919d5fd tweeks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3164 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-23 17:34:03 +00:00
Michael Jerris af23ce4853 whitespace cleanup.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3158 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-22 17:44:41 +00:00
Michael Jerris 1cd8709762 add "all" member target for vol and energy commands, fix init of len for record.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3157 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-22 17:07:28 +00:00
Michael Jerris 90fe19867c initialize to null so we can check for null before we free.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3156 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-22 15:46:23 +00:00
Michael Jerris 49a130962c code before declaration
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3155 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-22 15:46:01 +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
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
Michael Jerris 1bc0db0db6 clarify in mod_skel. (thanks knhor).
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3144 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 23:02:36 +00:00
Michael Jerris d0f877a32f Make record only end the application, and not hangup the call on * (thanks knhor).
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3143 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 23:01:58 +00:00
Michael Jerris dd5d73742a add ability to specify member "all" on conference api commands taking a member (thanks knhor).
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3142 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 23:01:17 +00:00
Michael Jerris ae717d3be1 add sqlite to mod_conference linking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3141 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 23:00:18 +00:00
Anthony Minessale f4b25c70b4 add viles patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3140 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 22:54:55 +00:00
Anthony Minessale b2f9fae6d1 conference recording
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3139 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 21:19:40 +00:00
Anthony Minessale 1f29ce2749 add some more nifty stuff and fix a bug or 2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3134 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 04:58:15 +00:00
Anthony Minessale 7e61bcf9bb fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3133 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 03:19:48 +00:00
Michael Jerris beb4922646 fix typo, thanks knhor
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3132 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 01:33:23 +00:00
Michael Jerris 796ed1813e tweak warning level up.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3131 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 01:32:11 +00:00
Anthony Minessale 59f3204d61 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3130 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-21 01:20:46 +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 a67dc0aab6 fix
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3126 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 22:26:06 +00:00
Anthony Minessale 343fd5cea5 refactor the presence stuff and add it to mod_conference
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3124 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 22:11:26 +00:00
Anthony Minessale db2753b78a this ascii 20 ' ' sponsored by Matt Klein aka Vile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3122 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 13:32:44 +00:00
Anthony Minessale 003f33e409 *WARNING* delete /usr/local/freeswitch/db/* cos the schema has changed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3121 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 07:35:55 +00:00
Anthony Minessale 26fa772094 update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3120 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 07:34:08 +00:00
Anthony Minessale 4943c5939f another step closer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3119 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 06:55:30 +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
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
Paul Tinsley bb5b51dfbe Initial checkin of the POE::Filter::FSSocket module and fsconsole.pl which is a curses, multi-window console for freeswitch mod_event_socket. See http://search.cpan.org/~ptinsley/POE-Filter-FSSocket-0.04/lib/POE/Filter/FSSocket.pm for more info on the perl module.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3116 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 06:20: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 e70a025a88 fix segfault?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3114 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 05:45:52 +00:00
Paul Tinsley eaf4409b45 Fix for broken trunk commit, setting contact_str size to the size of sql variable it's stored in [contact VARCHAR(1024)] + 1 for the null.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3113 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-20 03:33:49 +00:00
Anthony Minessale b9a215313d update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3112 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 19:39:18 +00:00
Anthony Minessale ce984a90fe present from tony
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3111 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 19:09:51 +00:00
Anthony Minessale 858cc7fa19 present from pdt
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3110 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 18:52:46 +00:00
Michael Jerris e6b81ff14a remove useless comment.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3109 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 17:09:48 +00:00
Michael Jerris 87aaab80d5 Get Alert-Info from inbound invite and set to the channel variable so that it can be passed through to the other end of the call if it is a sip call.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3108 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 17:04:58 +00:00
Michael Jerris c1f346b99e change to switch_mprintf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3107 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 16:42:41 +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 f33768085a tweak up another warning level.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3105 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 16:10:46 +00:00
Michael Jerris 9d52ec2ae1 add Alert-Info: Thanks Ken.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3104 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 16:10:24 +00:00
Anthony Minessale 99e22d69bd refactor earlier junk from this eve and add ken's propagate variable thing
set this sometime before an origination (bridge etc).

<action application="set" data="propagate_vars=my_cool_var1,my_cool_var2,foo,bar"/>

and they should be cloned over to the new channel when it's substantiated



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3101 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 07:13:34 +00:00
Michael Jerris 80f91a5824 add xmlcdr to windows build of mod_cdr.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3100 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 06:30:15 +00:00
Michael Jerris e415095df3 up the msvc warning level on srtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3099 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 06:29:49 +00:00
Michael Jerris 25273b6d9d add XmlCDR (like pddcdr, but xml format). Thanks ken for another great contribution.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3093 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 03:51:46 +00:00
Michael Jerris 3eb8ebd45c fix windows build from recent changes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3091 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-10-19 01:28:29 +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