Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
Thank you;  I will take a look.

On Wed, May 23, 2018 at 7:13 PM, Julien Chavanton 
wrote:

> I see, never done it, but mayne this article can help
>
> http://blog.miconda.eu/2014/12/kamailio-42-tips-12-execute-rpc.html
>
> The parameter has to be a valid full JSON-RPC document. It can be a
> dynamic string with variables. The result of the command can be accessed
> via $jsonrpl(key) pseudo variables.
>
> On Wed, May 23, 2018 at 5:20 PM, Karthik Srinivasan <
> ksriniva2...@gmail.com> wrote:
>
>> Hi Julien,
>>
>> The routing file i am referring to is the kamailio.cfg configuration file.
>>
>> I am trying to find a way to access this information within that file.
>>
>> Thanks,
>>
>> Karthik
>>
>> On Wed, May 23, 2018 at 3:35 PM, Julien Chavanton 
>> wrote:
>>
>>> Hi Karthik,
>>>
>>> You can retrieve this information using kamcmd
>>>
>>> kamcmd stats.get_statistics all | grep usrloc
>>> kamcmd tls.info
>>>
>>> Not sure what you meant by "via the routing file"
>>>
>>>
>>>
>>> On Wed, May 23, 2018 at 10:32 AM, Karthik Srinivasan <
>>> ksriniva2...@gmail.com> wrote:
>>>
 sorry, i hit the send key a bit too quickly.

 i am trying to access two items via the routing file:  a.) number of
 registered users.   b.) number of active TLS connections.

 I am not pushing the registrations to the database.  usrloc is stored
 in memory.

 any ideas?

 On Wed, May 23, 2018 at 12:30 PM, Karthik Srinivasan <
 ksriniva2...@gmail.com> wrote:

> Hello,
>
> Via the routing file i am trying to find access two items:
>
>
>

 ___
 Kamailio (SER) - Users Mailing List
 sr-users@lists.kamailio.org
 https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Julien Chavanton
I see, never done it, but mayne this article can help

http://blog.miconda.eu/2014/12/kamailio-42-tips-12-execute-rpc.html

The parameter has to be a valid full JSON-RPC document. It can be a dynamic
string with variables. The result of the command can be accessed via
$jsonrpl(key) pseudo variables.

On Wed, May 23, 2018 at 5:20 PM, Karthik Srinivasan 
wrote:

> Hi Julien,
>
> The routing file i am referring to is the kamailio.cfg configuration file.
>
> I am trying to find a way to access this information within that file.
>
> Thanks,
>
> Karthik
>
> On Wed, May 23, 2018 at 3:35 PM, Julien Chavanton 
> wrote:
>
>> Hi Karthik,
>>
>> You can retrieve this information using kamcmd
>>
>> kamcmd stats.get_statistics all | grep usrloc
>> kamcmd tls.info
>>
>> Not sure what you meant by "via the routing file"
>>
>>
>>
>> On Wed, May 23, 2018 at 10:32 AM, Karthik Srinivasan <
>> ksriniva2...@gmail.com> wrote:
>>
>>> sorry, i hit the send key a bit too quickly.
>>>
>>> i am trying to access two items via the routing file:  a.) number of
>>> registered users.   b.) number of active TLS connections.
>>>
>>> I am not pushing the registrations to the database.  usrloc is stored in
>>> memory.
>>>
>>> any ideas?
>>>
>>> On Wed, May 23, 2018 at 12:30 PM, Karthik Srinivasan <
>>> ksriniva2...@gmail.com> wrote:
>>>
 Hello,

 Via the routing file i am trying to find access two items:



>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
Hi Julien,

The routing file i am referring to is the kamailio.cfg configuration file.

I am trying to find a way to access this information within that file.

Thanks,

Karthik

On Wed, May 23, 2018 at 3:35 PM, Julien Chavanton 
wrote:

