[SR-Users] DROUTING Tables

2017-06-02 Thread Annus Fictus

Hello,

I can't find DROUTING Tables on the standard kamailio database.

dr_gateways

dr_rules

dr_groups

Have I to create them manually?

Thank you

Regards



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


Re: [SR-Users] Adding debugger module to kazoo-kamailio

2017-06-02 Thread Daniel-Constantin Mierla
Hello,


On 01.06.17 19:02, Joe Baran wrote:
>
> I’m hoping that someone might have some suggestions on how to approach
> this.
>
>  
>
> I’ve been working with kamailio as part of kazoo (via RPM install) and
> have been attempting to add the debugger module so I can trace things
> as they pass through kamailio.  However, I need some help in
> determining the most effective way of adding this.  Has anyone already
> done this / have any suggestions?
>
>  
>
from which repository did you install the rpms?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - 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] {Disarmed} Re: Kamctl does not work. Kamailio 4.4

2017-06-02 Thread Denys Pozniak
I have next options:

#cat /etc/kamailio/kamctlrc
DBENGINE=MYSQL
DBHOST=127.0.0.1
DBNAME=kamailio
DBRWUSER="root"
DBRWPW="toor"
DBROUSER="root"
DBROPW="toor"
DBACCESSHOST=127.0.0.1
DBROOTUSER="root"

Can you share your file?


On 2 June 2017 at 15:54, Luís Torres  wrote:

> Just passed across that..., what I did was editing the kamctlrc and
> uncoment the database related itens.
>
> It worked
>
>
>
> Em 2017-06-02 14:48, Denys Pozniak escreveu:
>
> Hello!
>
> I have installed Kamailio 4.4 on CentOS7 from repo.
> (http://download.opensuse.org/repositories/home:/kamailio:/
> v4.4.x-rpms/CentOS_7/)
>
> When I try to run kamctl I have next error:
>
> # kamctl ps
> WARNING: no control engine found - tried 'RPCFIFO'
> ERROR: This command requires a control engine - none was loaded
>
> Kamcmd works well:
>
> # kamcmd ps
> 20591   main process - attendant
> 20595   udp receiver child=0 sock=*MailScanner has detected a possible
> fraud attempt from "10.10.54.53:5080" claiming to be* *MailScanner
> warning: numerical links are often malicious:* 10.10.54.53:5080
> 
> 20596   udp receiver child=1 sock=*MailScanner has detected a possible
> fraud attempt from "10.10.54.53:5080" claiming to be* *MailScanner
> warning: numerical links are often malicious:* 10.10.54.53:5080
> 
> 20597   udp receiver child=2 sock=*MailScanner has detected a possible
> fraud attempt from "10.10.54.53:5080" claiming to be* *MailScanner
> warning: numerical links are often malicious:* 10.10.54.53:5080
> 
> 20598   udp receiver child=3 sock=*MailScanner has detected a possible
> fraud attempt from "10.10.54.53:5080" claiming to be* *MailScanner
> warning: numerical links are often malicious:* 10.10.54.53:5080
> 
> 20599   slow timer
> 20600   timer
> 20601   secondary timer
> 20602   ctl handler
> 20603   MI FIFO
>
>
> Whats missing with kamctl and how to force it working?
> Configs are below.
>
> BR,
> Denys
>
>
> #cat /etc/kamailio/kamctlrc
> DBENGINE=MYSQL
> DBHOST=127.0.0.1
> DBNAME=kamailio
> DBRWUSER="root"
> DBRWPW="toor"
> DBROUSER="root"
> DBROPW="toor"
> DBACCESSHOST=127.0.0.1
> DBROOTUSER="root"
>
> #cat /etc/modules.cfg
>
> #!KAMAILIO
> debug=2
> log_stderror=no
> memdbg=5
> memlog=5
> log_facility=LOG_LOCAL0
> fork=yes
> children=4
> disable_tcp=yes
> listen=udp:*MailScanner has detected a possible fraud attempt from
> "10.77.254.53:5080" claiming to be* *MailScanner warning: numerical links
> are often malicious:* 10.77.254.53:5080 
> auto_aliases=no
> alias = "domain.local"
> mpath="/lib64/kamailio/modules/"
> loadmodule "tm.so"
> loadmodule "rr.so"
> loadmodule "pv.so"
> loadmodule "sl.so"
> loadmodule "maxfwd.so"
> loadmodule "nathelper.so"
> loadmodule "textops.so"
> loadmodule "siputils.so"
> loadmodule "xlog.so"
> loadmodule "sanity.so"
> loadmodule "path.so"
> loadmodule "outbound.so"
> loadmodule "stun.so"
> loadmodule "db_mysql.so"
> loadmodule "lcr.so"
> loadmodule "avpops.so"
> loadmodule "ctl.so"
> loadmodule "mi_fifo.so"
> loadmodule "mi_rpc.so"
>
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://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


