Sorry, I didn't understand that. Is it good or bad that it is
asymmetrical? And if not, what should it be? As far as I understand
from my config, it first checks if NAT is set, and if so, it goes to
force_rtp_proxy if it's INVITE and unforce_rtp_proxy if it's a BYE. Is
that not correct?
> On Wed, Oct 13, 2010 at 1:51 PM, Alex Balashov
> <abalashov(a)evaristesys.com> wrote:
>> This suggests asymmetrical invocation of rtpproxy, for example in 200 OK but
>> not corresponding INVITE.
>>
>> --
>> Alex Balashov - Principal
>> Evariste Systems LLC
>> 1170 Peachtree Street
>> 12th Floor, Suite 1200
>> Atlanta, GA 30309
>> Tel: +1-678-954-0670
>> Fax: +1-404-961-1892
>> Web: http://www.evaristesys.com/
>>
>> On Oct 13, 2010, at 1:33 PM, Anders <vaerge(a)gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to get the RTP proxy to work with Kamailio (1.5), but right
>>> now I am getting this error here:
>>>
>>> Oct 13 16:54:44 vn1031 /usr/local/sbin/kamailio[13622]:
>>> ERROR:nathelper:force_rtp_proxy: incorrect port 0 in reply from rtp
>>> proxy
>>>
>>> There is probably something wrong in my cfg - for the use of
>>> force_rtp_proxy that part of my config is here below. See anything odd
>>> that could lead to the error above?
>>>
>>> route {
>>> ......
>>> route(4);
>>> ......
>>> }
>>>
>>> route[4]{
>>> force_rport();
>>> if (nat_uac_test("19")) {
>>> if (method=="REGISTER") {
>>> fix_nated_register();
>>> } else {
>>> fix_nated_contact();
>>> }
>>> setflag(5);
>>> }
>>> return;
>>> }
>>>
>>> route[5] {
>>> if (is_method("BYE")) {
>>> unforce_rtp_proxy();
>>> } else if (is_method("INVITE")){
>>> force_rtp_proxy();
>>> }
>>> if (!has_totag()) add_rr_param(";nat=yes");
>>> return;
>>> }
>>>
>>> onreply_route[1] {
>>> xdbg("incoming reply\n");
>>>
>>> if (!(status =~ "183" || status =~ "200"))
>>> exit;
>>> #fix_nated_contact();
>>> force_rtp_proxy();
>>> }
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users(a)lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
Hello,
some time ago I started a blog post series to reveal in more details
some of the cool new features in version 3.1.0. Not finished yet, but
has quite some posts so far, you can see the ToC at: http://bit.ly/c5jjzu
Hope is useful for some of you,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
Hello,
HOW can I configure "userblacklist" module to accept the matching of characters as well???
I'm trying to use the "userblacklist" module with characters instead of numbers, so that I can even blacklist SIP-URIs like "user01(a)test.com".
Unfortunately the "userblacklist" module or more specific "dtrie.c" returns the following error when I pass such a username:
ERROR: <core> [dtrie.c:128]: cannot insert non-numerical character
I checked in "dtrie.c" and found the following comment:
"Its optimized towards the usecase of a matching tree that contains only digits, e.g.for LCR or blacklist modules. Nevertheless it also supports the matching of characters when configured correctly"
So my question is:
HOW can I configure "userblacklist" module to accept the matching of characters as well???
Thank you...
Regards,
Nicolas
--
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
Hello Daniel,
> If i use the different domain for kamailio and xmpp (e.g
kamailio1.com and xmpp1.com, i'm testing in my local network).
If from my xmpp client, e.g 109(a)xmpp1.com, i chat to sip client,
e.g 101*kamailio1.com(a)xmpp1.com.
>> you still have same domain - xmpp1.com - for both.
Maybe i don't understand clearly what you say yet ! I think i used 2 domain: kamailio server have domain: kamailio1.com (101(a)kamailio1.com), xmpp server have domain: xmpp1.com (109(a)xmpp1.com). Login to xmpp client 109(a)xmpp1.com, how can i chat to the kamailio client 101(a)kamailio1.com ??? If I add to my buddy list is: 101*kamailio1.com(a)xmpp1.com --> xmpp1 server think it is a local user !
I need your idea about this testing scenario. I'm using the server mode when integrate xmpp to kamailio.
Thanks in advanced,
Huy Nguyen
www.htk-inc.com
Date: Fri, 15 Oct 2010 10:55:29 +0200
From: miconda(a)gmail.com
To: huy_quocnguyen(a)live.com
Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
On 10/15/10 10:52 AM, Huy Nguyen wrote:
Hi Daniel and list,
If i use the different domain for kamailio and xmpp (e.g
kamailio1.com and xmpp1.com, i'm testing in my local network).
If from my xmpp client, e.g 109(a)xmpp1.com, i chat to sip client,
e.g 101*kamailio1.com(a)xmpp1.com.
you still have same domain - xmpp1.com - for both.
So when your xmpp client sends to server, the server looks at domain
part and says it is my domain so i should have it in my location
table.
If it is another domain, xmpp2.com, then xmpp server will connect to
xmpp2.com to send the message there.
Cheers,
Daniel
I think it'll get the
previous problem, because the xmpp server saw that the domain of
the customer is xmpp1.com --> this is a user on its domain.
How can xmpp server recognize that is the sip user from kamailio
server and send the message to kamailio ?
Have any wrong in my testing scenario ? Or we must change the
order of sip buddy name: 101*xmpp1.com(a)kamailio1.com ?
Thanks,
Huy Nguyen
www.htk-inc.com
Date: Fri, 15 Oct 2010 10:31:28 +0200
From: miconda(a)gmail.com
To: huy_quocnguyen(a)live.com
CC: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello,
it is the same domain you use for both xmpp and sip server? You
have to use different ones, otherwise each server considers it is
a local user and try to look it up in own location database.
Cheers,
Daniel
On 10/15/10 7:27 AM, Huy Nguyen wrote:
Hi,
Thanks for your quickly support, but after recompile with the
lastest git branch 3.0 version, I still meet the same problem.
From my xmpp client, i chat to sip client (e.g 101*sip.htk.com(a)xmpp.htk.com),
the xmpp server looking for its database and not found user
101*sip.htk.com. So, it show the error 503.
I don't know why the xmpp server not send message to my sip
server ? At the current time, can we use the server mode of
xmpp module ? If yes, how can establish the connection between
xmpp module (on kamailio server) and the xmpp server, if the
xmpp module not running at port 5269 ?
Thanks,
Huy Nguyen
www.htk-inc.com
Date: Thu, 14 Oct 2010 19:57:57 +0200
From: miconda(a)gmail.com
To: huy_quocnguyen(a)live.com
CC: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] Integrate xmpp module with kamailio
3.0.1
Hello,
take the latest git version from branch kamailio_3.0. There were
some fixes to xmpp module after 3.0.1.
Cheers,
Daniel
On 10/14/10 7:41 PM, Huy Nguyen wrote:
Hi all,
I'm trying to integrate xmpp module to kamailio 3.0.1.
But i wondered about the server mode, if not use the local
xmpp server, how to establish the s2s connection with the
other xmpp server ? I think it must have the running port
5269 on two xmpp servers to setup the connection.
Thanks,
Huy Nguyen
www.htk-inc.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com
--
Daniel-Constantin Mierla
http://www.asipto.com
... reply all didn't work first time ...
On 10/15/10 10:52 AM, Huy Nguyen wrote:
> Hi Daniel and list,
>
> If i use the different domain for kamailio and xmpp (e.g kamailio1.com
> and xmpp1.com, i'm testing in my local network). If from my xmpp
> client, e.g 109(a)xmpp1.com, i chat to sip client, e.g
> 101*kamailio1.com(a)xmpp1.com.
you still have same domain - xmpp1.com - for both.
So when your xmpp client sends to server, the server looks at domain
part and says it is my domain so i should have it in my location table.
If it is another domain, xmpp2.com, then xmpp server will connect to
xmpp2.com to send the message there.
Cheers,
Daniel
> I think it'll get the previous problem, because the xmpp server saw
> that the domain of the customer is xmpp1.com --> this is a user on its
> domain. How can xmpp server recognize that is the sip user from
> kamailio server and send the message to kamailio ?
>
> Have any wrong in my testing scenario ? Or we must change the order of
> sip buddy name: 101*xmpp1.com(a)kamailio1.com ?
>
> Thanks,
> Huy Nguyen
>
> *
>
> *
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> www.htk-inc.com <http://www.htk-inc.com/>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Date: Fri, 15 Oct 2010 10:31:28 +0200
> From: miconda(a)gmail.com
> To: huy_quocnguyen(a)live.com
> CC: sr-users(a)lists.sip-router.org
> Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
>
> Hello,
>
> it is the same domain you use for both xmpp and sip server? You have
> to use different ones, otherwise each server considers it is a local
> user and try to look it up in own location database.
>
> Cheers,
> Daniel
>
> On 10/15/10 7:27 AM, Huy Nguyen wrote:
>
> Hi,
>
> Thanks for your quickly support, but after recompile with the
> lastest git branch 3.0 version, I still meet the same problem.
>
> From my xmpp client, i chat to sip client (e.g
> 101*sip.htk.com(a)xmpp.htk.com
> <mailto:101*sip.htk.com@xmpp.htk.com>), the xmpp server looking
> for its database and not found user 101*sip.htk.com. So, it show
> the error 503.
>
> I don't know why the xmpp server not send message to my sip
> server ? At the current time, can we use the server mode of xmpp
> module ? If yes, how can establish the connection between xmpp
> module (on kamailio server) and the xmpp server, if the xmpp
> module not running at port 5269 ?
>
> Thanks,
> Huy Nguyen
>
> *
>
> *
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> www.htk-inc.com <http://www.htk-inc.com/>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Date: Thu, 14 Oct 2010 19:57:57 +0200
> From: miconda(a)gmail.com <mailto:miconda@gmail.com>
> To: huy_quocnguyen(a)live.com <mailto:huy_quocnguyen@live.com>
> CC: sr-users(a)lists.sip-router.org
> <mailto:sr-users@lists.sip-router.org>
> Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
>
> Hello,
>
> take the latest git version from branch kamailio_3.0. There were
> some fixes to xmpp module after 3.0.1.
>
> Cheers,
> Daniel
>
> On 10/14/10 7:41 PM, Huy Nguyen wrote:
>
> Hi all,
>
> I'm trying to integrate xmpp module to kamailio 3.0.1.
>
> But i wondered about the server mode, if not use the local
> xmpp server, how to establish the s2s connection with the
> other xmpp server ? I think it must have the running port 5269
> on two xmpp servers to setup the connection.
>
> Thanks,
> Huy Nguyen
>
> *
>
> *
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> www.htk-inc.com <http://www.htk-inc.com/>
>
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com
--
Daniel-Constantin Mierla
http://www.asipto.com
i have stored in htable a key_value=0 with key_type=1, i.e., string.
then i have this piece of test code:
if (defined($sht(htable=>$var(carrier_key)::id))) {
xlog("L_INFO", "$sht(htable=>$var(carrier_key)::id) is defined\n");
} else {
xlog("L_INFO", "$sht(htable=>$var(carrier_key)::id) is NOT defined\n");
};
$var(carrier_id) = $sht(htable=>$var(carrier_key)::id);
if ($var(carrier_id) == (int)0) {
xlog("L_INFO", "$sht(htable=>$var(carrier_key)::id) is not found\n");
} else {
xlog("L_INFO", "$sht(htable=>$var(carrier_key)::id) is found\n");
};
and when the piece is executed, this is printed to syslog:
Oct 15 12:20:33 squeeze /usr/sbin/trunk-proxy[2915]: INFO: 0 is defined
Oct 15 12:20:33 squeeze /usr/sbin/trunk-proxy[2915]: INFO: 0 is not found
i understand the first line, because the entry is in the htable, but how
is it possible that string "0" is equal to int 0?
-- juha
Hi Daniel and list,
If i use the different domain for kamailio and xmpp (e.g kamailio1.com and xmpp1.com, i'm testing in my local network). If from my xmpp client, e.g 109(a)xmpp1.com, i chat to sip client, e.g 101*kamailio1.com(a)xmpp1.com. I think it'll get the previous problem, because the xmpp server saw that the domain of the customer is xmpp1.com --> this is a user on its domain. How can xmpp server recognize that is the sip user from kamailio server and send the message to kamailio ?
Have any wrong in my testing scenario ? Or we must change the order of sip buddy name: 101*xmpp1.com(a)kamailio1.com ?
Thanks,
Huy Nguyen
www.htk-inc.com
Date: Fri, 15 Oct 2010 10:31:28 +0200
From: miconda(a)gmail.com
To: huy_quocnguyen(a)live.com
CC: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello,
it is the same domain you use for both xmpp and sip server? You have
to use different ones, otherwise each server considers it is a local
user and try to look it up in own location database.
Cheers,
Daniel
On 10/15/10 7:27 AM, Huy Nguyen wrote:
Hi,
Thanks for your quickly support, but after recompile with the
lastest git branch 3.0 version, I still meet the same problem.
From my xmpp client, i chat to sip client (e.g
101*sip.htk.com(a)xmpp.htk.com), the xmpp server looking for its
database and not found user 101*sip.htk.com. So, it show the
error 503.
I don't know why the xmpp server not send message to my sip
server ? At the current time, can we use the server mode of xmpp
module ? If yes, how can establish the connection between xmpp
module (on kamailio server) and the xmpp server, if the xmpp
module not running at port 5269 ?
Thanks,
Huy Nguyen
www.htk-inc.com
Date: Thu, 14 Oct 2010 19:57:57 +0200
From: miconda(a)gmail.com
To: huy_quocnguyen(a)live.com
CC: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello,
take the latest git version from branch kamailio_3.0. There were
some fixes to xmpp module after 3.0.1.
Cheers,
Daniel
On 10/14/10 7:41 PM, Huy Nguyen wrote:
Hi all,
I'm trying to integrate xmpp module to kamailio 3.0.1.
But i wondered about the server mode, if not use the local
xmpp server, how to establish the s2s connection with the
other xmpp server ? I think it must have the running port 5269
on two xmpp servers to setup the connection.
Thanks,
Huy Nguyen
www.htk-inc.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com
Hi,
Thanks for your quickly support, but after recompile with the lastest git branch 3.0 version, I still meet the same problem.
>From my xmpp client, i chat to sip client (e.g 101*sip.htk.com(a)xmpp.htk.com), the xmpp server looking for its database and not found user 101*sip.htk.com. So, it show the error 503.
I don't know why the xmpp server not send message to my sip server ? At the current time, can we use the server mode of xmpp module ? If yes, how can establish the connection between xmpp module (on kamailio server) and the xmpp server, if the xmpp module not running at port 5269 ?
Thanks,
Huy Nguyen
www.htk-inc.com
Date: Thu, 14 Oct 2010 19:57:57 +0200
From: miconda(a)gmail.com
To: huy_quocnguyen(a)live.com
CC: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] Integrate xmpp module with kamailio 3.0.1
Hello,
take the latest git version from branch kamailio_3.0. There were
some fixes to xmpp module after 3.0.1.
Cheers,
Daniel
On 10/14/10 7:41 PM, Huy Nguyen wrote:
Hi all,
I'm trying to integrate xmpp module to kamailio 3.0.1.
But i wondered about the server mode, if not use the local xmpp
server, how to establish the s2s connection with the other xmpp
server ? I think it must have the running port 5269 on two xmpp
servers to setup the connection.
Thanks,
Huy Nguyen
www.htk-inc.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com