Hello,
during last weeks while testing the kamailio (openser) modules with
sip-router core I got x-lite 3.0 working on linux (ubuntu) with wine
1.1.20. I posted guidelines at:
http://appdb.winehq.org/objectManager.php?sClass=version&iId=16413
Voice, IM&Presence seem to work just fine. Video was not tested as I
couldn't make any wine application see the video cam, although it is
working fine on linux with skype or ekiga. For me it is a great tool to
test the presence, hope it will be useful for some of you as well.
Apart of x-lite, I got other sip softphone working with wine:
- pangolin - works fine, but the presence status changes are not sent to
server (no PUBLISH) -- might be a bug in the software, maybe someone
running it on windows can confirm it or not
- zoiper communicator rc1 free edition for windows - linux version seems
to be available now, but requires to register with their site
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com/
Hello,
Automatically generated HTML documentation from docbook documents stored in
the git repository is available at
http://sip-router.org/docbook/sip-router/branch/master/
This is all the docbook documentation that we currently have in the
repository, including the documents under doc, modules, modules_k, modules_s,
and lib subdirectories.
The HTML documentation is updated automatically upon changes in the git
repository. The script processes all directories that contain a Makefile with
the string "docbook_dir" in it. If you add a new directory with docbook
documentation anywhere in the git repository then add a Makefile in the
directory that can be used to build the documentation and your documentation
will be automatically converted to HTML and uploaded to the server.
We do not have fancy stuff like module lists or documentation index yet. Also
the CSS stylesheets need some changes to produce better-looking HTML pages and
images are missing if they were included in a docbook document.
We can address that later.
Jan.
Module: sip-router
Branch: master
Commit: d5ceae609414dbbc81052abdc1f4b74066d84b98
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d5ceae6…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed May 13 22:11:18 2009 +0200
docbook: Fixed docbook dependency generator
Previous version of the XSL stylesheet that is used to generate dependencies
for docbook documents did not work properly with docbook files included from
other directories, it did not make dependencies relative to the top-level
file being processed, resulting in dependency files that cannot be satisfied.
This change fixes the stylesheet and makes all the depedendencies generated
by the stylesheet relative to the directory of the top-level docbook document
being processed.
In addition to that it fixes a small typo in the main docbook Makefile.
---
docbook/Makefile | 2 +-
docbook/dep.xsl | 92 +++++++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 78 insertions(+), 16 deletions(-)
diff --git a/docbook/Makefile b/docbook/Makefile
index b60ccf2..16691da 100644
--- a/docbook/Makefile
+++ b/docbook/Makefile
@@ -146,7 +146,7 @@ $(output_dir)/%.html: %.xml %.d $(single_html_xsl) $(all_deps)
$(single_html_xsl) $<
-$(output_dir)/%.txt: %.xml %.d $(txt_xsl) $(all_dep)
+$(output_dir)/%.txt: %.xml %.d $(txt_xsl) $(all_deps)
XML_CATALOG_FILES=$(catalog) $(xsltproc) $(xsltproc_flags) \
--xinclude \
$(txt_xsl) $< | $(lynx) $(lynx_flags) -stdin -dump > $@
diff --git a/docbook/dep.xsl b/docbook/dep.xsl
index e3c6133..0415f96 100644
--- a/docbook/dep.xsl
+++ b/docbook/dep.xsl
@@ -1,10 +1,10 @@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0' xmlns:xi="http://www.w3.org/2001/XInclude">
-
- <xsl:param name="prefix"/>
<xsl:param name="output"/>
-
+
+ <!-- Write the output into a plaintext file which will be later included
+ into the Makefile -->
<xsl:template match="/">
<xsl:document href="{$output}" method="text" indent="no"
omit-xml-declaration="yes">
@@ -13,36 +13,98 @@
</xsl:document>
</xsl:template>
- <xsl:template name="get-prefix">
- <xsl:if test="contains($prefix, '/')">
- <xsl:value-of select="concat(substring-before($prefix, '/'), '/')"/>
- <xsl:call-template name="get-prefix">
- <xsl:with-param name="prefix"
- select="substring-after($prefix, '/')"/>
+ <!-- This template extract the name of the directory from a full pathname,
+ in other words it returns everything but the name of the file -->
+ <xsl:template name="dirname">
+ <xsl:param name="filename"/>
+ <xsl:if test="contains($filename, '/')">
+ <xsl:value-of
+ select="concat(substring-before($filename, '/'), '/')"/>
+ <xsl:call-template name="dirname">
+ <xsl:with-param name="filename"
+ select="substring-after($filename, '/')"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
+
+ <!-- This template is used to add a directory preefix to a filename. The
+ prefix is only added if the filename is not absolute (i.e. it does
+ not start with a / and if the prefix is not an empty string -->
+ <xsl:template name="addprefix">
+ <xsl:param name="prefix"/>
+ <xsl:param name="filename"/>
+ <xsl:if test="(string-length($prefix) > 0) and not(starts-with($filename, '/'))">
+ <xsl:value-of select="$prefix"/>
+ </xsl:if>
+ <xsl:value-of select="$filename"/>
+ </xsl:template>
+ <!-- This template processes xi:include directives that include other XML
+ documents. First the template outputs the name of the file being
+ included and then the template traverses the included file
+ recursively, searching fro other dependencies in that file. The
+ template passes the parameter prefix to other templates with its
+ value set to the directory name of the file being included. This
+ ensures that paths to all dependencies are relative to the main
+ file. -->
<xsl:template match='xi:include' mode="subroot">
- <xsl:value-of select="concat($prefix, concat(@href, ' '))"/>
+ <xsl:param name="prefix"/>
+
+ <!-- Add the prefix to the name of the file being included and store
+ the result in variable fullpath -->
+ <xsl:variable name="fullpath">
+ <xsl:call-template name="addprefix">
+ <xsl:with-param name="prefix" select="$prefix"/>
+ <xsl:with-param name="filename" select="@href"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <!-- First of all, output the name of the file being included, with
+ proper prefix so that the resulting dependency is relative to the
+ top-most file being processed, not the file we are are processing
+ in this step. -->
+ <xsl:value-of select="concat($fullpath, ' ')"/>
+
+ <!-- Traverse the file being included and search for more depencencies
+ in that file and other files included from there. -->
<xsl:apply-templates select="document(@href)" mode="subroot">
+ <!-- Extract the directory name from $fullpath and set it as a new
+ value of the prefix parameter before calling other templates.
+ -->
<xsl:with-param name="prefix">
- <xsl:call-template name="get-prefix">
- <xsl:with-param name="prefix"
- select="concat($prefix, @href)"/>
+ <xsl:call-template name="dirname">
+ <xsl:with-param name="filename" select="$fullpath"/>
</xsl:call-template>
</xsl:with-param>
+
+ <!-- Process the included file recursively -->
</xsl:apply-templates>
</xsl:template>
+ <!-- This template processes files included with xi:include that are not
+ XML files, such files will only be output as dependencies and will be
+ not traversed recursively. -->
<xsl:template match='xi:include[@parse="text"]' mode="subroot">
- <xsl:value-of select="concat($prefix, concat(@href, ' '))"/>
+ <xsl:param name="prefix"/>
+ <xsl:call-template name="addprefix">
+ <xsl:with-param name="prefix" select="$prefix"/>
+ <xsl:with-param name="filename" select="@href"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
</xsl:template>
+ <!-- This template processes mediaobjects (such as images) included in
+ docbook. -->
<xsl:template match="graphic|imagedata|inlinemediaobject|textdata"
mode="subroot">
- <xsl:value-of select="concat($prefix, concat(@fileref, ' '))"/>
+ <xsl:param name="prefix"/>
+ <xsl:call-template name="addprefix">
+ <xsl:with-param name="prefix" select="$prefix"/>
+ <xsl:with-param name="filename" select="@fileref"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
</xsl:template>
+ <!-- Supress all other output -->
<xsl:template match="text()|@*" mode="subroot"/>
</xsl:stylesheet>
Module: sip-router
Branch: master
Commit: b245ada5562e8fb4f7a832c9765c6ea28e980f60
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b245ada…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu May 14 01:44:10 2009 +0200
docbook: Update and add missing docbook Makefiles
This change updates all the Makefiles used to process docbook documents
so that they work with the new docbook build system. It also adds some
missing Makefiles. Every directory containing docbook documentation
should have a Makefile so that it can be processed independently.
---
doc/Makefile | 31 ------------
doc/doc_root.xml | 120 ---------------------------------------------
doc/presence/Makefile | 31 +----------
doc/rpc/Makefile | 4 --
doc/ser_radius/Makefile | 31 +----------
doc/serdev/Makefile | 31 +----------
doc/serfaq/Makefile | 31 +----------
doc/serhowto/Makefile | 31 +----------
doc/seruser/Makefile | 31 +----------
doc/sip/Makefile | 31 +----------
lib/cds/doc/Makefile | 4 ++
lib/doc/Makefile | 4 ++
lib/presence/doc/Makefile | 4 ++
lib/xcap/doc/Makefile | 4 ++
14 files changed, 37 insertions(+), 351 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=b24…
Module: sip-router
Branch: master
Commit: b974149715b5f1a5ce9e36a5b795162965276e20
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b974149…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed May 13 19:15:24 2009 +0200
lcr: fix double free on error
On mod_init() error the lcr module did attempt to free twice all
the shared memory allocated vars (free_shared_memory() is called
twice on error, once when mod_init() fails and once when the
module destroy function is called).
---
modules/lcr/lcr_mod.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 9fc5089..41a3c43 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -699,27 +699,34 @@ static void free_shared_memory(void)
{
if (gws_1) {
shm_free(gws_1);
+ gws_1=0;
}
if (gws_2) {
shm_free(gws_2);
+ gws_2=0;
}
if (gws) {
shm_free(gws);
+ gws=0;
}
if (lcrs_1) {
lcr_hash_table_contents_free(lcrs_1);
shm_free(lcrs_1);
+ lcrs_1=0;
}
if (lcrs_2) {
lcr_hash_table_contents_free(lcrs_2);
shm_free(lcrs_2);
+ lcrs_2=0;
}
if (lcrs) {
shm_free(lcrs);
+ lcrs=0;
}
if (reload_lock) {
lock_destroy(reload_lock);
lock_dealloc(reload_lock);
+ reload_lock=0;
}
}