[SR-Users] {Disarmed} Re: Kamctl does not work. Kamailio 4.4

2017-06-02 Thread Luís Torres
 

Just passed across that..., what I did was editing the kamctlrc and
uncoment the database related itens. 

It worked 

Em 2017-06-02 14:48,
Denys Pozniak escreveu: 

> Hello! 
> 
> I have installed Kamailio 4.4
on CentOS7 from repo. 
>
(http://download.opensuse.org/repositories/home:/kamailio:/v4.4.x-rpms/CentOS_7/
[2]) 
> 
> When I try to run kamctl I have next error: 
> 
> # kamctl
ps 
> WARNING: no control engine found - tried 'RPCFIFO' 
> ERROR: This
command requires a control engine - none was loaded 
> 
> Kamcmd works
well: 
> 
> # kamcmd ps 
> 20591 main process - attendant 
> 20595 udp
receiver child=0 sock=MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
MALICIOUS: 10.10.54.53:5080 [3] 
> 20596 udp receiver child=1
sock=MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN MALICIOUS:
10.10.54.53:5080 [3] 
> 20597 udp receiver child=2 sock=MAILSCANNER
WARNING: NUMERICAL LINKS ARE OFTEN MALICIOUS: 10.10.54.53:5080 [3] 
>
20598 udp receiver child=3 sock=MAILSCANNER WARNING: NUMERICAL LINKS ARE
OFTEN MALICIOUS: 10.10.54.53:5080 [3] 
> 20599 slow timer 
> 20600 timer

> 20601 secondary timer 
> 20602 ctl handler 
> 20603 MI FIFO 
> 
>
Whats missing with kamctl and how to force it working? 
> Configs are
below. 
> 
> BR, 
> Denys 
> 
> #cat /etc/kamailio/kamctlrc 
> 
>
DBENGINE=MYSQL 
> DBHOST=127.0.0.1 
> DBNAME=kamailio 
> DBRWUSER="root"

> DBRWPW="toor" 
> DBROUSER="root" 
> DBROPW="toor" 
>
DBACCESSHOST=127.0.0.1 
> DBROOTUSER="root" 
> 
> #cat /etc/modules.cfg

> 
> #!KAMAILIO 
> debug=2 
> log_stderror=no 
> memdbg=5 
> memlog=5

> log_facility=LOG_LOCAL0 
> fork=yes 
> children=4 
> disable_tcp=yes

> listen=udp:MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN MALICIOUS:
10.77.254.53:5080 [4] 
> auto_aliases=no 
> alias = "domain.local" 
>
mpath="/lib64/kamailio/modules/" 
> loadmodule "tm.so" 
> loadmodule
"rr.so" 
> loadmodule "pv.so" 
> loadmodule "sl.so" 
> loadmodule
"maxfwd.so" 
> loadmodule "nathelper.so" 
> loadmodule "textops.so" 
>
loadmodule "siputils.so" 
> loadmodule "xlog.so" 
> loadmodule
"sanity.so" 
> loadmodule "path.so" 
> loadmodule "outbound.so" 
>
loadmodule "stun.so" 
> loadmodule "db_mysql.so" 
> loadmodule "lcr.so"

> loadmodule "avpops.so" 
> loadmodule "ctl.so" 
> loadmodule
"mi_fifo.so" 
> loadmodule "mi_rpc.so" 
> 
>
___
> Kamailio (SER) - Users
Mailing List
> sr-users@lists.kamailio.org
>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users [1]