> Hi Karthik,
>
> You can retrieve this information using kamcmd
>
> kamcmd stats.get_statistics all | grep usrloc
> kamcmd tls.info
>
> Not sure what you meant by "via the routing file"
>
>
>
> On Wed, May 23, 2018 at 10:32 AM, Karthik Srinivasan <
> ksriniva2...@gmail.com> wrote:
>
>> sorry, i hit the send key a bit too quickly.
>>
>> i am trying to access two items via the routing file:  a.) number of
>> registered users.   b.) number of active TLS connections.
>>
>> I am not pushing the registrations to the database.  usrloc is stored in
>> memory.
>>
>> any ideas?
>>
>> On Wed, May 23, 2018 at 12:30 PM, Karthik Srinivasan <
>> ksriniva2...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Via the routing file i am trying to find access two items:
>>>
>>>
>>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Anybody using 2 instances with topos communicating with each other?

2018-05-23 Thread Daniel-Constantin Mierla
Hello,

only spirals cannot be handled by topos due to its initial design (some
things needs to be changed for it), so the case you present should work.

>From the excerpts you present, there is an unexpected Record-Route with
the proxy address in the 200ok towards endpoint. Is it so or just a
mistake in what you pasted here? Because there should be no record-route
with proxy address if proxy does topos.

Cheers,
Daniel


On 11.05.18 16:11, Daniel Tryba wrote:
> Scenario:
> endpoint (bob) <-> kamailio proxy (5.1.3) <-> kamailio backend (5.1.2)
>
> Both kamailio instances are running the topos module (mysql backend).
> Call setup is fine, but forwarding BYEs fail.
>
> With a call from endpoint to kamailio, topos on the proxy scrambles
> Contact to kamailio backend. But in responses from backend contact
> remains untouched. In the ACK to the 200, topos on the proxy does
> nothing. If the caller hangsup, the BYE will loop internally till max
> hops is exceeded (483 which will be send to caller eventually).
>
> When the backend initiates the call to the endpoint, topos appears to
> work, but the BYE from the endpoint on hangup get a 404 Not here from
> the proxy (route[WITHINDLG]).
>
> Disabling topos on the proxy will result in a functioning proxy (config
> attached).
>
> Is there something wrong with my config? Or is this an unforseen
> scenario that just doesn't work with topos?
>
> * Endpoint to backend scenario
>
> endpoint:5060 -> proxy:5060
> INVITE sip:cal...@sip.pocos.nl;transport=tcp SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
> Max-Forwards: 70
> Route: 
> Contact: 
>
> proxy:5060 -> backend:5060
> INVITE sip:cal...@sip.itco.nl;transport=tcp SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> CSeq: 29848 INVITE
> Route: 
> Contact: 
>
> backend:5060 -> proxy:5060
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP proxy;branch=...
> Contact: 
>
> proxy:5060 -> endpoint:5060
> SIP/2.0 200 OK
> Contact: 
> Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
> Record-Route: 
>
> endpoint:5060 -> proxy:5060
> ACK sip:atpsh-5af19bf0-9f94-7@backend SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
> Route: 
>
> proxy:5060 -> backend:5060
> ACK sip:atpsh-5af19bf0-9f94-7@backend SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
>
> endpoint:5060 -> proxy:5060
> BYE sip:atpsh-5af19bf0-9f94-7@backend SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
> Max-Forwards: 70
> Route: 
>
> proxy:5060 -> proxy:5060
> BYE sip:atpsh-5af19bf0-9f94-7@backend SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
> Max-Forwards: 69
> Route: 
>
> proxy:5060 -> proxy:5060
> BYE sip:atpsh-5af19bf0-9f94-7@backend SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> Via: SIP/2.0/UDP proxy;rport=5060;branch=...
> Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
> Max-Forwards: 68
> Route: 
>
> [not going to mention the 50+ BYEs adding Vias and decrementing
> Max-Forwards.
>
>
> * Backend to endpoint scenario
>
> backend:5060 -> proxy:5060
> INVITE sip:bob@endpoint:5060;ob SIP/2.0
> Via: SIP/2.0/UDP backend;branch=...
> Route: 
> Contact: 
>
> proxy:5060 -> endpoint:5060
> INVITE sip:bob@endpoint:5060;ob SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> Contact: 
>
> endpoint:5060 -> proxy:5060
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP proxy;received=proxy;branch=...
> Contact: 
>
> proxy:5060 -> backend:5060
> SIP/2.0 200 OK
> Contact: 
> Via: SIP/2.0/UDP backend;rport=5060;branch=...
> Record-Route: 
>
> endpoint:5060 -> proxy:5060
> BYE sip:btpsh-5af5972d-bf5d-5@proxy SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
>
> proxy:5060 -> endpoint:5060
> SIP/2.0 404 Not here
> Via: SIP/2.0/UDP endpoint:5060;rport=5060;branch=...
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] TOPOS (5.1.[23]) breaks PRACK

