THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Hugh Waite (hugh.waite)
Attached to Project - sip-router
Summary - Incorrect outbound interface used in Via and Record-Route
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - 3.3
Due in Version - Undecided
Due Date - Undecided
Details - I am using the recent advertised_address feature of kamailio 3.3 to bridge signalling across different network interfaces.
I have these lines in my config (in this order; eth0 and eth1 respectively):
listen 192.168.0.61 advertise 192.168.0.75:5060
listen 192.168.10.61 advertise 192.168.10.75:5060
When a call comes in on .10.61 and is sent on .0.61 (eth1 -> eth0) a double record-route is inserted and the correct advertised addresses are used (.10.75 and .0.75). This is correct and a BYE sent from the called client works.
When a call comes in on .0.61 and is sent to .10.61 (eth0 -> eth1) only one record-route header is inserted which contains .0.75 (eth0). This prevents the called client from sending within-dialog requests because the first route header is on the wrong network. The Via also contains the .0.75 address.
Even stranger, if I swap the two 'listen' lines in my config, kamailio inserts a double rr header with both advertised addresses even when sending requests from eth0 to eth0, also causing within dialog requests to fail.
Does kamailio always pick the first interface for the outbound rr?
I have tried to work around this by using set_advertised_address("192.168.10.75") is various places, but this seems to only affects the Via header.
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=241
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Bugs item #3540479, was opened at 2012-07-05 07:47
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=3540479&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: uac_reg_request_to mode 1 doesn't find anything
Initial Comment:
uac_reg_request_to mode 1 (compare by user) doesn't find anything
in modules_k/uac/uac_reg.c seems error in comparing
I think, in function reg_ht_get_byuser in string
if((it->r->h_uuid==hash) && (it->r->l_username.len==user->len)
&& (strncmp(it->r->l_username.s, user->s, user->len)==0))
should be h_user instead of h_uuid
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=3540479&group_…
Module: sip-router
Branch: master
Commit: 840d829149961d79fe9c84e59c14b8f72de4c44d
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=840d829…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Wed Jul 4 23:46:46 2012 +0100
pkg/kamailio/(centos|fedora): Added instructions on using BoxGrinder appliances to build Kamailio RPMs
---
pkg/kamailio/centos/6/README | 1 +
pkg/kamailio/fedora/16/README | 67 +++++++++++++++++++++++++++++++++++++++++
pkg/kamailio/fedora/17/README | 1 +
3 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/pkg/kamailio/centos/6/README b/pkg/kamailio/centos/6/README
new file mode 120000
index 0000000..441b483
--- /dev/null
+++ b/pkg/kamailio/centos/6/README
@@ -0,0 +1 @@
+../../fedora/16/README
\ No newline at end of file
diff --git a/pkg/kamailio/fedora/16/README b/pkg/kamailio/fedora/16/README
new file mode 100644
index 0000000..95fed77
--- /dev/null
+++ b/pkg/kamailio/fedora/16/README
@@ -0,0 +1,67 @@
+Building Kamailio RPMs for Enterprise Linux and Fedora
+------------------------------------------------------
+
+This is a simple process:
+1) Create a clean appliance using BoxGrinder (always worth doing as it makes
+ sure your build appliance contains only standard versions of packages and
+ has all updates applied).
+2) Start the appliance and log in.
+3) Prepare the appliance for RPM builds
+4) Either:
+ a) Checkout the version of Kamailio you want to build from GIT (instructions
+ available on the Kamailio wiki at http://www.kamailio.org/wiki) and
+ create a release tar file, or
+ b) Download a release tar file from http://www.kamailio.org/pub/kamailio and
+ extract the correct kamailio.spec file from it
+5) Run "rpmbuild" to create the RPMs
+
+If you don't have BoxGrinder installed (http://boxgrinder.org/) you can do so in
+Fedora using the command:
+
+ # [sudo] yum install rubygem-boxgrinder-build
+
+Note: The host operating system you install BoxGrinder on does not have to be
+ same operating system flavour, architecture, or version as the appliance
+ you are creating. It is entirely sensible to use an x86_64 Fedora host to
+ build an i386 CentOS appliance and i386 CentOS Kamailio RPMs.
+
+Example: Building Kamailio 3.4.x (master) x86_64 binary RPMs from GIT for
+ Fedora 17.
+
+This example assumes:
+- You have Internet connectivity
+- You have BoxGrinder, and libvirtd (and any management software required for
+ it) installed locally.
+- You have obtained the kamailio-build.appl file from pkg/kamailio/fedora/17
+ (either by download from http://git.sip-router.org/ or from a local
+ checkout of the code)
+- Your host operating system is x86_64.
+
+If you want to build a different version of Kamailio, a different set of RPMs
+(different rpmbuild options), or install and run the appliance on a remote
+(or different type of virtual) machine you should only need to make small
+changes to the commands in this example.
+
+1) Create a clean Fedora 17 x86_64 appliance using BoxGrinder:
+ # mkdir appliance
+ # cd appliance
+ # [sudo] boxgrinder-build \
+ [path to]/pkg/kamailio/fedora/17/kamailio-build.appl -d libvirt \
+ --delivery_config connection_uri:qemu:///system,\
+ image_delivery_uri:/var/lib/libvirt/images,overwrite:true,\
+ domain_type:kvm
+2) Start the appliance and log in:
+ - I prefer to use virt-manager for this. The default username and password
+ for the appliance is "root" and "kamailio" respectively.
+3) Prepare the appliance for RPM builds:
+ # mkdir -p rpmbuild/SOURCES
+4) Checkout Kamailio 3.4.x (master) and create a release tar file:
+ # git clone --depth 1 git://git.sip-router.org/sip-router kamailio
+ # cd kamailio
+ Note: if not building master you want to do a "git checkout" after this
+ # git archive --output ../rpmbuild/SOURCES/kamailio-3.4.0_src.tar.gz \
+ --prefix=kamailio-3.4.0/ master
+5) Run "rpmbuild" to create the binary RPMs:
+ # rpmbuild -bb pkg/kamailio/fedora/17/kamailio.spec
+
+Once the build is complete the RPMs will be in ~/rpmbuild/RPMS/x86_64.
diff --git a/pkg/kamailio/fedora/17/README b/pkg/kamailio/fedora/17/README
new file mode 120000
index 0000000..950d35d
--- /dev/null
+++ b/pkg/kamailio/fedora/17/README
@@ -0,0 +1 @@
+../16/README
\ No newline at end of file
Module: sip-router
Branch: pd/websocket
Commit: 1792586578d9680d45d52af37ddf2786b8b30ca8
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1792586…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Wed Jul 4 18:08:02 2012 +0100
Merge branch 'master' into websocket
* master:
modules/lcr: Fixed to/from_gw tests when proto parameter is 0 (ANY)
cdp_avp: added README file
CDP: Fixed README
CDP: A few fixes to docs and location of image files - cleaner organisation
new modules: CDP (C Diameter Peer) and CDP_AVP - These modules were originally written by Fraunhofer and have been ported to Kamailio, with some minor additions and improvements. Examples on using the modules to come shortly - diameter_rx, diameter_ro, etc
---