Friends,
We do have an IRC channel. I don't know how official the channel is,
but a few developers hang around there. If more did, we could have on-
line realtime discussions there...
Just a friendly reminder :-)
/O
Sorry for cross-posting from k-users; was hoping maybe someone here
has some insights, as rtpproxy is a sparsely documented topic.
-------- Original Message --------
Subject: force_rtp_proxy() usage with IP that is not natively homed
Date: Mon, 02 Nov 2009 01:23:40 -0500
From: Alex Balashov <abalashov(a)evaristesys.com>
To: kamailio <users(a)lists.kamailio.org>
Greetings,
Please excuse the apparent silliness of this request, but I am curious
if there is a combination of flags passed to force_rtp_proxy()
and/or rtpproxy invocation options that can allow force_rtp_proxy() to
substitute an SDP endpoint IP that is not a physical device/interface
on the host on which rtpproxy is running?
Let me explain further:
1. I have a host with a single network interface that has private IP
192.168.1.254.
2. I am receiving an inbound call from outside the network, coming in
on a public IP address 4.4.4.4 that is a 1-to-1 DNAT/SNAT to
192.168.1.254.
3. The call is forwarded to a PBX on the same LAN as the native
interface, e.g. 192.168.1.250.
4. I would like to set up SDP in such a way that 192.168.1.250
sendsmedia to the 192.168.1.254 interface while the outside host
initiating the call sends its media to 4.4.4.4.
Under normal circumstances in which both the public and private
interface were physically present on the machine, this would call for
the use of "bridging" mode (rtpproxy invoked with -l
4.4.4.4/192.168.1.254 and use of "ie" and "ei" flags with
force_rtp_proxy() - we have previously established that
rtpproxy_offer/answer do not actually seem to work as advertised).
But is it possible to "bridge" to an IP that is not routed to the box?
I expected that force_rtp_proxy()'s second parameter - ip_address -
would do this. However, this does not appear to let me override the
SDP endpoint with any IP address I want; it seems that I am still
limited to choosing from those IPs physically available on the
rtpproxy host. I would guess that this is because ip_address is
passed as a parameter through rtpproxy's control API socket and is
validated by rtpproxy itself, and if it is not a local existing
address, is overridden with one that is.
Is there a clever combination of flags that can be used to accomplish
this, or is it a lost cause?
Thanks!
--
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
--
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Hi, I successfully installed Kamailio on the Amazon computing cloud (EWS),
and it runs fine. However, I can't get to it (register) from any UACs from
the public internet. In amazon, all the instances (i.e. "virtual machines)
are in a "private" IP, kindda like the private IP you get in a LAN. However,
Amazoin gives you a "public IP" that can be mapped to any machine instance
in your account, i.e. the machine that kamailio is running. However, when i
use this public IP in the configuration of the UACs, it cannot get to it.
How can I get kamailio to listen on this public IP?
Secondly, and related to the first, when I run kamailio in my LAN (behind a
router), say on 192.168.1.113, and all my UACs are in the same LAN, say
192.168.1.112, 192.168.1.114, etc, I can register ok and make calls just
fine. However, when I try to come in from the public internet, no UACs can
register to my Kamailio server (running on 192.168.1.113), even though I am
forwarding port 5060 from my router to 192.168.1.113 (where kamailio is
running). I think this problem is related to the first one, in that I cannot
get Openser (kamailio) to listen on a public IP, when it is behing a "LAN".
Can anyone help?
Lastly, the same issue with rtpproxy also behind the LAN, but it needs a
pulic IP, right? Please help...anyonw.
Hassen BEN SLIMA
Analyst developer
TEL : 00216 74 863 507
FAX : 00216 74 863 506
E-MAIL : <mailto:tarak@systeo.biz> hassen(a)systeo.biz
Web : <http://www.systeo.biz> www.systeo.biz
Adresse : Route de Tunis km 10, Technopôle de Sfax - 3021 - Sakiet EZZIT -
Sfax - Tunisie
<http://www.systeo.biz/> Sans titre-4
Module: sip-router
Branch: master
Commit: ce629634665fee92e5239451283e7ee9632c078f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ce62963…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Mon Nov 2 17:54:02 2009 +0200
Added description of bind_tm parameter for the sl module
---
modules_k/sl/README | 13 +++++++++++++
modules_k/sl/doc/sl_admin.xml | 20 +++++++++++++++++++-
2 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/modules_k/sl/README b/modules_k/sl/README
index 1f727e2..bf4b730 100644
--- a/modules_k/sl/README
+++ b/modules_k/sl/README
@@ -27,6 +27,7 @@ Bogdan Iancu
1.3. Exported Parameters
1.3.1. enable_stats (integer)
+ 1.3.2 bind_tm (integer)
1.4. Exported Functions
@@ -113,6 +114,18 @@ Chapter 1. Admin Guide
Example 1.1. enable_stats example
modparam("sl", "enable_stats", 0)
+1.3.1. bind_tm (integer)
+
+ If the module should use transaction support for sending the
+ replies. A zero value means disabled.
+
+ Module tm should be loaded before of this one
+
+ Default value is 1 (enabled).
+
+ Example 1.1. bind_tm example
+modparam("sl", "bind_tm", 0)
+
1.4. Exported Functions
1.4.1. sl_send_reply(code, reason)
diff --git a/modules_k/sl/doc/sl_admin.xml b/modules_k/sl/doc/sl_admin.xml
index d6a4702..cd2e1cd 100644
--- a/modules_k/sl/doc/sl_admin.xml
+++ b/modules_k/sl/doc/sl_admin.xml
@@ -99,6 +99,25 @@ modparam("sl", "enable_stats", 0)
</programlisting>
</example>
</section>
+ <section>
+ <title><varname>load_tm</varname> (integer)</title>
+ <para>
+ If the module should use transaction support for sending the
+ replies. A zero value means disabled.
+ </para>
+ <para>
+ Module tm should be loaded before of this one
+ </para>
+ <para>
+ Default value is 1 (enabled).
+ </para>
+ <example>
+ <title>load_tm example</title>
+ <programlisting format="linespecific">
+modparam("sl", "load_tm", 0)
+</programlisting>
+ </example>
+ </section>
</section>
<section>
@@ -259,4 +278,3 @@ sl_reply_error();
</section>
</chapter>
-