2018-05-23 Thread Daniel-Constantin Mierla
I got a bit of time to look at this issue, can you try with the patch
from the next commit?

  -
https://github.com/kamailio/kamailio/commit/2a3ca5942291d29de05b14338a36cecbec11f129

Cheers,
Daniel


On 07.05.18 22:34, Daniel-Constantin Mierla wrote:
>
> On 07.05.18 17:34, Daniel Tryba wrote:
>> On Mon, May 07, 2018 at 04:44:14PM +0200, Daniel Tryba wrote:
>>> Sure. Attached. Problem appears to be that the topos query can't find
>>> callid-totag (from the response).
>>>
>>> I'll try the same scenario with the mysql backend to see if it behaves
>>> different.
>> Config works fine with mysql as topos backend. So the bug is restricted
>> to topos-redis.
>>
>>
> OK, I'll check it with the first occasion, likely it got out of sync
> with db/mysql backend.
>
> Cheers,
> Daniel
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Julien Chavanton
Hi Karthik,

You can retrieve this information using kamcmd

kamcmd stats.get_statistics all | grep usrloc
kamcmd tls.info

Not sure what you meant by "via the routing file"



On Wed, May 23, 2018 at 10:32 AM, Karthik Srinivasan  wrote:

> sorry, i hit the send key a bit too quickly.
>
> i am trying to access two items via the routing file:  a.) number of
> registered users.   b.) number of active TLS connections.
>
> I am not pushing the registrations to the database.  usrloc is stored in
> memory.
>
> any ideas?
>
> On Wed, May 23, 2018 at 12:30 PM, Karthik Srinivasan <
> ksriniva2...@gmail.com> wrote:
>
>> Hello,
>>
>> Via the routing file i am trying to find access two items:
>>
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
sorry, i hit the send key a bit too quickly.

i am trying to access two items via the routing file:  a.) number of
registered users.   b.) number of active TLS connections.

I am not pushing the registrations to the database.  usrloc is stored in
memory.

any ideas?

On Wed, May 23, 2018 at 12:30 PM, Karthik Srinivasan  wrote:

> Hello,
>
> Via the routing file i am trying to find access two items:
>
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] count of registered users or count of tls connections

2018-05-23 Thread Karthik Srinivasan
Hello,

Via the routing file i am trying to find access two items:
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP Server Hardware or VM ??

2018-05-23 Thread Pinter, Gerd.
Thank you very much, this underpins my consideration.
How to tell my Boss :o  

Nice Regards

Gerd





-Ursprüngliche Nachricht-
Von: sr-users  Im Auftrag von Daniel Tryba
Gesendet: Mittwoch, 23. Mai 2018 16:03
An: Kamailio (SER) - Users Mailing List 
Betreff: Re: [SR-Users] SIP Server Hardware or VM ??

On Wed, May 23, 2018 at 01:25:58PM +, Pinter, Gerd. wrote:
> The question is, if anyone has experience if this issue maybe can be 
> solved by running the Sip Server on a standalone hardware plugged into 
> network Port on our Hardware Firewall, instead of a virtual Machine 
> running on VM with virtual switches and so on. The current SIP Server 
> has a Public IP Address, but all the Traffic runs thru Firewall, VPN, 
> Hardware Switches and Virtual Switches. What you think?