Links:
--
[1]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[2]
http://download.opensuse.org/repositories/home:/kamailio:/v4.4.x-rpms/CentOS_7/
[3]
http://10.10.54.53:5080
[4] http://10.77.254.53:5080
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] relationship between debian kamailio.service and kamailio.init

2017-06-02 Thread Juha Heinanen
Could someone who knows about systemd tell, what is the relationship
between deb/stretch kamailio.service and kamailio.init files?

kamailio.service contains kamailio binary argument values and command to
start kamailio, but kamailio.init does much more.

Why do both exist?

-- Juha

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


[SR-Users] Kamctl does not work. Kamailio 4.4

2017-06-02 Thread Denys Pozniak
Hello!

I have installed Kamailio 4.4 on CentOS7 from repo.
(
http://download.opensuse.org/repositories/home:/kamailio:/v4.4.x-rpms/CentOS_7/
)

When I try to run kamctl I have next error:

# kamctl ps
WARNING: no control engine found - tried 'RPCFIFO'
ERROR: This command requires a control engine - none was loaded

Kamcmd works well:

# kamcmd ps
20591   main process - attendant
20595   udp receiver child=0 sock=10.10.54.53:5080
20596   udp receiver child=1 sock=10.10.54.53:5080
20597   udp receiver child=2 sock=10.10.54.53:5080
20598   udp receiver child=3 sock=10.10.54.53:5080
20599   slow timer
20600   timer
20601   secondary timer
20602   ctl handler
20603   MI FIFO


Whats missing with kamctl and how to force it working?
Configs are below.

BR,
Denys


#cat /etc/kamailio/kamctlrc
DBENGINE=MYSQL
DBHOST=127.0.0.1
DBNAME=kamailio
DBRWUSER="root"
DBRWPW="toor"
DBROUSER="root"
DBROPW="toor"
DBACCESSHOST=127.0.0.1
DBROOTUSER="root"

#cat /etc/modules.cfg

#!KAMAILIO
debug=2
log_stderror=no
memdbg=5
memlog=5
log_facility=LOG_LOCAL0
fork=yes
children=4
disable_tcp=yes
listen=udp:10.77.254.53:5080
auto_aliases=no
alias = "domain.local"
mpath="/lib64/kamailio/modules/"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "sl.so"
loadmodule "maxfwd.so"
loadmodule "nathelper.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "path.so"
loadmodule "outbound.so"
loadmodule "stun.so"
loadmodule "db_mysql.so"
loadmodule "lcr.so"
loadmodule "avpops.so"
loadmodule "ctl.so"
loadmodule "mi_fifo.so"
loadmodule "mi_rpc.so"
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Using reserved keywords in cfg variables

2017-06-02 Thread Daniel-Constantin Mierla
Hello,


On 02.06.17 13:16, Paul Claudiu Boriga wrote:
> Hello all,
>
> We found out that when using cfg variables certain keywords are not
> allowed, and Kamailio logs a generic error:
>  [cfg.y:3368]: yyerror_at(): parse error in config file
> /etc/kamailio/kamailio.cfg, line 256, column 9-14: syntax error
>
> For example we cannot use words like enable/disable for var name or
> group name but we can use disabled or enabled:
>
> group_name.enable = 1 descr "test variable"
>
> Looking into the cfg.lex file, I noticed that these are keywords which
> will be interpreted as values (I don't have too much experience with
> flex/bison so I am not sure I got this right).
>
> We have been using Kamailio 4.4 to test this, but I think it is not
> specific to a version.
>
> Is this behavior documented somewhere? If not, where should it be
> documented? Also can we have a more specific log message in this case?
>
this should be documented in the core cookbook:

  -
https://www.kamailio.org/wiki/cookbooks/devel/core#custom_global_parameters

Was it the only error message printed in this case?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - 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] RTPEngine a=rtcp-mux

2017-06-02 Thread Igor Olhovskiy
Getting same result..