Virtualisation can/will add some jitter, but if you configure your setup 
correctly it will work fine for normal phone calls [*]. For example in VMware 
there is something caller NIC interrupt coalescing. AFAIK this is enable by 
default but introduces latency for RTP streams.

But have bare hardware with a rtpproxy will perform better, without any tuning 
a recent machine relayed 900Mbit/s (simulated RTP packets) with ease, running 
vmware a single cpu guest instance was limited to about 40Mbit/s, 2 CPUs in the 
guest topped out at  about 90Mbit/s before jitter and eventual loss occured 
(with coalescing disabled).

*: jitter introduced by rtpengine is negligible compared to the jitter 
introduced by the endpoints themselves (either devices or network setup).

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP Server Hardware or VM ??

2018-05-23 Thread Mikko Lehto
Pinter, Gerd.  wrote:

> Since we encountered problems with connections via mobile Networks we set up 
> our SIP Server as RTP Proxy which resolved all those multiple NAT issues. But 
> on the other hand we pay for that with a higher jitter rate. The question is, 
> if anyone has experience if this issue maybe can be solved by running the Sip 
> Server on a standalone hardware plugged into network Port on our Hardware 
> Firewall, instead of a virtual Machine running on VM with virtual switches 
> and so on. The current SIP Server has a Public IP Address, but all the 
> Traffic runs thru Firewall, VPN, Hardware Switches and Virtual Switches. What 
> you think?
 

Hi

Are you asking if RTP proxy can work in some other node
than the same where Kamailio SIP proxy instance is running?

If so, answer to that is yes. See rtpproxy module parameter rtpproxy_sock:
http://kamailio.org/docs/modules/5.1.x/modules/rtpproxy.html#rtpproxy.p.rtpproxy_sock

With that parameter you can set RTP proxy in HW and still have SIP proxy in VM.


If on the other hand you are asking about resource management to gain
better jitter and such in virtual environment, then I have no clue.

Hope this helps

-- 
Mikko

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Link problem between kamailio and MariaDB

2018-05-23 Thread Ginhoux, Patrick
Hi,

 

At the moment, I'm trying to replace MySQL by MariaDB on my Kamailio server
(5.0.1) . In  previous post I have been told that Kamailio supports MariaDB
and there is no special module to load.

 

This work is done on a new server running RHEL 7.4 and MariaDB 10.2.14 that
is installed under /opt/mysql/na/10.2.14 folder.

 

I encounter different problem:

 

-  Without changing anything in the kamailio script, kamailio failed
to find the libmysqlclient.so.18 library.

-  So I thought that I could get rid of the above error by changing
the MODULEPATH in the Kamailio-local.cfg as follows :

MODULEPATH="/usr/lib64/kamailio/modules/:/opt/mysql/na/10.2.14/lib64/"

But with this, I get 2 problem:

The kamailio.log that was written in a /opt/log/Kamailio folder is no longer
updated.

I can only find the errors in the /var/log/messages file:

May 23 11:19:19 vm-siprouter74 systemd: Starting SYSV: Kamailio is a fast,
reliable and flexible SIP Server

May 23 11:19:19 vm-siprouter74 kamailio: Not starting : invalid
configuration file!

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.lex:1822]: pp_define_get(): ### returning define ID
[DEFINE_LOG_FACILITY] value [LOG_LOCAL0]

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.lex:1822]: pp_define_get(): ### returning define ID [LOCAL_LISTEN]
value [udp:129.227.82.109:5060]

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.lex:1822]: pp_define_get(): ### returning define ID
[LOCAL_LISTEN_2] value [udp:127.0.0.1:5060]

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.lex:1822]: pp_define_get(): ### returning define ID [MODULEPATH]
value ["/usr/lib64/kamailio/modules/:/opt/mysql/na/10.2.14/lib64/"]

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.y:1632]: yyparse(): loading modules under
/usr/lib64/kamailio/modules/:/opt/mysql/na/10.2.14/lib64/

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.y:1613]: yyparse(): loading module db_mysql.so

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/sr_module.c:575]: load_module(): trying to load


May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) ERROR: 
[core/sr_module.c:582]: load_module(): could not open module
: libmysqlclient.so.18: cannot open
shared object file: No such file or directory

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) CRITICAL: 
[core/cfg.y:3401]: yyerror_at(): parse error in config file
//etc/kamailio/kamailio.cfg, line 191, column 12-24: failed to load module

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/cfg.y:1613]: yyparse(): loading module jsonrpcs.so

May 23 11:19:19 vm-siprouter74 kamailio: 0(3328) DEBUG: 
[core/sr_module.c:575]: load_module(): trying to load


 

To work around the problem we have created 2 symbol links:

<<< ln -s /opt/mysql/na/10.2.14/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient.so.18 >>> the libmysqlclient error

<<< ln -s /myqdata/mysiprdb/data/my.cnf /etc/my.cnf >>> to fix the issue to
open the db

 

It seems that kamailio is always looking for the my.cnf in the /etc/
directory.

 

My concern are to share this job with people who have much more experience
with Kamailio.

 

I would like to know 

-  If the different workaround (ln) makes sense to you or is there
better change to do

-  How to explain the logging issue when changing the modulepath
variable

-  Is it true that kamailio is always looking for the my.cnf in the
/etc/ directory?

 

Any thoughts are welcome.

 

Thanks in advance.

 

Cordialement.

Patrick GINHOUX



smime.p7s
Description: S/MIME cryptographic signature
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] SIP Server Hardware or VM ??

2018-05-23 Thread Pinter, Gerd.
Hallo there,

we are a Broadcasting Network with about 50 Stations and try to establish our 
own SIP Network for high quality Audio over IP with Bitrates of 192-256 kbit 
for transmitting an accurate stereo signal.
Since we encountered problems with connections via mobile Networks we set up 
our SIP Server as RTP Proxy which resolved all those multiple NAT issues. But 
on the other hand we pay for that with a higher jitter rate. The question is, 
if anyone has experience if this issue maybe can be solved by running the Sip 
Server on a standalone hardware plugged into network Port on our Hardware 
Firewall, instead of a virtual Machine running on VM with virtual switches and 
so on. The current SIP Server has a Public IP Address, but all the Traffic runs 
thru Firewall, VPN, Hardware Switches and Virtual Switches. What you think?

Thanks a Lot


Nice regards
Gerhard Pinter


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Core Value : myself

2018-05-23 Thread Daniel-Constantin Mierla
Hello,

the myself condition doesn't go into parameters matching apart of transport.

Likely this condition fails because the device is using its own local IP
in From header and R-URI instead of server ip or server domain.

Can be also when the device uses anonymous in From header and dials an
external domain.

Cheers,
Daniel


On 23.05.18 13:17, Duarte Rocha wrote:
> Greetings, 
>
> I'm doing some work with the AUTH routes and modules, and sometimes i
> get a "403 Not relaying" answer when the INVITE has a parameter in the
> R-URI. That parameter was not included in the REGISTER.
>
> I think it's this part of the code that throws this reply : 
>
> # if caller is not local subscriber, then check if it calls
>         # a local destination, otherwise deny, not an open relay here
>         if (from_uri!=myself && uri!=myself) {
>                 sl_send_reply("403","Not relaying");
>                 exit;
>         }
>
> Does a different or new parameter in the R-URI trigger the
> "uri!=myself" ? if so, can I set it up to check R-URI but not check
> the parameters?
>
> Thanks
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Core Value : myself

2018-05-23 Thread Duarte Rocha
Greetings,

I'm doing some work with the AUTH routes and modules, and sometimes i get a
"403 Not relaying" answer when the INVITE has a parameter in the R-URI.
That parameter was not included in the REGISTER.

I think it's this part of the code that throws this reply :

# if caller is not local subscriber, then check if it calls
# a local destination, otherwise deny, not an open relay here
if (from_uri!=myself && uri!=myself) {
sl_send_reply("403","Not relaying");
exit;
}

Does a different or new parameter in the R-URI trigger the "uri!=myself" ?
if so, can I set it up to check R-URI but not check the parameters?

Thanks
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users