v=0
o=- 1334974643 4 IN IP4 X.X.X.X
c=IN IP4 X.X.X.X
t=0 0
m=audio 41572 UDP/TLS/RTP/SAVPF 0 9 126
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:126 telephone-event/8000
a=fmtp:126 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=rtcp:41573
a=setup:active
a=fingerprint:sha-1 79:28:0E:B7:44:65:8F:69:9A:B5:A6:A4:FF:79:A8:78:51:X:X:X
a=ice-ufrag:skh8lj8m
a=ice-pwd:FE5tjyUuBmWDaVhE3zcsYgZr52
a=candidate:YLrFRpDB3kwIFygB 1 UDP 2130706431 120.76.27.231 41572 typ host
a=candidate:YLrFRpDB3kwIFygB 2 UDP 2130706430 120.76.27.231 41573 typ host
m=video 0 UDP/TLS/RTP/SAVPF 96 98 100 102 127 97 99 101 125
c=IN IP4 X.X.X.X


Regards, Igor

On 2 июня 2017 г., 14:57 +0300, Richard Fuchs , wrote:
> On 02/06/17 07:40 AM, Igor Olhovskiy wrote:
> > Hi!
> >
> > I’m trying to make RTPEngine to work with calls Browser <-> SIP.
> > Call From SIP to Browser working perfectly, but when calling to SIP from 
> > Browser, on 200 OK (sdp) I don’t receive
> > ...
> > a=rtcp-mux
> > ...
> > lines, but it was told to RTPEngine on reply_route to add this. And this 
> > line is mandatory for me, cause I don’t control JS softphone on other side
> >
> > Reply route in a case of Browser->SIP call looks like
> >
> > reply_route[REPLY_R] {
> > …
> >   rtpengine_answer("internal external UDP/TLS/RTP/SAVPF ICE=force 
> > rtcp-mux-offer");
> > ...
> > }
> >
> > Also I’ve tried with rtcp-mux-accept but still no luck
>
> You cannot "offer" rtcp-mux an in "answer".
>
> I believe what you want is to use rtcp-mux-demux in the offer.
>
> Cheers
> ___
> 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] RTPEngine a=rtcp-mux

2017-06-02 Thread Richard Fuchs

On 02/06/17 07:40 AM, Igor Olhovskiy wrote:

Hi!

I’m trying to make RTPEngine to work with calls Browser <-> SIP.
Call From SIP to Browser working perfectly, but when calling to SIP 
from Browser, on 200 OK (sdp) I don’t receive

...
a=rtcp-mux
...
lines, but it was told to RTPEngine on reply_route to add this. And 
this line is mandatory for me, cause I don’t control JS softphone on 
other side


Reply route in a case of Browser->SIP call looks like

reply_route[REPLY_R] {
…
  rtpengine_answer("internal external UDP/TLS/RTP/SAVPF ICE=force 
rtcp-mux-offer");

...
}

Also I’ve tried with rtcp-mux-accept but still no luck


You cannot "offer" rtcp-mux an in "answer".

I believe what you want is to use rtcp-mux-demux in the offer.

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


[SR-Users] RTPEngine a=rtcp-mux

2017-06-02 Thread Igor Olhovskiy
Hi!

I’m trying to make RTPEngine to work with calls Browser <-> SIP.
Call From SIP to Browser working perfectly, but when calling to SIP from 
Browser, on 200 OK (sdp) I don’t receive
...
a=rtcp-mux
...
lines, but it was told to RTPEngine on reply_route to add this. And this line 
is mandatory for me, cause I don’t control JS softphone on other side

Reply route in a case of Browser->SIP call looks like

reply_route[REPLY_R] {
…
  rtpengine_answer("internal external UDP/TLS/RTP/SAVPF ICE=force 
rtcp-mux-offer");
...
}

Also I’ve tried with rtcp-mux-accept but still no luck


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


[SR-Users] Using reserved keywords in cfg variables

2017-06-02 Thread Paul Claudiu Boriga

Hello all,

We found out that when using cfg variables certain keywords are not 
allowed, and Kamailio logs a generic error:
 [cfg.y:3368]: yyerror_at(): parse error in config file 
/etc/kamailio/kamailio.cfg, line 256, column 9-14: syntax error


For example we cannot use words like enable/disable for var name or 
group name but we can use disabled or enabled:


group_name.enable = 1 descr "test variable"

Looking into the cfg.lex file, I noticed that these are keywords which 
will be interpreted as values (I don't have too much experience with 
flex/bison so I am not sure I got this right).


We have been using Kamailio 4.4 to test this, but I think it is not 
specific to a version.


Is this behavior documented somewhere? If not, where should it be 
documented? Also can we have a more specific log message in this case?


Thank you,

Claudiu Boriga.


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


Re: [SR-Users] Multiple c params in SDP

2017-06-02 Thread Daniel-Constantin Mierla
Hello,

there are some flags that you can set when sending the command to rtpengine:

  -
https://www.kamailio.org/docs/modules/stable/modules/rtpengine.html#rtpengine.f.rtpengine_offer

In old format (also for rtpproxy) was 'c' for what you want, now it
should be 'replace-session-connection'.

Cheers,
Daniel


On 02.06.17 10:57, Grant Bagdasarian wrote:
>
> Hi,
>
>  
>
> We’re currently using Kamailio 4.4.1 with RTPENGINE and one of our
> clients is sending an INVITE with two c params in the SDP, one in the
> Session Description, one in the Media Description.
>
> When Kamailio contacts RTPENGINE to request a port, only the IP (c
> param) in the Media Description is changed.
>
> The next hop, which is a Freeswitch, in turn sends the RTP stream to
> the IP in the Session Description.
>
>
> Has anyone experienced this behavior? Is it possible to change both IP
> (c param) in the Session and Media Description?
>
>  
>
> Regards,
>
>  
>
> Grant
>
>  
>
>
>
> ___
> 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 Advanced Training - www.asipto.com
Kamailio World Conference - 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] Multiple c params in SDP

2017-06-02 Thread Grant Bagdasarian
Hi,

We're currently using Kamailio 4.4.1 with RTPENGINE and one of our clients is 
sending an INVITE with two c params in the SDP, one in the Session Description, 
one in the Media Description.
When Kamailio contacts RTPENGINE to request a port, only the IP (c param) in 
the Media Description is changed.
The next hop, which is a Freeswitch, in turn sends the RTP stream to the IP in 
the Session Description.

Has anyone experienced this behavior? Is it possible to change both IP (c 
param) in the Session and Media Description?

Regards,

Grant

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


[SR-Users] SDP rewrite causing extra IP to be inserted.

2017-06-02 Thread Steven Meyer
I have an SDP rewrite and it is adding a duplicate IP to the connection address.


c=IN IP4 WWW.XXX.YY.ZZWWW.XXX.YY.ZZ

route[TOFUSIONPBX] { route(DISPATCH); #Set the reply to handle sdp rewrite 
xlog("L_INFO","route[TOFUSIONPBX]: Inside the TOFUSIONPBX"); #t_relay(); 
route(RELAY); exit; }
route[CHANGE_SDP] { xlog("L_INFO","In the CHANGE_SDP Route"); if 
(has_body("application/sdp") ) { xlog("L_INFO","On reply from the FUSIONPBX, 
which changes the SDP"); if (route(FROMFUSIONPBX)) { 
fix_nated_sdp("2","LOAD_BALANCER_PUBLIC_ADDRESS"); } } }

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


[SR-Users] Mysql driver error Table was not locked with LOCK TABLES

2017-06-02 Thread Arsen
Hi guys,

Maybe someone can share a quick tip how we can fix this issue?

/usr/local/sbin/kamailio[24268]: ERROR: db_mysql [km_dbase.c:128]:
db_mysql_submit_query(): driver error on query: Table 'sip_trace' was not
locked with LOCK TABLES (1100)
/usr/local/sbin/kamailio[24268]: ERROR:  [db_query.c:235]:
db_do_insert_cmd(): error while submitting query
/usr/local/sbin/kamailio[24268]: ERROR: siptrace [siptrace.c:859]:
sip_trace_store_db(): error storing trace

Kamailio 4.4.0 installed from git. Database created with kamdbctl.

Thanks!

-- 
Regards,

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