Re: [SR-Users] Kazoo like load balancing

2015-07-22 Thread Jurijs Ivolga
Hi Daniel,

First of all, thank you for your help!

Below you can find more detailed info:

I have following infrastructure:

22@10.50.210.9:6574 - UAC
11@10.50.210.9:50365 - UAC

10.101.237.133 - Loadbalancer Kamailio
10.101.241.55 - Kamailio Proxy, where UACs are registered

So this is how Invite travels

Invite (1)22@10.50.210.9:6574 = 10.101.237.133 - Loadbalancer
Invite (2)10.101.237.133 - Loadbalancer = 10.101.241.55 - Kamailio Proxy
Invite (3)10.101.241.55 - Kamailio Proxy = 10.101.237.133 - Loadbalancer
Invite (4)10.101.237.133 - Loadbalancer = 10.101.241.55 - Kamailio Proxy
407 Error (5)10.101.241.55 - Kamailio Proxy = 10.101.237.133 -
Loadbalancer

So invite get stuck at LB 10.101.237.133, it should send invite to
11@10.50.210.9:50365 at step (4) but it sends to Proxy back instead. After
this proxy replies with 407 error.

Please find full SIP trace in attachment.

Thank you!

With kind regards,

Jurijs

2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
  So basically extension 100 sends invite to LB, LB then send invite to
  Kamailio server and Kamailio server replies with 407 error.
 
  Do you have any ideas why?

 No, you'll have to debug this the usual way. Run kamailio at a highe debug
 level to see what it is doing and log queries to the database. You'll have
 to
 make captures to see how the flow op sip messages is and who is requiring
 authentication.

  Maybe you can give me more details about config on Kamailio server behind
  LB?

 The config is equal to standard in this regard. Show us your config for the
 backend regarding authentication and registration.

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

#
U 2015/07/22 10:46:19.362379 10.50.210.9:6574 - 10.101.237.133:5060
INVITE sip:1...@voipdev.mydomain.net SIP/2.0.
Via: SIP/2.0/UDP 192.168.5.148:55529;branch=z9hG4bK.Lp01Vj8qs;rport.
From: sip:2...@voipdev.mydomain.net;tag=AZWk8e87s.
To: sip:1...@voipdev.mydomain.net.
CSeq: 20 INVITE.
Call-ID: LJoKbYM0YY.
Max-Forwards: 70.
Supported: outbound.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, 
INFO, UPDATE.
Content-Type: application/sdp.
Content-Length: 557.
Contact: 
sip:22@10.50.210.9:6574;+sip.instance=urn:uuid:c1c7dbe5-7dac-4d3f-a496-af9fde38a0e7.
User-Agent: LinphoneAndroid/2.4.1 (belle-sip/1.4.1).
.
v=0.
o=22 4026 1869 IN IP4 192.168.5.148.
s=Talk.
c=IN IP4 192.168.5.148.
b=AS:380.
t=0 0.
a=rtcp-xr:rcvr-rtt=all:1 stat-summary=loss,dup,jitt,TTL voip-metrics.
m=audio 7076 RTP/AVP 96 97 98 99 0 8 101 100 102.
a=rtpmap:96 opus/48000/2.
a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0.
a=rtpmap:97 SILK/16000.
a=rtpmap:98 speex/16000.
a=fmtp:98 vbr=on.
a=rtpmap:99 speex/8000.
a=fmtp:99 vbr=on.
a=rtpmap:101 telephone-event/48000.
a=rtpmap:100 telephone-event/16000.
a=rtpmap:102 telephone-event/8000.
m=video 9078 RTP/AVP 96.
a=rtpmap:96 VP8/9.

#
U 2015/07/22 10:46:19.364240 10.101.237.133:5060 - 10.50.210.9:6574
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP 
192.168.5.148:55529;branch=z9hG4bK.Lp01Vj8qs;rport=6574;received=10.50.210.9.
From: sip:2...@voipdev.mydomain.net;tag=AZWk8e87s.
To: sip:1...@voipdev.mydomain.net.
CSeq: 20 INVITE.
Call-ID: LJoKbYM0YY.
Server: kamailio (4.3.1 (x86_64/linux)).
Content-Length: 0.
.

#
U 2015/07/22 10:46:19.366730 10.101.237.133:5060 - 10.101.241.55:5060
INVITE sip:1...@voipdev.mydomain.net SIP/2.0.
Record-Route: sip:10.101.237.133;lr;nat=yes.
Via: SIP/2.0/UDP 
10.101.237.133;branch=z9hG4bK8f82.23ebd7beee7641516f01572434199e7f.0.
Via: SIP/2.0/UDP 
192.168.5.148:55529;received=10.50.210.9;branch=z9hG4bK.Lp01Vj8qs;rport=6574.
From: sip:2...@voipdev.mydomain.net;tag=AZWk8e87s.
To: sip:1...@voipdev.mydomain.net.
CSeq: 20 INVITE.
Call-ID: LJoKbYM0YY.
Max-Forwards: 70.
Supported: outbound.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, 
INFO, UPDATE.
Content-Type: application/sdp.
Content-Length: 557.
Contact: 
sip:22@10.50.210.9:6574;+sip.instance=urn:uuid:c1c7dbe5-7dac-4d3f-a496-af9fde38a0e7.
User-Agent: LinphoneAndroid/2.4.1 (belle-sip/1.4.1).
Path: sip:loadbalancer@10.101.237.133;lr;received=sip:10.50.210.9:6574.
.
v=0.
o=22 4026 1869 IN IP4 192.168.5.148.
s=Talk.
c=IN IP4 192.168.5.148.
b=AS:380.
t=0 0.
a=rtcp-xr:rcvr-rtt=all:1 stat-summary=loss,dup,jitt,TTL voip-metrics.
m=audio 7076 RTP/AVP 96 97 98 99 0 8 101 100 102.
a=rtpmap:96 opus/48000/2.
a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0.
a=rtpmap:97 SILK/16000.
a=rtpmap:98 speex/16000.
a=fmtp:98 vbr=on.
a=rtpmap:99 speex/8000.
a=fmtp:99 vbr=on.
a=rtpmap:101 telephone-event/48000.
a=rtpmap:100 telephone-event/16000.
a=rtpmap:102 telephone-event/8000.
m=video 9078 RTP/AVP 96.
a=rtpmap:96 VP8/9.

#
U 2015/07/22 10:46:19.370363 10.101.241.55:5060 - 10.101.237.133:5060

Re: [SR-Users] Kazoo like load balancing

2015-07-21 Thread Jurijs Ivolga
Hi Daniel,

I'm still not able to make a call, now I'm getting SIP/2.0 407 Proxy
Authentication Required from Kamailio server which is behind Load-balancer
server.

So basically extension 100 sends invite to LB, LB then send invite to
Kamailio server and Kamailio server replies with 407 error.

Do you have any ideas why?

Maybe you can give me more details about config on Kamailio server behind
LB?

Additionally I can see that path details are written to DB, so this part is
working. :)

Thank you in advance!

With kind regards,

Jurijs


2015-07-21 14:32 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 14:14:29 Jurijs Ivolga wrote:
  I believe I need to add some config to my Kamailio servers what are
 behind
  Load-balancer too, so all communication should be send via Loadbalancer.
 
  Maybe you can give me a hint about this part too?

 There you need to use path for register and ursloc:

 modparam(registrar, use_path, 1)
 modparam(registrar, path_mode, 1)
 modparam(registrar, path_use_received, 1)

 modparam(usrloc, matching_mode, 2)

 The rest is unaltered from my usual config, apart from custom business
 logic
 the only alteration is to force rtpproxy for all calls.

 But beware, I'm not using any of this loadbalancing setup yet in
 production. I
 want to do more testing (but haven't gotten around to it yet)

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-22 Thread Jurijs Ivolga
Hi,

And attachment. :)

With kind regards,

Jurijs

2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
  So basically extension 100 sends invite to LB, LB then send invite to
  Kamailio server and Kamailio server replies with 407 error.
 
  Do you have any ideas why?

 No, you'll have to debug this the usual way. Run kamailio at a highe debug
 level to see what it is doing and log queries to the database. You'll have
 to
 make captures to see how the flow op sip messages is and who is requiring
 authentication.

  Maybe you can give me more details about config on Kamailio server behind
  LB?

 The config is equal to standard in this regard. Show us your config for the
 backend regarding authentication and registration.

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.3 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: sr-users@lists.sip-router.org
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
#
# Several features can be enabled using '#!define WITH_FEATURE' directives:
#
# *** To run in debug mode: 
# - define WITH_DEBUG
#
# *** To enable mysql: 
# - define WITH_MYSQL
#
# *** To enable authentication execute:
# - enable mysql
# - define WITH_AUTH
# - add users using 'kamctl'
#
# *** To enable IP authentication execute:
# - enable mysql
# - enable authentication
# - define WITH_IPAUTH
# - add IP addresses with group id '1' to 'address' table
#
# *** To enable persistent user location execute:
# - enable mysql
# - define WITH_USRLOCDB
#
# *** To enable presence server execute:
# - enable mysql
# - define WITH_PRESENCE
#
# *** To enable nat traversal execute:
# - define WITH_NAT
# - install RTPProxy: http://www.rtpproxy.org
# - start RTPProxy:
#rtpproxy -l _your_public_ip_ -s udp:localhost:7722
# - option for NAT SIP OPTIONS keepalives: WITH_NATSIPPING
#
# *** To enable PSTN gateway routing execute:
# - define WITH_PSTN
# - set the value of pstn.gw_ip
# - check route[PSTN] for regexp routing condition
#
# *** To enable database aliases lookup execute:
# - enable mysql
# - define WITH_ALIASDB
#
# *** To enable speed dial lookup execute:
# - enable mysql
# - define WITH_SPEEDDIAL
#
# *** To enable multi-domain support execute:
# - enable mysql
# - define WITH_MULTIDOMAIN
#
# *** To enable TLS support execute:
# - adjust CFGDIR/tls.cfg as needed
# - define WITH_TLS
#
# *** To enable XMLRPC support execute:
# - define WITH_XMLRPC
# - adjust route[XMLRPC] for access policy
#
# *** To enable anti-flood detection execute:
# - adjust pike and htable=ipban settings as needed (default is
#   block if more than 16 requests in 2 seconds and ban for 300 seconds)
# - define WITH_ANTIFLOOD
#
# *** To block 3XX redirect replies execute:
# - define WITH_BLOCK3XX
#
# *** To enable VoiceMail routing execute:
# - define WITH_VOICEMAIL
# - set the value of voicemail.srv_ip
# - adjust the value of voicemail.srv_port
#
# *** To enhance accounting execute:
# - enable mysql
# - define WITH_ACCDB
# - add following columns to database
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_MULTIDOMAIN
#!define WITH_NAT
#define WITH_NATSIPPING
#!ifdef ACCDB_COMMENT
  ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_ip varchar(64) NOT NULL default '';
  ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT 
'';
  ALTER TABLE missed_calls ADD COLUMN src_ip varchar(64) NOT NULL default '';
  ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT 
'';
#!endif

### Include Local Config If Exists #
import_file kamailio-local.cfg

### Defined Values #

# *** Value defines - IDs used later in config
#!ifdef WITH_MYSQL
# - database URL - used to connect to database server by modules such
#   as: auth_db, acc, usrloc, a.s.o.
#!ifndef DBURL
#!define DBURL

Re: [SR-Users] Kazoo like load balancing

2015-07-22 Thread Jurijs Ivolga
Hi,

Please find my config in attachment. I'm using default config, with minor
changes.

Please let me know if you need any additional info for debugging this issue.

With kind regards,

Jurijs

2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
  So basically extension 100 sends invite to LB, LB then send invite to
  Kamailio server and Kamailio server replies with 407 error.
 
  Do you have any ideas why?

 No, you'll have to debug this the usual way. Run kamailio at a highe debug
 level to see what it is doing and log queries to the database. You'll have
 to
 make captures to see how the flow op sip messages is and who is requiring
 authentication.

  Maybe you can give me more details about config on Kamailio server behind
  LB?

 The config is equal to standard in this regard. Show us your config for the
 backend regarding authentication and registration.

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



kamailio.cfg
Description: Binary data
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-23 Thread Jurijs Ivolga
Hi,


Strange part that my LB receives invite with Route header:

U 2015/07/22 10:46:19.531380 10.101.241.55:5060 - 10.101.237.133:5060
INVITE sip:11 at 10.50.210.9
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users:50365
SIP/2.0.
Record-Route: sip:10.101.241.55;lr;nat=yes.
Record-Route: sip:10.101.237.133;lr;nat=yes.
Via: SIP/2.0/UDP
10.101.241.55;branch=z9hG4bK9f82.ae0b52341a6aa41d8f28e7f65ed9fd55.0.*Route:
sip:loadbalancer at 10.101.237.133
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users;lr;received=sip:10.50.210.9:50365
http://10.50.210.9:50365*.
Via: SIP/2.0/UDP
10.101.237.133;rport=5060;branch=z9hG4bK9f82.68623c2d6329f689d3ab43fdd3cf83c5.0.
Via: SIP/2.0/UDP
192.168.5.148:55529;received=10.50.210.9;branch=z9hG4bK.jWzhtRBsW;rport=6574.
From: sip:22 at voipdev.mydomain.net
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users;tag=AZWk8e87s.
To: sip:11 at voipdev.mydomain.net.
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
CSeq: 21 INVITE.
Call-ID: LJoKbYM0YY.
Max-Forwards: 69.
Supported: outbound.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO, UPDATE.
Content-Type: application/sdp.
Content-Length: 577.
Contact: sip:22 at 10.50.210.9
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users:6574;+sip.instance=urn:uuid:c1c7dbe5-7dac-4d3f-a496-af9fde38a0e7.
User-Agent: LinphoneAndroid/2.4.1 (belle-sip/1.4.1).
Path: sip:loadbalancer at 10.101.237.133
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users;lr;received=sip:10.50.210.9:6574.
.
v=0.
o=22 4026 1869 IN IP4 10.101.254.33.
s=Talk.
c=IN IP4 10.101.254.33.
b=AS:380.
t=0 0.
a=rtcp-xr:rcvr-rtt=all:1 stat-summary=loss,dup,jitt,TTL voip-metrics.
m=audio 46696 RTP/AVP 96 97 98 99 0 8 101 100 102.
a=rtpmap:96 opus/48000/2.
a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0.
a=rtpmap:97 SILK/16000.
a=rtpmap:98 speex/16000.
a=fmtp:98 vbr=on.
a=rtpmap:99 speex/8000.
a=fmtp:99 vbr=on.
a=rtpmap:101 telephone-event/48000.
a=rtpm

But instead of sending this Invite to: received=sip:10.50.210.9:50365 it
sends back to Kamailio Proxy(10.101.241.55), even if I have following line
in my config.

modparam(path, use_received, 1)

Maybe somebody have any idea why?

Thank you in advance!

With kind regards,

Jurijs

2015-07-21 19:18 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 17:59:53 Jurijs Ivolga wrote:
  So basically extension 100 sends invite to LB, LB then send invite to
  Kamailio server and Kamailio server replies with 407 error.
 
  Do you have any ideas why?

 No, you'll have to debug this the usual way. Run kamailio at a highe debug
 level to see what it is doing and log queries to the database. You'll have
 to
 make captures to see how the flow op sip messages is and who is requiring
 authentication.

  Maybe you can give me more details about config on Kamailio server behind
  LB?

 The config is equal to standard in this regard. Show us your config for the
 backend regarding authentication and registration.

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kazoo like load balancing

2015-07-20 Thread Jurijs Ivolga
Hi,

First of all I would like to mention, that I'm very new to Kamailio. :)
My target is to create simple load-balancing similar what have Kazoo,
basically 2 servers will share same domain name.
I installed 2 Kamailio 4.3 servers and configured this 2 servers with one
domain address. I used almost default config with:

#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_MULTIDOMAIN
#!define WITH_NAT
#!define WITH_NATSIPPING

Calls are going through if I register both clients to one server.

But all my calls are failing, when clients are registered to different
servers with error 404 Not Found. Maybe somebody can give me a hint how
to make this work.

Thank you!

With kind regards,

Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-20 Thread Jurijs Ivolga
Hi,

I'm very sorry. :)

But could you please provide more info?

Should I add add_path() before if (!save(location))?

With kind regards,

Jurijs

2015-07-20 14:04 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Monday 20 July 2015 13:48:30 Jurijs Ivolga wrote:
  But all my calls are failing, when clients are registered to different
  servers with error 404 Not Found. Maybe somebody can give me a hint how
  to make this work.

 Use Path:

 http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html

 --

 Telefoon: 088 0100 700
 Sales: sa...@pocos.nl | Service: serviced...@pocos.nl
 http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
 17097024


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-20 Thread Jurijs Ivolga
Hi,

Thank you for your help!

In my case i have 2 servers: 192.168.100.1  192.168.100.2
Both of this servers have one domain name voip.bla.com

No load-balancer is used.

I can register to any of this server with user 1...@voip.bla.com and
2...@voip.bla.com

Call is failing when I'm trying to call from 1...@voip.bla.com to
2...@voip.bla.com, when user 1...@voip.bla.com registered to 192.168.100.1
and 2...@voip.bla.com registered to 192.168.100.2.

As far as I understood I need to add path header.

Could you please let me know where exactly I need to add path header? I'm
using default config, with almost no changes.

Additionally it is little bit confusing about parameters what I should add.

Should I add following parameters to config file or not?

modparam(usrloc, matching_mode, 1)
modparam(registrar, use_path, 1)

Thank you!

2015-07-20 16:31 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Monday 20 July 2015 16:02:00 Jurijs Ivolga wrote:
  But could you please provide more info?
 
  Should I add add_path() before if (!save(location))?

 Path is a module you can use for user lookups/registration

 http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.matching_mode

 http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.p.use_path

 Depending on how you register on a registrater server you'll need to add
 the
 Path header (in my previuos supplied URL, clients which register directly
 to a
 register server don't have any Path headers, so I added them manually
 (because
 add_path doesn't work in that place/time of routing/handling). If you are
 using a loadbalancer that adds Path headers then ofcourse adding Path
 headers
 before save() isn't neccessary.

 My guess is your question is kind of the same as the one I asked (I don't
 know
 what Kazoo is/does):
 http://lists.sip-router.org/pipermail/sr-users/2015-April/087867.html


 --

 Telefoon: 088 0100 700
 Sales: sa...@pocos.nl | Service: serviced...@pocos.nl
 http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
 17097024


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-21 Thread Jurijs Ivolga
Hi Daniel  Adam,

First of all I would like to apologies for mess.

My set-up is working as it is with default settings, when 2 servers share
same DB in case if our subscribers do not use NAT.

If subscribers are behind NAT, then in this case such set-up will not work,
as described here:

http://kb.smartvox.co.uk/opensips/clustering-opensips-part-2/

Please check diagram under Far-end NAT traversal on multi-homed or
clustered servers.

I believe in my case solution will be only when I will have one more
Kamailio in front of my servers and it will dispatch all request to 2
servers, in this case I will eliminate this NAT issue.

With kind regards,

Jurijs

2015-07-21 9:36 GMT+03:00 Adam Romanek a.roma...@fibargroup.com:

 Hi Daniel,

 Does this assume that both Kamailios are connected to the same MySQL
 database?

 I must admit I don't understand how it should work. What's the background
 behind this technique with path?

 Best regards,
 Adam Romanek

 On 20.07.2015 18:15, Daniel Tryba wrote:

 On Monday 20 July 2015 17:11:38 Jurijs Ivolga wrote:

 Could you please let me know where exactly I need to add path header? I'm
 using default config, with almost no changes.

 Just before the save() like in
 http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html


 Additionally it is little bit confusing about parameters what I should
 add.

 Should I add following parameters to config file or not?

 modparam(usrloc, matching_mode, 1)
 modparam(registrar, use_path, 1)

 modparam(usrloc, matching_mode, 2)
 modparam(registrar, use_path, 1)
 modparam(registrar, path_mode, 1)




 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-21 Thread Jurijs Ivolga
Hi Daniel,

Thank you a lot!

I believe I need to add some config to my Kamailio servers what are behind
Load-balancer too, so all communication should be send via Loadbalancer.

Maybe you can give me a hint about this part too?

Thank you a lot!

With kind regards,

Jurijs

2015-07-21 13:12 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 12:45:02 Jurijs Ivolga wrote:
  Maybe you can share with me full config of your load-balancer? It will be
  really nice if I can take a look on it. I'm very new in kamailio and for
 me
  is very difficult to complile working config from short code snippets. :)

 See attachment. It is essentially the default config with some shortcuts
 for
 nat detection based on subnet and path support added.

  You mentioned that you have 2 load-balancer. Does this 2 load-balancers
  share one domain-name?

 Yes. The idea is that:
 -smart user agents can use SRV DNS records to do failover
 -not so smart user agents use the A DNS record (short ttl, maybe round
 robin)
 -stupid user agents use the ip adress of a loadbalancer by default and the
 other as backup

 The actual domain is rewritten before sending to backends.

  I was thinking to use dispatcher module for load balancing. Do you use
  dispatcher module in your config?

 Yes, you need to loadbalance with dispatcher that the same callid is always
 routed to the same backend server.


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kazoo like load balancing

2015-07-21 Thread Jurijs Ivolga
Hi Daniel,

Maybe you can share with me full config of your load-balancer? It will be
really nice if I can take a look on it. I'm very new in kamailio and for me
is very difficult to complile working config from short code snippets. :)

You mentioned that you have 2 load-balancer. Does this 2 load-balancers
share one domain-name?

I was thinking to use dispatcher module for load balancing. Do you use
dispatcher module in your config?

With kind regards,

Jurijs

2015-07-21 12:25 GMT+03:00 Daniel Tryba d.tr...@pocos.nl:

 On Tuesday 21 July 2015 11:13:15 Jurijs Ivolga wrote:
  My set-up is working as it is with default settings, when 2 servers share
  same DB in case if our subscribers do not use NAT.
 
  If subscribers are behind NAT, then in this case such set-up will not
 work,
  as described here:
 
  http://kb.smartvox.co.uk/opensips/clustering-opensips-part-2/
 
  Please check diagram under Far-end NAT traversal on multi-homed or
  clustered servers.

 Adding the Path header on save() should solve this problem. The top most
 path
 is either the register server itself or the other one. If it is the
 otherone
 the INVITE should be send there. But like I said in
 http://lists.sip-router.org/pipermail/sr-users/2015-April/087872.html
 I hate NAT :(

 I didn't look further into my routing problems but solved it with
 loadbalancers.

  I believe in my case solution will be only when I will have one more
  Kamailio in front of my servers and it will dispatch all request to 2
  servers, in this case I will eliminate this NAT issue.

 This solved my problem. Path points to loadbalancer and received in path to
 the external received address/port.

 UA1 registered to register1 via loadbalancer1
 UA2 registered to register2 via loadbalancer2

 if UA1 calls UA2, the call will go:
 UA1-LB1-random register-LB2 (based on path)-UA2 (based on path)

 These loadbalancers are very simple and essentially stateless.

 modparam(path, use_received, 1)

 ...

 request_route {
 route(NATDETECT);
 route(WITHINDLG);

 if (is_method(INVITE|SUBSCRIBE))
 {
 record_route();
 }

 if(!is_in_subnet($si, myvoicesubnet))
 {
 add_path_received(vialoadalancers);
 $rd=mydomain;

 ds_select_dst(1, 0);
 t_on_failure(RTF_DISPATCH);
 }
 else
 {
 add_path(fromregistrars);

 remove_hf(Route);

 loose_route();
 }

 route(RELAY);
 }


 --

 Telefoon: 088 0100 700
 Sales: sa...@pocos.nl | Service: serviced...@pocos.nl
 http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
 17097024


 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] If we print out $fu, $fU & $fd on onsend_route, it prints out incorrect values.

2015-12-04 Thread Jurijs Ivolga
Hi all,

I opened a bug here:

https://github.com/kamailio/kamailio/issues/430

But then I was advised to write to mailing list.

In nutshell:

I'm running Kamailio 4.3.3.

When I'm trying to update $ru, $fu & $fd in Kamailio conf:
$rU = "1000";
$fu = "sip:someth...@mydomain.com";
$fd = "newdomain.com";

And later I'm trying to print out $rU, $fu, $fU & $fd in onsend_route:

xlog("ALERT: From URI $fu \n");
xlog("ALERT: From domain $fd \n");
xlog("ALERT: From user $fU \n");
xlog("ALERT: Request user $rU \n");

Kamailio 4.3.3 prints out following:
ALERT: From URI sip:2000@some_ip
ALERT: From domain some_ip
ALERT: From user 2000
ALERT: Request user 1000

But I believe it should:

ALERT: From URI sip:someth...@mydomain.com
ALERT: From domain mydomain.com
ALERT: From user something
ALERT: Request user 1000

I'm using default Kamailio config with minor changes, you can check it in
attachment.

Is it proper behavior?

Thank you!

With kind regards,

Jurijs
#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.3 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: 
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.
#
# Several features can be enabled using '#!define WITH_FEATURE' directives:
#
# *** To run in debug mode: 
# - define WITH_DEBUG
#
# *** To enable mysql: 
# - define WITH_MYSQL
#
# *** To enable authentication execute:
# - enable mysql
# - define WITH_AUTH
# - add users using 'kamctl'
#
# *** To enable IP authentication execute:
# - enable mysql
# - enable authentication
# - define WITH_IPAUTH
# - add IP addresses with group id '1' to 'address' table
#
# *** To enable persistent user location execute:
# - enable mysql
# - define WITH_USRLOCDB
#
# *** To enable presence server execute:
# - enable mysql
# - define WITH_PRESENCE
#
# *** To enable nat traversal execute:
# - define WITH_NAT
# - install RTPProxy: http://www.rtpproxy.org
# - start RTPProxy:
#rtpproxy -l _your_public_ip_ -s udp:localhost:7722
# - option for NAT SIP OPTIONS keepalives: WITH_NATSIPPING
#
# *** To enable PSTN gateway routing execute:
# - define WITH_PSTN
# - set the value of pstn.gw_ip
# - check route[PSTN] for regexp routing condition
#
# *** To enable database aliases lookup execute:
# - enable mysql
# - define WITH_ALIASDB
#
# *** To enable speed dial lookup execute:
# - enable mysql
# - define WITH_SPEEDDIAL
#
# *** To enable multi-domain support execute:
# - enable mysql
# - define WITH_MULTIDOMAIN
#
# *** To enable TLS support execute:
# - adjust CFGDIR/tls.cfg as needed
# - define WITH_TLS
#
# *** To enable XMLRPC support execute:
# - define WITH_XMLRPC
# - adjust route[XMLRPC] for access policy
#
# *** To enable anti-flood detection execute:
# - adjust pike and htable=>ipban settings as needed (default is
#   block if more than 16 requests in 2 seconds and ban for 300 seconds)
# - define WITH_ANTIFLOOD
#
# *** To block 3XX redirect replies execute:
# - define WITH_BLOCK3XX
#
# *** To enable VoiceMail routing execute:
# - define WITH_VOICEMAIL
# - set the value of voicemail.srv_ip
# - adjust the value of voicemail.srv_port
#
# *** To enhance accounting execute:
# - enable mysql
# - define WITH_ACCDB
# - add following columns to database
#!ifdef ACCDB_COMMENT
  ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_ip varchar(64) NOT NULL default '';
  ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT 
'';
  ALTER TABLE missed_calls ADD COLUMN src_ip varchar(64) NOT NULL default '';
  ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT 
'';
#!endif

### Include Local Config If Exists #
import_file "kamailio-local.cfg"

### Defined Values #

# *** Value defines - IDs used later in config
#!ifdef WITH_MYSQL
# - database URL - used to connect to database server by modules such
#   as: auth_db, acc, usrloc, a.s.o.
#!ifndef DBURL
#!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio"
#!endif
#!endif
#!ifdef WITH_MULTIDOMAIN
# - the value for 'use_domain' parameters
#!define MULTIDOMAIN 1

[SR-Users] Installing 4.3 version from git

2015-12-07 Thread Jurijs Ivolga
Hi all,

I'm trying to install 4.3 version from git as described here:

http://www.kamailio.org/wiki/install/4.3.x/git

As far as I understood latest stable version is 4.3.3, but after installing
from git I'm getting 4.3.4 version which is I believe is development
version.

kamailio -version
version: kamailio 4.3.4 (x86_64/linux) 583dc0

Could you please check this?

With kind regards,

Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio crashing after comparing AVP with string

2015-12-17 Thread Jurijs Ivolga
Hi,

I have weird behavior, when I'm trying to compare AVP with string:

if ($avp(AVP_ATTRS) != "bla") {
ds_next_dst();
}

$avp(AVP_ATTRS) contains Dispatcher attribute.

Kamailio crashes:

Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: CRITICAL: 
[pass_fd.c:275]: receive_fd(): EOF on 15
Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT:  [main.c:728]:
handle_sigs(): child process 4816 exited by a signal 11
Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT:  [main.c:731]:
handle_sigs(): core was not generated
Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: INFO:  [main.c:743]:
handle_sigs(): terminating due to SIGCHLD
Dec 17 03:39:30 /usr/local/sbin/kamailio[4843]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4842]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4841]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4840]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4839]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4838]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4837]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4836]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4835]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4834]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4829]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4814]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4815]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4823]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4813]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4821]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4812]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4818]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4825]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4819]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4822]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: INFO:  [main.c:798]:
sig_usr(): signal 15 received
Dec 17 03:39:30 /usr/local/sbin/kamailio[4830]: INFO:  [main.c:798]:
sig_usr(): signal 15 received

Following code works fine:

if ($avp(AVP_ATTRS) == "bla") {
ds_next_dst();
}

Kamailio version:

version: kamailio 4.3.4 (x86_64/linux) a56227
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: a56227
compiled on 03:29:23 Dec 17 2015 with gcc 4.4.7

Thak you!

With kind regards,

Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio crashing after comparing AVP with string

2015-12-17 Thread Jurijs Ivolga
Hi,

Just quick question, before sending some more debug info.

I just figured out that issue is related to dispatcher list, I'm using text
file. Following dispatcher list do not work:

1 sip:1.1.1.1;transport=udp 0 0 bla
1 sip:2.2.2.2;transport=udp 0 0 blabla

But if I use below one, it works without any issue:

1 sip:1.1.1.1;transport=udp 0 0
1 sip:2.2.2.2;transport=udp 0 0

Maybe my attributes are incorrect?

With kind regards,

Jurijs



2015-12-17 10:45 GMT+02:00 Daniel-Constantin Mierla <mico...@gmail.com>:

> Hello,
>
> reproduce the case with 'ulimit -c unlimited' executed in the terminal
> before starting kamailio. You should get a corefile and then get the output
> of 'bt full' in the gdb (gdb /path/to/kamailio /path/to/corefile). Send the
> output here to investigate it.
>
> Cheers,
> Daniel
>
> On 17/12/15 09:41, Jurijs Ivolga wrote:
>
> Hi,
>
> I have weird behavior, when I'm trying to compare AVP with string:
>
> if ($avp(AVP_ATTRS) != "bla") {
> ds_next_dst();
> }
>
> $avp(AVP_ATTRS) contains Dispatcher attribute.
>
> Kamailio crashes:
>
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: CRITICAL: 
> [pass_fd.c:275]: receive_fd(): EOF on 15
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: 
> [main.c:728]: handle_sigs(): child process 4816 exited by a signal 11
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: 
> [main.c:731]: handle_sigs(): core was not generated
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: INFO:  [main.c:743]:
> handle_sigs(): terminating due to SIGCHLD
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4843]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4842]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4841]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4840]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4839]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4838]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4837]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4836]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4835]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4834]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4829]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4814]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4815]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4823]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4813]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4821]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4812]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4818]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4825]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4819]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4822]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
> Dec 17 03:39:30 /usr/local/sbin/kamailio[4830]: INFO:  [main.c:798]:
> sig_usr(): signal 15 received
>
> Following code works fine:
>
> if ($avp(AVP_ATTRS) == "bla") {
> ds_next_dst();
> }
>
> Kamailio version:
>
> version: kamailio 4.3.4 (x86_64/linux) a56227
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
> USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: a56227
> compiled on 03:29:23 Dec 17 2015 with gcc 4.4.7
>
> Thak you!
>
&

Re: [SR-Users] kamailio as simple sip forwarder / gateway / proxy

2015-12-17 Thread Jurijs Ivolga
Hi Peter,

I created simple config for freeswitch+kamailio set-up, where everything
including registration is handled by Freeswitch(PBX) and you can try to use
it, maybe this is what you need.

https://github.com/os11k/dispatcher

I never tested in in prod, so use it on your own risk.

With kind regards,

Jurijs

2015-12-17 17:36 GMT+02:00 Peter Gervai :

> Hello,
>
> I've been browsing the net and the (not so friendly) documentation but
> found no readily available solution.
> I have tried to fabricate on myself but it seems it's not that easy
> without getting deeply familarised with
> SIP protocol internals which I don't quite want know.
>
> The problem seems simple enough, maybe you can easily tell the solution.
>
> There is kamailio at ip 256.10.10.1. It's task is to accept
> connections from SIP clients
> and forward them to PBX at 256.20.20.1, and accept PBX packets and
> forward them to the
> clients.  PBX handles registration, options, invites, everything.
> Kamailio does not authenticate, authorise, just forwards everything
> back and forth, like a mindless proxy.
> No NAT involved.
>
> [The reason is that K. have to call external scripts whenever an
> outbound call (towards the clients) is
> initiated, which the PBX is unable to. Please don't advise other
> solutions (which isn't able to call executables
> in-session).]
>
> I have created a simplistic config which is not expected to work and
> it doesn't quite (plenty of security stuff left out now):
>
> route {
>  if(src_ip==myself) {
>add_path();
>$du="sip:256.20.20.1:95060";
>  } else {
>   if(src_ip!="256.20.20.1") {
> $du="sip:256.20.20.1:95060";
>   } else { #from gateway pkts aren't changed
>   }
>
>   if(!t_relay()) {
> sl_reply_error();
> break;
>   }
> }
>
>
> There is several possible problems, but it seems Contact: is one main
> one since it contains the client instead of
> the proxy. Possibly this may even be the almost-good solution.
>
> I'm sure there's an easy and pretty solution so before I start to make
> ugly ones I ask the wise people.
>
> Thanks,
> Peter
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio crashing after comparing AVP with string

2016-01-07 Thread Jurijs Ivolga
Hi all!

To follow-up on this issue, I created sample config file which is killing
Kamailio. :)

Please find in attachment kamailio config and dispatcher config file.

To crash kamailio dispatcher list file should contain at least 2 records
and all destinations(It looks like it is enough even if 1 destination are
unavaillable) should not be available. I tested with dispatcher list in DB
and same result.

If we remove attribute bla, from dispatcher list then kamailio is not
crashing:

1 sip:192.168.5.233:5060;transport=udp 2 0
1 sip:192.168.5.232:5060;transport=udp 2 0


I believe this is rare case, but I think it is a bug. :)

Please help. :)

Thank you!

With kind regards,

Jurijs



2015-12-17 12:25 GMT+02:00 Jurijs Ivolga <jurij@gmail.com>:

> Hi,
>
> Just quick question, before sending some more debug info.
>
> I just figured out that issue is related to dispatcher list, I'm using
> text file. Following dispatcher list do not work:
>
> 1 sip:1.1.1.1;transport=udp 0 0 bla
> 1 sip:2.2.2.2;transport=udp 0 0 blabla
>
> But if I use below one, it works without any issue:
>
> 1 sip:1.1.1.1;transport=udp 0 0
> 1 sip:2.2.2.2;transport=udp 0 0
>
> Maybe my attributes are incorrect?
>
> With kind regards,
>
> Jurijs
>
>
>
> 2015-12-17 10:45 GMT+02:00 Daniel-Constantin Mierla <mico...@gmail.com>:
>
>> Hello,
>>
>> reproduce the case with 'ulimit -c unlimited' executed in the terminal
>> before starting kamailio. You should get a corefile and then get the output
>> of 'bt full' in the gdb (gdb /path/to/kamailio /path/to/corefile). Send the
>> output here to investigate it.
>>
>> Cheers,
>> Daniel
>>
>> On 17/12/15 09:41, Jurijs Ivolga wrote:
>>
>> Hi,
>>
>> I have weird behavior, when I'm trying to compare AVP with string:
>>
>> if ($avp(AVP_ATTRS) != "bla") {
>> ds_next_dst();
>> }
>>
>> $avp(AVP_ATTRS) contains Dispatcher attribute.
>>
>> Kamailio crashes:
>>
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: CRITICAL: 
>> [pass_fd.c:275]: receive_fd(): EOF on 15
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: 
>> [main.c:728]: handle_sigs(): child process 4816 exited by a signal 11
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: 
>> [main.c:731]: handle_sigs(): core was not generated
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: INFO: 
>> [main.c:743]: handle_sigs(): terminating due to SIGCHLD
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4843]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4842]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4841]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4840]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4839]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4838]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4837]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4836]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4835]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4834]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4829]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4814]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4815]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4823]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4813]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4821]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4812]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4818]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4825]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4819]: INFO: 
>> [main.c:798]: sig_usr()

Re: [SR-Users] Kamailio crashing after comparing AVP with string

2015-12-17 Thread Jurijs Ivolga
Hi Daniel,

Please find attached backtrace.

I believe something is wrong with attributes, when I'm using text file for
dispatcher list. When there is nothing in attributes, everything work fine.

Please let me know if you need anything else.

Thank you!

2015-12-17 12:25 GMT+02:00 Jurijs Ivolga <jurij@gmail.com>:

> Hi,
>
> Just quick question, before sending some more debug info.
>
> I just figured out that issue is related to dispatcher list, I'm using
> text file. Following dispatcher list do not work:
>
> 1 sip:1.1.1.1;transport=udp 0 0 bla
> 1 sip:2.2.2.2;transport=udp 0 0 blabla
>
> But if I use below one, it works without any issue:
>
> 1 sip:1.1.1.1;transport=udp 0 0
> 1 sip:2.2.2.2;transport=udp 0 0
>
> Maybe my attributes are incorrect?
>
> With kind regards,
>
> Jurijs
>
>
>
> 2015-12-17 10:45 GMT+02:00 Daniel-Constantin Mierla <mico...@gmail.com>:
>
>> Hello,
>>
>> reproduce the case with 'ulimit -c unlimited' executed in the terminal
>> before starting kamailio. You should get a corefile and then get the output
>> of 'bt full' in the gdb (gdb /path/to/kamailio /path/to/corefile). Send the
>> output here to investigate it.
>>
>> Cheers,
>> Daniel
>>
>> On 17/12/15 09:41, Jurijs Ivolga wrote:
>>
>> Hi,
>>
>> I have weird behavior, when I'm trying to compare AVP with string:
>>
>> if ($avp(AVP_ATTRS) != "bla") {
>> ds_next_dst();
>> }
>>
>> $avp(AVP_ATTRS) contains Dispatcher attribute.
>>
>> Kamailio crashes:
>>
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: CRITICAL: 
>> [pass_fd.c:275]: receive_fd(): EOF on 15
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: 
>> [main.c:728]: handle_sigs(): child process 4816 exited by a signal 11
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: ALERT: 
>> [main.c:731]: handle_sigs(): core was not generated
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4810]: INFO: 
>> [main.c:743]: handle_sigs(): terminating due to SIGCHLD
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4843]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4842]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4841]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4840]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4839]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4838]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4837]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4836]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4835]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4834]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4829]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4814]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4815]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4823]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4813]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4821]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4812]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4818]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4825]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4819]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4822]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4844]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>> Dec 17 03:39:30 /usr/local/sbin/kamailio[4830]: INFO: 
>> [main.c:798]: sig_usr(): signal 15 received
>>
>> Following code works fine:
>>
>> if ($

[SR-Users] http_client module configuring User-Agent

2016-06-16 Thread Jurijs Ivolga
Hi All,

I tried today new module http_client. I just made GET request using
http_client_query in following way:

http_client_query("http://cool.api.com;, "$var(result)");

It is working, but I can't see User-Agent in request. Below you can find my
module options:

modparam("http_client", "useragent", "kamailio")
modparam("http_client", "connection_timeout", 1)

Is it a bug, or am I doing something wrong?

Thank you!

Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] http_client module configuring User-Agent

2016-06-17 Thread Jurijs Ivolga
Hi Olle,

Thank you for clarification.

I tried function http_connect and still no user-agent.

I'm not C programmer, but I checked code of module and I wasn't able to see
anywhere that you are setting up user-agent like this:

curl_easy_setopt(curl, CURLOPT_USERAGENT, "My user-agent");

With kind regards,


Jurijs

On Fri, Jun 17, 2016 at 9:48 AM, Olle E. Johansson <o...@edvina.net> wrote:

>
> On 16 Jun 2016, at 12:05, Jurijs Ivolga <jurijs.ivo...@gmail.com> wrote:
>
> Hi All,
>
> I tried today new module http_client. I just made GET request using
> http_client_query in following way:
>
> http_client_query("http://cool.api.com;, "$var(result)");
>
> It is working, but I can't see User-Agent in request. Below you can find
> my module options:
>
> modparam("http_client", "useragent", "kamailio")
> modparam("http_client", "connection_timeout", 1)
>
> Is it a bug, or am I doing something wrong?
>
>
> That function works like the old http_query in utils. I should propably
> document that itโ€™s limited.
> Use the functions that use the connection structure to get full
> functionality.
>
> /O
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] http_client module configuring User-Agent

2016-06-16 Thread Jurijs Ivolga
Hi,

It looks like this is a bug. I created pull request with a fix.

With kind regards,

Jurijs

On Thu, Jun 16, 2016 at 1:05 PM, Jurijs Ivolga <jurijs.ivo...@gmail.com>
wrote:

> Hi All,
>
> I tried today new module http_client. I just made GET request using
> http_client_query in following way:
>
> http_client_query("http://cool.api.com;, "$var(result)");
>
> It is working, but I can't see User-Agent in request. Below you can find
> my module options:
>
> modparam("http_client", "useragent", "kamailio")
> modparam("http_client", "connection_timeout", 1)
>
> Is it a bug, or am I doing something wrong?
>
> Thank you!
>
> Jurijs
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-01-29 Thread Jurijs Ivolga
Hi Baris,

Your config file missing very critical parts:

Most important you are missing following line:

route(FSDISPATCH);

and lines starting with:

route[FSDISPATCH] {

and maybe something else...

I propose you to use just config from:

http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc

I believe it should work as it is.

With kind regards,

2016-01-29 16:11 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello Jurijs,
> Here the kamailio.cfg file:
> http://paste2.org/HZwskVbJ
>
> So I already added these lines.
>
> Regards.
>
> On 29 Jan 2016, at 16:03, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> Hi Baris,
>
> Could you please send full Kamailio config file? As I see call is not
> routed to Freeswitch for some reason. Maybe you don't have following lines
> in your config:
>
> #!ifdef WITH_FREESWITCH
> freeswitch.bindip = "192.168.2.131" desc "FreeSWITCH IP Address"
> freeswitch.bindport = "5090" desc "FreeSWITCH Port"#!endif
>
>
>
>  Without full Kamailio config file, I doubt that I will be able to help
> you.
>
> With kind regards,
>
> 2016-01-29 14:43 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>
> :
>
>> Hello thanks,
>>
>> Log file in attachment (I added as Terminal Output) so it contains
>> daemon.log and syslog in the same file. You can see the terminal commands
>> with relations.
>>
>> Here is the log file content:
>> http://paste2.org/AwNINLtm
>>
>> It was too big and I could not send by mail.
>>
>> Regards.
>>
>>
>> On 29 Jan 2016, at 14:25, Jurijs Ivolga <jurij@gmail.com> wrote:
>>
>> Hi Baris,
>>
>> Standard output means your screen where you putting your commands, like
>> reboot.
>>
>> http://www.linfo.org/standard_output.html
>>
>> Kamilio writes logs, when not in debug to syslog, in your case it will be
>> /var/log/syslog or /var/log/messages or anything else like Phil mentioned,
>> but this is when no debug is enabled. When debug is enabled it should
>> appear on your linux shell.
>>
>> With kind regards,
>>
>> Jurijs
>>
>> 2016-01-29 14:17 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com
>> >:
>>
>>> Hi,
>>> I checked /var/logs directory for files which has relationship with
>>> Kamailio but nothing found.
>>>
>>> Is there anything to do in this case?
>>>
>>> Regards.
>>>
>>> On 29 Jan 2016, at 13:37, Jurijs Ivolga <jurij@gmail.com> wrote:
>>>
>>> div dir="ltr">
>>> Hi,
>>>
>>> Kamilio logs should be in standard output, so basically in console, keep
>>> in mind that you need to restart kamailio after updating kamailio.cfg.
>>>
>>> With kind regards,
>>>
>>> 2016-01-29 13:33 GMT+02:00 BarฤฑลŸ ลžekerciler <
>>> baris.sekerci...@outlook.com>:
>>>
>>>> Hello Jurjis,
>>>> I could not reach the Freeswitch DEMO IVR with IP phones which
>>>> registered at Kamailio Server. I think Kamailio can not route the
>>>> Freeswitch. Because phone says "Not Found" when I dialed the "455000".
>>>> And nothing to see except this at fs_cli:
>>>>
>>>> freeswitch@internal> console loglevel 7
>>>> +OK log level 7 [7]
>>>> +OK console log level set to DEBUG
>>>>
>>>> And I added #!define WITH_DEBUG line on Kamailio configuration file.
>>>> So, where does it write logs?
>>>>
>>>> Regards.
>>>>
>>>> On 29 Jan 2016, at 12:59, Jurijs Ivolga <jurij@gmail.com> wrote:
>>>>
>>>> Hi Baris,
>>>>
>>>> On freeswitch:
>>>> /usr/local/freeswitch/bin/fs_cli # this will open freeswitch console
>>>> and next command run into it.
>>>> console loglevel 7
>>>>
>>>> Then make a call from one extension to another and to 455000(what
>>>> should be freeswitch demo IVR)
>>>> Then copy all logs, put in file and send as attachment.
>>>>
>>>> On kamailio server somewhere on top add:
>>>>
>>>> #!define WITH_DEBUG
>>>>
>>>> Now all logs will be in console, so for same call copy logs what you
>>>> get in console to separate file, attach and send too.
>>>>
>>>> With kind regards,
>>>>
>>>> 2016-01-29 12:40 GMT+02:00 Barฤฑ

Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-01-29 Thread Jurijs Ivolga
Hi Baris,

Could you please send full Kamailio config file? As I see call is not
routed to Freeswitch for some reason. Maybe you don't have following lines
in your config:

#!ifdef WITH_FREESWITCH
freeswitch.bindip = "192.168.2.131" desc "FreeSWITCH IP Address"
freeswitch.bindport = "5090" desc "FreeSWITCH Port"#!endif



 Without full Kamailio config file, I doubt that I will be able to help you.

With kind regards,

2016-01-29 14:43 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello thanks,
>
> Log file in attachment (I added as Terminal Output) so it contains
> daemon.log and syslog in the same file. You can see the terminal commands
> with relations.
>
> Here is the log file content:
> http://paste2.org/AwNINLtm
>
> It was too big and I could not send by mail.
>
> Regards.
>
>
> On 29 Jan 2016, at 14:25, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> Hi Baris,
>
> Standard output means your screen where you putting your commands, like
> reboot.
>
> http://www.linfo.org/standard_output.html
>
> Kamilio writes logs, when not in debug to syslog, in your case it will be
> /var/log/syslog or /var/log/messages or anything else like Phil mentioned,
> but this is when no debug is enabled. When debug is enabled it should
> appear on your linux shell.
>
> With kind regards,
>
> Jurijs
>
> 2016-01-29 14:17 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>
> :
>
>> Hi,
>> I checked /var/logs directory for files which has relationship with
>> Kamailio but nothing found.
>>
>> Is there anything to do in this case?
>>
>> Regards.
>>
>> On 29 Jan 2016, at 13:37, Jurijs Ivolga <jurij@gmail.com> wrote:
>>
>> div dir="ltr">
>> Hi,
>>
>> Kamilio logs should be in standard output, so basically in console, keep
>> in mind that you need to restart kamailio after updating kamailio.cfg.
>>
>> With kind regards,
>>
>> 2016-01-29 13:33 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com
>> >:
>>
>>> Hello Jurjis,
>>> I could not reach the Freeswitch DEMO IVR with IP phones which
>>> registered at Kamailio Server. I think Kamailio can not route the
>>> Freeswitch. Because phone says "Not Found" when I dialed the "455000".
>>> And nothing to see except this at fs_cli:
>>>
>>> freeswitch@internal> console loglevel 7
>>> +OK log level 7 [7]
>>> +OK console log level set to DEBUG
>>>
>>> And I added #!define WITH_DEBUG line on Kamailio configuration file. So,
>>> where does it write logs?
>>>
>>> Regards.
>>>
>>> On 29 Jan 2016, at 12:59, Jurijs Ivolga <jurij@gmail.com> wrote:
>>>
>>> Hi Baris,
>>>
>>> On freeswitch:
>>> /usr/local/freeswitch/bin/fs_cli # this will open freeswitch console and
>>> next command run into it.
>>> console loglevel 7
>>>
>>> Then make a call from one extension to another and to 455000(what should
>>> be freeswitch demo IVR)
>>> Then copy all logs, put in file and send as attachment.
>>>
>>> On kamailio server somewhere on top add:
>>>
>>> #!define WITH_DEBUG
>>>
>>> Now all logs will be in console, so for same call copy logs what you get
>>> in console to separate file, attach and send too.
>>>
>>> With kind regards,
>>>
>>> 2016-01-29 12:40 GMT+02:00 BarฤฑลŸ ลžekerciler <
>>> baris.sekerci...@outlook.com>:
>>>
>>>> Hello again,
>>>> I authanticated with Kamailio and communicate with IP phones
>>>> succesfully.
>>>> But depends on this tutorial:
>>>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>>>> When I tried to call "44102" I should go to voicemail box of user 102
>>>> but phone says "not found" and I think Kamailio could not route to
>>>> Freeswitch.
>>>>
>>>> BTW, what kind of logs do you want? Level? How can I send these are?
>>>>
>>>> Regards.
>>>>
>>>> --
>>>> From: baris.sekerci...@outlook.com
>>>> Date: Fri, 29 Jan 2016 11:37:54 +0200
>>>> To: sr-users@lists.sip-router.org
>>>> Subject: Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>>>>
>>>> Hello Jurjis, thanks for your answer.
>>>>
>>>> I did not try default IVR with Free

Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-01-29 Thread Jurijs Ivolga
Hi Baris,

On freeswitch:
/usr/local/freeswitch/bin/fs_cli # this will open freeswitch console and
next command run into it.
console loglevel 7

Then make a call from one extension to another and to 455000(what should be
freeswitch demo IVR)
Then copy all logs, put in file and send as attachment.

On kamailio server somewhere on top add:

#!define WITH_DEBUG

Now all logs will be in console, so for same call copy logs what you get in
console to separate file, attach and send too.

With kind regards,

2016-01-29 12:40 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello again,
> I authanticated with Kamailio and communicate with IP phones succesfully.
> But depends on this tutorial:
> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
> When I tried to call "44102" I should go to voicemail box of user 102 but
> phone says "not found" and I think Kamailio could not route to Freeswitch.
>
> BTW, what kind of logs do you want? Level? How can I send these are?
>
> Regards.
>
> --
> From: baris.sekerci...@outlook.com
> Date: Fri, 29 Jan 2016 11:37:54 +0200
> To: sr-users@lists.sip-router.org
> Subject: Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>
> Hello Jurjis, thanks for your answer.
>
> I did not try default IVR with Freeswitch. But I will try and write.
>
> Regards.
>
> On 29 Jan 2016, at 11:32, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> Hi Baris,
>
> Are you able to dial into Freeswitch default IVR(5000 ext)?
>
> It will helps if you send logs from Kamailio and freeswitch.
>
> With kind regards,
>
> 2016-01-29 11:14 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>
> :
>
> Thanks for answer Phill. Actually I did not apply any different
> configuration than digetics in Kamailio Wiki. (I installed Kamailio latest
> stable from Deb Jessie repos)
> After that, I applied these are:
> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc and
> I adapted to Kamailio 4.3 (at least I tried)
> There is nothing to different from this link.
>
> So, I work on VmWare.
> Kamailio Server IP:   192.168.2.98
> FreeSwitch Server IP:   192.168.2.131
>
>
>
>
>
> On 29 Jan 2016, at 10:38, Phil Lavin <phil.la...@synety.com> wrote:
>
> You'll need to share your Kamailio config and some details of your network
> setup (specifically if NAT is involved).
>
>
> Phil
>
> -Original Message-
> From: sr-users [mailto:sr-users-boun...@lists.sip-router.org
> <sr-users-boun...@lists.sip-router.org>] On Behalf Of Baris Sekerciler
> Sent: 29 January 2016 08:35
> To: sr-users@lists.sip-router.org
> Subject: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>
> Hello everyone. I'm a student and I'm working on project which about SIP
> communication and PBXs with IP phones.
>
> So, my first test results were OK with JITSI. But I think I need
> Freeswitch for working with IP phones. In a word, I need configure an
> integration Kamailio and Freeswitch.
>
> First, I setup Debian 8.3 Jessie and installed Kamailio on this my local
> server, after that I installed another Debian 8.3 Jessie (from same image)
> as my second server and it was going to run Freeswitch on itself.
> Then I tried to send my communication requests to my Freeswitch server. I
> made some tests, my Jitsi accounts which are set in Kamailio server were
> done. I've read Kamailio 3.2 and Freeswitch integration from the Kamailio
> wiki and I applied exactly the same thing but I did not work.
> When I tried to reach another IP phone from my IP phone (I registered
> them) phone always say "NOT FOUND". I'm sure I did my configuration
> properly.
>
> So, how can I figure it out these things? How can I understand, does
> Kamailio routes to Freeswitch to my phones?
>
> Best regards.
> Thanks.
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-u

Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-01-29 Thread Jurijs Ivolga
Hi,

Kamilio logs should be in standard output, so basically in console, keep in
mind that you need to restart kamailio after updating kamailio.cfg.

With kind regards,

2016-01-29 13:33 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello Jurjis,
> I could not reach the Freeswitch DEMO IVR with IP phones which registered
> at Kamailio Server. I think Kamailio can not route the Freeswitch. Because
> phone says "Not Found" when I dialed the "455000".
> And nothing to see except this at fs_cli:
>
> freeswitch@internal> console loglevel 7
> +OK log level 7 [7]
> +OK console log level set to DEBUG
>
> And I added #!define WITH_DEBUG line on Kamailio configuration file. So,
> where does it write logs?
>
> Regards.
>
> On 29 Jan 2016, at 12:59, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> Hi Baris,
>
> On freeswitch:
> /usr/local/freeswitch/bin/fs_cli # this will open freeswitch console and
> next command run into it.
> console loglevel 7
>
> Then make a call from one extension to another and to 455000(what should
> be freeswitch demo IVR)
> Then copy all logs, put in file and send as attachment.
>
> On kamailio server somewhere on top add:
>
> #!define WITH_DEBUG
>
> Now all logs will be in console, so for same call copy logs what you get
> in console to separate file, attach and send too.
>
> With kind regards,
>
> 2016-01-29 12:40 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>
> :
>
>> Hello again,
>> I authanticated with Kamailio and communicate with IP phones succesfully.
>> But depends on this tutorial:
>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>> When I tried to call "44102" I should go to voicemail box of user 102 but
>> phone says "not found" and I think Kamailio could not route to Freeswitch.
>>
>> BTW, what kind of logs do you want? Level? How can I send these are?
>>
>> Regards.
>>
>> --
>> From: baris.sekerci...@outlook.com
>> Date: Fri, 29 Jan 2016 11:37:54 +0200
>> To: sr-users@lists.sip-router.org
>> Subject: Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>>
>> Hello Jurjis, thanks for your answer.
>>
>> I did not try default IVR with Freeswitch. But I will try and write.
>>
>> Regards.
>>
>> On 29 Jan 2016, at 11:32, Jurijs Ivolga <jurij@gmail.com> wrote:
>>
>> Hi Baris,
>>
>> Are you able to dial into Freeswitch default IVR(5000 ext)?
>>
>> It will helps if you send logs from Kamailio and freeswitch.
>>
>> With kind regards,
>>
>> 2016-01-29 11:14 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com
>> >:
>>
>> Thanks for answer Phill. Actually I did not apply any different
>> configuration than digetics in Kamailio Wiki. (I installed Kamailio latest
>> stable from Deb Jessie repos)
>> After that, I applied these are:
>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc and
>> I adapted to Kamailio 4.3 (at least I tried)
>> There is nothing to different from this link.
>>
>> So, I work on VmWare.
>> Kamailio Server IP:   192.168.2.98
>> FreeSwitch Server IP:   192.168.2.131
>>
>>
>>
>>
>>
>> On 29 Jan 2016, at 10:38, Phil Lavin <phil.la...@synety.com> wrote:
>>
>> You'll need to share your Kamailio config and some details of your
>> network setup (specifically if NAT is involved).
>>
>>
>> Phil
>>
>> -Original Message-
>> From: sr-users [mailto:sr-users-boun...@lists.sip-router.org
>> <sr-users-boun...@lists.sip-router.org>] On Behalf Of Baris Sekerciler
>> Sent: 29 January 2016 08:35
>> To: sr-users@lists.sip-router.org
>> Subject: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>>
>> Hello everyone. I'm a student and I'm working on project which about SIP
>> communication and PBXs with IP phones.
>>
>> So, my first test results were OK with JITSI. But I think I need
>> Freeswitch for working with IP phones. In a word, I need configure an
>> integration Kamailio and Freeswitch.
>>
>> First, I setup Debian 8.3 Jessie and installed Kamailio on this my local
>> server, after that I installed another Debian 8.3 Jessie (from same image)
>> as my second server and it was going to run Freeswitch on itself.
>> Then I tried to send my communication requests to my Freeswitch server. I
>> made some tests, my Jitsi accounts which are set in Kamailio server w

Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-01-29 Thread Jurijs Ivolga
Hi Baris,

Standard output means your screen where you putting your commands, like
reboot.

http://www.linfo.org/standard_output.html

Kamilio writes logs, when not in debug to syslog, in your case it will be
/var/log/syslog or /var/log/messages or anything else like Phil mentioned,
but this is when no debug is enabled. When debug is enabled it should
appear on your linux shell.

With kind regards,

Jurijs

2016-01-29 14:17 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hi,
> I checked /var/logs directory for files which has relationship with
> Kamailio but nothing found.
>
> Is there anything to do in this case?
>
> Regards.
>
> On 29 Jan 2016, at 13:37, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> div dir="ltr">
> Hi,
>
> Kamilio logs should be in standard output, so basically in console, keep
> in mind that you need to restart kamailio after updating kamailio.cfg.
>
> With kind regards,
>
> 2016-01-29 13:33 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>
> :
>
>> Hello Jurjis,
>> I could not reach the Freeswitch DEMO IVR with IP phones which registered
>> at Kamailio Server. I think Kamailio can not route the Freeswitch. Because
>> phone says "Not Found" when I dialed the "455000".
>> And nothing to see except this at fs_cli:
>>
>> freeswitch@internal> console loglevel 7
>> +OK log level 7 [7]
>> +OK console log level set to DEBUG
>>
>> And I added #!define WITH_DEBUG line on Kamailio configuration file. So,
>> where does it write logs?
>>
>> Regards.
>>
>> On 29 Jan 2016, at 12:59, Jurijs Ivolga <jurij@gmail.com> wrote:
>>
>> Hi Baris,
>>
>> On freeswitch:
>> /usr/local/freeswitch/bin/fs_cli # this will open freeswitch console and
>> next command run into it.
>> console loglevel 7
>>
>> Then make a call from one extension to another and to 455000(what should
>> be freeswitch demo IVR)
>> Then copy all logs, put in file and send as attachment.
>>
>> On kamailio server somewhere on top add:
>>
>> #!define WITH_DEBUG
>>
>> Now all logs will be in console, so for same call copy logs what you get
>> in console to separate file, attach and send too.
>>
>> With kind regards,
>>
>> 2016-01-29 12:40 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com
>> >:
>>
>>> Hello again,
>>> I authanticated with Kamailio and communicate with IP phones succesfully.
>>> But depends on this tutorial:
>>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>>> When I tried to call "44102" I should go to voicemail box of user 102
>>> but phone says "not found" and I think Kamailio could not route to
>>> Freeswitch.
>>>
>>> BTW, what kind of logs do you want? Level? How can I send these are?
>>>
>>> Regards.
>>>
>>> --
>>> From: baris.sekerci...@outlook.com
>>> Date: Fri, 29 Jan 2016 11:37:54 +0200
>>> To: sr-users@lists.sip-router.org
>>> Subject: Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>>>
>>> Hello Jurjis, thanks for your answer.
>>>
>>> I did not try default IVR with Freeswitch. But I will try and write.
>>>
>>> Regards.
>>>
>>> On 29 Jan 2016, at 11:32, Jurijs Ivolga <jurij@gmail.com> wrote:
>>>
>>> Hi Baris,
>>>
>>> Are you able to dial into Freeswitch default IVR(5000 ext)?
>>>
>>> It will helps if you send logs from Kamailio and freeswitch.
>>>
>>> With kind regards,
>>>
>>> 2016-01-29 11:14 GMT+02:00 BarฤฑลŸ ลžekerciler <
>>> baris.sekerci...@outlook.com>:
>>>
>>> Thanks for answer Phill. Actually I did not apply any different
>>> configuration than digetics in Kamailio Wiki. (I installed Kamailio latest
>>> stable from Deb Jessie repos)
>>> After that, I applied these are:
>>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc and
>>> I adapted to Kamailio 4.3 (at least I tried)
>>> There is nothing to different from this link.
>>>
>>> So, I work on VmWare.
>>> Kamailio Server IP:   192.168.2.98
>>> FreeSwitch Server IP:   192.168.2.131
>>>
>>>
>>>
>>>
>>>
>>> On 29 Jan 2016, at 10:38, Phil Lavin <phil.la...@synety.com> wrote:
>>>
>>> You'll need to share your Kamailio config and some details of your
&

Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-01-29 Thread Jurijs Ivolga
Hi Baris,

Are you able to dial into Freeswitch default IVR(5000 ext)?

It will helps if you send logs from Kamailio and freeswitch.

With kind regards,

2016-01-29 11:14 GMT+02:00 BarฤฑลŸ ลžekerciler :

> Thanks for answer Phill. Actually I did not apply any different
> configuration than digetics in Kamailio Wiki. (I installed Kamailio latest
> stable from Deb Jessie repos)
> After that, I applied these are:
> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc and
> I adapted to Kamailio 4.3 (at least I tried)
> There is nothing to different from this link.
>
> So, I work on VmWare.
> Kamailio Server IP:   192.168.2.98
> FreeSwitch Server IP:   192.168.2.131
>
>
>
>
>
> On 29 Jan 2016, at 10:38, Phil Lavin  wrote:
>
> You'll need to share your Kamailio config and some details of your network
> setup (specifically if NAT is involved).
>
>
> Phil
>
> -Original Message-
> From: sr-users [mailto:sr-users-boun...@lists.sip-router.org
> ] On Behalf Of Baris Sekerciler
> Sent: 29 January 2016 08:35
> To: sr-users@lists.sip-router.org
> Subject: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>
> Hello everyone. I'm a student and I'm working on project which about SIP
> communication and PBXs with IP phones.
>
> So, my first test results were OK with JITSI. But I think I need
> Freeswitch for working with IP phones. In a word, I need configure an
> integration Kamailio and Freeswitch.
>
> First, I setup Debian 8.3 Jessie and installed Kamailio on this my local
> server, after that I installed another Debian 8.3 Jessie (from same image)
> as my second server and it was going to run Freeswitch on itself.
> Then I tried to send my communication requests to my Freeswitch server. I
> made some tests, my Jitsi accounts which are set in Kamailio server were
> done. I've read Kamailio 3.2 and Freeswitch integration from the Kamailio
> wiki and I applied exactly the same thing but I did not work.
> When I tried to reach another IP phone from my IP phone (I registered
> them) phone always say "NOT FOUND". I'm sure I did my configuration
> properly.
>
> So, how can I figure it out these things? How can I understand, does
> Kamailio routes to Freeswitch to my phones?
>
> Best regards.
> Thanks.
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio Cluster

2016-02-01 Thread Jurijs Ivolga
Hi,

I think you need to make record routing, so it will keep initial(to what
user registered) Kamailio in signaling path.

I hope it will helps.

With kind regards,

Jurijs

2016-02-01 9:33 GMT+02:00 Gholamreza Sabery :

> Thank you so much Alex. I tried REGISTER replication and DM_MODE 3. But my
> problem here is that in these scenarios Kamailio will give you a non-local
> socket error. I want to have multiple Kamailio servers so that a user that
> is registered on one server can easily call other users on another server.
>
> On Mon, Feb 1, 2016 at 10:01 AM, Alex Balashov 
> wrote:
>
>> Although, the core `dmq` module is a big help in providing a distribution
>> vehicle for messaging you do wish to replicate into a 'cluster':
>>
>>
>> http://kamailio.org/docs/modules/4.3.x/modules/dmq.html#dmq.f.dmq_t_replicate
>>
>>
>> --
>> Alex Balashov | Principal | Evariste Systems LLC
>> 303 Perimeter Center North, Suite 300
>> Atlanta, GA 30346
>> United States
>>
>> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
>> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio Cluster

2016-02-01 Thread Jurijs Ivolga
Hi Alex,

You are right. :)

With kind regards,

2016-02-01 10:09 GMT+02:00 Alex Balashov <abalas...@evaristesys.com>:

> On 02/01/2016 02:59 AM, Jurijs Ivolga wrote:
>
> I think you need to make record routing, so it will keep initial(to what
>> user registered) Kamailio in signaling path.
>>
>
> Ah, no. Record-Route is for INVITEs only. You're thinking of Path.
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
> 303 Perimeter Center North, Suite 300
> Atlanta, GA 30346
> United States
>
> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-02-01 Thread Jurijs Ivolga
Hi Baris,

I updated config from:

http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc

So it works(it start-up Kamilio) with kamailio 4.3, you can find it in
attachment. I didn't changed any logic, so config file should work, but I
can't guarantee. :)

With kind regards,

2016-01-29 14:39 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello thanks,
>
> Log file in attachment (I added as Terminal Output) so it contains
> daemon.log and syslog in the same file. You can see the terminal commands
> with relations.
>
> Regards.
>
>
>
> On 29 Jan 2016, at 14:25, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> Hi Baris,
>
> Standard output means your screen where you putting your commands, like
> reboot.
>
> http://www.linfo.org/standard_output.html
>
> Kamilio writes logs, when not in debug to syslog, in your case it will be
> /var/log/syslog or /var/log/messages or anything else like Phil mentioned,
> but this is when no debug is enabled. When debug is enabled it should
> appear on your linux shell.
>
> With kind regards,
>
> Jurijs
>
> 2016-01-29 14:17 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>
> :
>
>> Hi,
>> I checked /var/logs directory for files which has relationship with
>> Kamailio but nothing found.
>>
>> Is there anything to do in this case?
>>
>> Regards.
>>
>> On 29 Jan 2016, at 13:37, Jurijs Ivolga <jurij@gmail.com> wrote:
>>
>> div dir="ltr">
>> Hi,
>>
>> Kamilio logs should be in standard output, so basically in console, keep
>> in mind that you need to restart kamailio after updating kamailio.cfg.
>>
>> With kind regards,
>>
>> 2016-01-29 13:33 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com
>> >:
>>
>>> Hello Jurjis,
>>> I could not reach the Freeswitch DEMO IVR with IP phones which
>>> registered at Kamailio Server. I think Kamailio can not route the
>>> Freeswitch. Because phone says "Not Found" when I dialed the "455000".
>>> And nothing to see except this at fs_cli:
>>>
>>> freeswitch@internal> console loglevel 7
>>> +OK log level 7 [7]
>>> +OK console log level set to DEBUG
>>>
>>> And I added #!define WITH_DEBUG line on Kamailio configuration file. So,
>>> where does it write logs?
>>>
>>> Regards.
>>>
>>> On 29 Jan 2016, at 12:59, Jurijs Ivolga <jurij@gmail.com> wrote:
>>>
>>> Hi Baris,
>>>
>>> On freeswitch:
>>> /usr/local/freeswitch/bin/fs_cli # this will open freeswitch console and
>>> next command run into it.
>>> console loglevel 7
>>>
>>> Then make a call from one extension to another and to 455000(what should
>>> be freeswitch demo IVR)
>>> Then copy all logs, put in file and send as attachment.
>>>
>>> On kamailio server somewhere on top add:
>>>
>>> #!define WITH_DEBUG
>>>
>>> Now all logs will be in console, so for same call copy logs what you get
>>> in console to separate file, attach and send too.
>>>
>>> With kind regards,
>>>
>>> 2016-01-29 12:40 GMT+02:00 BarฤฑลŸ ลžekerciler <
>>> baris.sekerci...@outlook.com>:
>>>
>>>> Hello again,
>>>> I authanticated with Kamailio and communicate with IP phones
>>>> succesfully.
>>>> But depends on this tutorial:
>>>> http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
>>>> When I tried to call "44102" I should go to voicemail box of user 102
>>>> but phone says "not found" and I think Kamailio could not route to
>>>> Freeswitch.
>>>>
>>>> BTW, what kind of logs do you want? Level? How can I send these are?
>>>>
>>>> Regards.
>>>>
>>>> --
>>>> From: baris.sekerci...@outlook.com
>>>> Date: Fri, 29 Jan 2016 11:37:54 +0200
>>>> To: sr-users@lists.sip-router.org
>>>> Subject: Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest
>>>>
>>>> Hello Jurjis, thanks for your answer.
>>>>
>>>> I did not try default IVR with Freeswitch. But I will try and write.
>>>>
>>>> Regards.
>>>>
>>>> On 29 Jan 2016, at 11:32, Jurijs Ivolga <jurij@gmail.com> wrote:
>>>>
>>>> Hi Baris,
>>>>
>>>> Are you able to dial into Fre

Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-02-01 Thread Jurijs Ivolga
Hi,

Please run following command:

systemctl status kamailio.service

And send me what it shows.

With kind regards,

2016-02-01 13:11 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello again Jurijs,
> I just copied the configuration file that you sent and there are some
> errors in here:
> http://paste2.org/OgsW72VV
>
> When I tried to /etc/init.d/kamailio start there is an error came up:
> root@didkamailio:/etc/kamailio# /etc/init.d/kamailio start
> [] Starting kamailio (via systemctl): kamailio.serviceJob for
> kamailio.service failed. See 'systemctl status kamailio.service' and
> 'journalctl -xn' for details.
>  failed!
>
> I think configuration file contains wrong things.
>
> Regards.
>
> On 01 Feb 2016, at 11:42, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> 
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio Cluster

2016-02-03 Thread Jurijs Ivolga
Hi,

If you have following:

UA A > Kamilio 1

UA B > Kamailio 2

With path you just make sure that all calls are routed to that server where
UA initially registered.

So if UA A is calling UA B, call will go in such way: UA A=> Kamilio 1 =>
Kamailio 2 => UA B.

I hope I answered your question.

With kind regards,

2016-02-03 12:18 GMT+02:00 Gholamreza Sabery :

> Actually I think something is not clear here. Suppose I want to use two
> Kamailio servers such that a client which is registered on server A is able
> to call another client registered on server B. In this case I use DB_MODE
> 3. Both servers have access to location database but sockets are non-local
> and cleints are behind symmetric NATs.Now  only the server on which the
> client is registered and sent it's request to is able to respond(because of
> symmetric NAT). Is it possible to implement this scenario using Path header?
>
> Regards
>
> On Wed, Feb 3, 2016 at 12:55 PM, Daniel Tryba  wrote:
>
>> On Mon, Feb 01, 2016 at 09:17:41AM +0100, Federico Cabiddu wrote:
>> > a solution in this case could be making usage of Path header (
>> > https://tools.ietf.org/html/rfc3327).
>> > You have to load the path module
>> > http://www.kamailio.org/docs/modules/devel/modules/path.html
>> > and enabled its usage in registrar module
>>
>> Be warned that any stateful firewall or NATed client will not accept the
>> messages from any other sipserver to that client. My solution was to use
>> edge/loadbalancer proxies which add the Path header using
>> add_path_received to store both the edge/loadbalancer ip and client
>> source before passing the request to the backends (using dispatcher).
>>
>> Any backend will send messages based on the Path headers to the
>> edge/loadbalancer and that will pass it to the client to appease
>> statefull firewalls.
>>
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio v4.3 and Freeswitch Stable Latest

2016-02-01 Thread Jurijs Ivolga
Hi Baris,

It looks like there is issue with your modules and I think modules can't be
fond.

On this point I think you are using Debian 32 not Debian 64. In this case
you need to update following line in kamailio.cfg:

mpath="/usr/local/lib/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/"

If you are using 32 bit, then just remove 64 and it should work, if not,
please find where modules are located and update path accordingly.

With kind regards,

2016-02-01 13:26 GMT+02:00 BarฤฑลŸ ลžekerciler <baris.sekerci...@outlook.com>:

> Hello,
>
> Here is the message:
> root@didkamailio:/etc/kamailio# systemctl status kamailio.service
> โ— kamailio.service - LSB: Start the Kamailio SIP proxy server
>Loaded: loaded (/etc/init.d/kamailio)
>Active: failed (Result: exit-code) since Mon 2016-02-01 12:51:04 EET;
> 16min ago
>   Process: 1527 ExecStop=/etc/init.d/kamailio stop (code=exited,
> status=0/SUCCESS)
>   Process: 1652 ExecStart=/etc/init.d/kamailio start (code=exited,
> status=1/FAILURE)
>
> Feb 01 12:51:04 didkamailio kamailio[1652]:
> kamailio/modules_k/:/usr/local/lib64/kamailio/modules/> 0(1661...  Feb 01 12:51:04 didkamailio kamailio[1652]: ERROR: 
> [sr_module.c:565]: load_module(): could not find...load
> Feb 01 12:51:04 didkamailio kamailio[1652]: param_regex(): No module
> matching  found 0(1661) : ...(166
> Feb 01 12:51:04 didkamailio kamailio[1652]: fig file
> /etc/kamailio/kamailio.cfg, line 315, column 78: Can'...6, c
> Feb 01 12:51:04 didkamailio kamailio[1652]: issing loadmodule? 0(1661)
> ERROR:  [cfg.y:3295]: yyparse...61)
> Feb 01 12:51:04 didkamailio kamailio[1652]: core> [cfg.y:3432]:
> yyerror_at(): parse error in config file /...led!
> Feb 01 12:51:04 didkamailio kamailio[1652]: failed!
> Feb 01 12:51:04 didkamailio systemd[1]: kamailio.service: control process
> exited, code=exited status=1
> Feb 01 12:51:04 didkamailio systemd[1]: Failed to start LSB: Start the
> Kamailio SIP proxy server.
> Feb 01 12:51:04 didkamailio systemd[1]: Unit kamailio.service entered
> failed state.
> Hint: Some lines were ellipsized, use -l to show in full.
>
> On 01 Feb 2016, at 13:13, Jurijs Ivolga <jurij@gmail.com> wrote:
>
> systemctl status kamailio.service
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio as a front-end proxy

2016-03-01 Thread Jurijs Ivolga
Hi,

I would recommend you to take a look on path module:

http://kamailio.org/docs/modules/1.4.x/path.html
I think this is what you need.

With kind regards,

Jurijs

2016-03-01 12:02 GMT+02:00 Anton Tonev :

> Hello everybody,
>
> I am a new user of Kamailio (4.3.1), I am working with it since 1-2
> months. The thing that I'm trying to do is to build the following system:
>
> same LAN
>
> 192.168.0.1
> Alice
> proprietary SIP Server
>  [Public_IP_X]    [Public_IP_Y]
> Kamailio [172.26.0.1] -- [172.26.0.1]  with
> 192.168.0.1
> registrar
> Bob
>
> Obviously Kamailio has to translate the local addresses of Alice and Bob,
> e.g. to use the Nathelper module.
> The module is doing well its job because the Contact headers are replaced
> with the Public_IP_X when a REGISTER message is sent by Alice's or Bob's
> sip phones (I am using Linphone and Zoiper as clients).
> Once the incoming sip register was treated by Kamailio it is sent to the
> proprietary SIP Server. The server sends 200 OK to Kamailio and the proxy
> relays the message to the clients. So the sip registration for me it is OK.
>
> But when it comes to initiate a call from Alice to Bob the things are not
> as I expect it. The initial request INVITE sent from Alice goes to the sip
> server but then the server instead of sending the INVITE for Bob through
> Kamailio, it sends the message directly to Bob's device.
> Does anyone knows how to "tell" to the sip server, using the SIP protocol,
> that it must use the proxy?
> The only thing I have in mind is to force Kamailio to replace the contact
> of Alice and more precisely the host/ip address by the proxy's host/ip
> address.
> I tested this idea and the sip server did what I was expecting but for me
> this is not a proper solution.
> To do that I used this discussion -
> http://opensips.org/pipermail/users/2010-October/014873.html
> Thank you in advance for your attention !
>
> Best regards,
>
> Anton
>
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio LB: how to get Asterisk to do the RTP

2016-07-27 Thread Jurijs Ivolga
Hi Tickling,

Could you please share with us your working config?

With kind regards,

Jurijs

On Wed, Jul 27, 2016 at 8:54 AM, SamyGo  wrote:

> Hi Again,
>
> You need to enable NAT handling in your Kamailio (#!define WITH_NAT), then
> depending upon how your clients will interact with asterisk you may or may
> not need a media proxy, like RTPproxy. If asterisks can send/receive media
> directly from the internet then its ok for now, else you definitely need to
> have rtpproxy/rtpengine in there.
>
>
> Regards,
> Sammy
>
>
> On Tue, Jul 26, 2016 at 10:29 PM, Tickling Contest <
> tickling.cont...@gmail.com> wrote:
>
>> With the help of members from this mailing list (many thanks!), I finally
>> got Asterisk fronted by Kamailio for LB and REGISTERs and I am able to make
>> a call using the setup that looks like this:
>>
>> [Kamailio 4.4.2]<->[Asterisk 13.7.2]
>>
>> Kamailio manages REGISTERs, but also forwarding them to Asterisk.
>>
>> I am able to make a call, but I get only one way audio or no audio
>> depending on which client made the call (SipDroid->Zoiper I hear one way
>> audio on Zoiper, but no audio if the call is made the other way). I noticed
>> that Kamailio forced direct media between the endpoints in this situation,
>> but my application really needs Asterisk to handle it.
>>
>> How do I do this? Should I start by forwarding INVITEs to Asterisk? How
>> do I do that?
>>
>> Any help is appreciated.
>>
>> Thanks!
>>
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio 4.4 wont start on CentOS 7 using script

2016-08-04 Thread Jurijs Ivolga
Hi,

I'm not sure about Centos 7, but on Centos 6, you need to update kamailio
init.d script to make it work. Following lines should be updated:
KAM=/usr/local/sbin/kamailio
KAMCFG=/usr/local/etc/kamailio/kamailio.cfg
PROG=kamailio
PID_FILE=/var/run/kamailio/kamailio.pid

And you need to create directory /var/run/kamailio and add access rights to
kamailio user.

With kind regards,

Jurijs

On Thu, Aug 4, 2016 at 4:30 PM, Fabian Borot  wrote:

> Hello
>
> I installed/compiled version 4.4 on CentOS 7. When I start the server like
> this: "./kamctl start" it works but when I try to use the script:
> "/etc/init.d/kamailio" it fails
>
>
>
> [root@ar-mia-proxy-01 sbin]# /etc/init.d/kamailio start
> Starting kamailio (via systemctl):  Job for kamailio.service failed
> because the control process exited with error code. See "systemctl status
> kamailio.service" and "journalctl -xe" for details.
>[FAILED]
> [root@ar-mia-proxy-01 sbin]#
>
> when running the "status" I see this:
>
> [root@ar-mia-proxy-01 sbin]# /etc/init.d/kamailio status
> รข kamailio.service - LSB: Kamailio (OpenSER) - the Open Source SIP Server
>Loaded: loaded (/etc/rc.d/init.d/kamailio)
>Active: failed (Result: exit-code) since Thu 2016-08-04 15:25:59 GMT;
> 14s ago
>  Docs: man:systemd-sysv-generator(8)
>   Process: 5556 ExecStart=/etc/rc.d/init.d/kamailio start (code=exited,
> status=1/FAILURE)
>
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Starting LSB:
> Kamailio (OpenSER) - the Open Source SIP Server...
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com kamailio[5556]: Starting kamailio:
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: kamailio.service:
> control process exited, code=exited status=1
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Failed to start LSB:
> Kamailio (OpenSER) - the Open Source SIP Server.
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: Unit kamailio.service
> entered failed state.
> Aug 04 15:25:59 ar-mia-proxy-01.dom.com systemd[1]: kamailio.service
> failed.
> [root@ar-mia-proxy-01 sbin]#
>
> I welcome all ideas, thank you in advance
>
>
>
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-06 Thread Jurijs Ivolga
Hi Daniel,

This modules what we are using:

loadmodule "mi_fifo.so"
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "cfg_rpc.so"
loadmodule "mi_rpc.so"
loadmodule "dispatcher.so"
loadmodule "utils.so"
loadmodule "path.so"
loadmodule "ipops.so"
loadmodule "jansson.so"
loadmodule "auth.so"
loadmodule "nathelper.so"
loadmodule "tls.so"
loadmodule "htable.so"
loadmodule "pike.so"

We have several other Kamailio instances but they are not faced to internet
and they do not have such memory issue. That other Kamailio instances have
same modules,  except modules listed below. So if you think that issue is
inside external library, probably we need to check first modules from list
below.

loadmodule "ipops.so"
loadmodule "auth.so"
loadmodule "nathelper.so"
loadmodule "pike.so"

But maybe this other Kamailio instances do not have this memory issue, just
because they did not face to internet and did not have same load as
instances with memory issue.

 kamailio -v
version: kamailio 4.4.3 (x86_64/linux) 5a2195
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 5a2195
compiled on 08:30:51 Sep 15 2016 with gcc 4.4.7


With kind regards,


Jurijs

On Thu, Oct 6, 2016 at 12:52 PM, Daniel-Constantin Mierla <mico...@gmail.com
> wrote:

> Hello,
>
> it looks like a leak from the system memory, not from kamailio's pkg or
> shm memory. This can be due to an improper use of an external library
> (e.g., libxml2) by a kamailio module or because of a problem in the library.
>
> Can you list the modules used in your config (the loadmodule lines)? I
> will try to guess from the list which one relying on external libs with
> higher risk of leak issues.
>
> Also, provide the version of kamailio you are using (kamailio -v).
>
> Cheers,
> Daniel
>
> On 04/10/16 15:42, Jurijs Ivolga wrote:
>
> Hi,
>
> Our Kamailio server is crashing once per week, with following error:
>
> Oct  1 06:25:06 kamailio kernel: [26982632.803789] Out of memory in UB
> 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB,
> rss:280200kB, swap:131408kB
>
> Core dump was never created, probably it is because of my environment, but
> I will try to get it.
>
> Server constantly eats memory, maybe some kind of memory leak?
>
> Any help is highly appreciated!
>
> Jurijs
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-04 Thread Jurijs Ivolga
Hi,

Our Kamailio server is crashing once per week, with following error:

Oct  1 06:25:06 kamailio kernel: [26982632.803789] Out of memory in UB 210:
OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB,
swap:131408kB

Core dump was never created, probably it is because of my environment, but
I will try to get it.

Server constantly eats memory, maybe some kind of memory leak?

Any help is highly appreciated!

Jurijs
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-07 Thread Jurijs Ivolga
Hi Daniel,

I tried to compile with memory manager in debugging mode like this:

MEMDBG=1 make cfg 'include_modules= textopsx db_mysql jansson json
snmpstats tls utils uuid'
make all
/etc/init.d/kamailioa stop
make install
/etc/init.d/kamailioa start

But still I'm getting nothing on:

kamailio -I | grep DBG_QM_MALLOC

Any hints?

With kind regards,

Jurijs

On Fri, Oct 7, 2016 at 10:39 AM, Daniel-Constantin Mierla <mico...@gmail.com
> wrote:

> Hello,
>
> There are some results when searching for memory leak on openssl 1.0.1,
> but might not be valid for this case.
>
> Would you be able to run kamailio through valgrind? It may slow down a bit
> the processing, but may be the fastest way to catch the system memory leak.
> Maybe you have an instance will less traffic and you can run through
> valgrind for a while, you don't have to wait until you get the OOM.
>
> Cheers,
> Daniel
>
> On 07/10/16 09:27, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> openssl.x86_64
> 1.0.1e-48.el6_8.1
> CentOS release 6.8
>
> With kind regards,
>
> Jurijs
>
> On Fri, Oct 7, 2016 at 10:20 AM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> the tls module in kamailio is using shm memory, but can be something
>> internal for libssl. What operating system do you use and what is the
>> libssl version?
>>
>> Cheers,
>> Daniel
>>
>> On 06/10/16 17:43, Jurijs Ivolga wrote:
>>
>> Hi Daniel,
>>
>> I do not use puke.top rpc command. Maybe this issue related to TLS?
>> Servers what has this problem are utilizing TLS heavily, servers which do
>> not has this problem use UDP.
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Thu, Oct 6, 2016 at 6:05 PM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> are you using pike.top rpc command? I noticed in the code that it uses
>>> system malloc, but I haven't investigated further yet, first to see if this
>>> would be a possibility ...
>>>
>>> Cheers,
>>> Daniel
>>>
>>> On 06/10/16 16:33, Jurijs Ivolga wrote:
>>>
>>> Hi Daniel,
>>>
>>> We do not do any external operations.
>>>
>>> We are using janson 2.7 everywhere. I will try to update to latest
>>> janson version tomorrow.
>>> All json operation is pretty much same, we are using only jansson_get.
>>>
>>> In attachment you can see memory consumption. On the right 2 servers
>>> which are faced internet on the left which don't face internet. As you can
>>> see memory consumption is pretty dramatic.
>>>
>>> Thank you for your help!
>>>
>>> With kind regards,
>>>
>>> Jurijs
>>>
>>> On Thu, Oct 6, 2016 at 5:17 PM, Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> are you doing different external operations than on the other
>>>> instances, like mi/rpc commands.
>>>>
>>>> From the list of the modules you exposed, I think jansson has the
>>>> higher probability to work with system memory. Are you doing different json
>>>> operations in config that in the other instances of kamailio? Are you using
>>>> same version of libjansson everywhere?
>>>>
>>>> Cheers,
>>>> Daniel
>>>> On 06/10/16 13:46, Jurijs Ivolga wrote:
>>>>
>>>> Hi Daniel,
>>>>
>>>> This modules what we are using:
>>>>
>>>> loadmodule "mi_fifo.so"
>>>> loadmodule "kex.so"
>>>> loadmodule "corex.so"
>>>> loadmodule "tm.so"
>>>> loadmodule "tmx.so"
>>>> loadmodule "sl.so"
>>>> loadmodule "rr.so"
>>>> loadmodule "pv.so"
>>>> loadmodule "maxfwd.so"
>>>> loadmodule "textops.so"
>>>> loadmodule "siputils.so"
>>>> loadmodule "xlog.so"
>>>> loadmodule "sanity.so"
>>>> loadmodule "ctl.so"
>>>> loadmodule "cfg_rpc.so"
>>>> loadmodule "mi_rpc.so"
>>>> loadmodule "dispatcher.so"
>>>> loadmodule "utils.so"
>>>> loadmodule "path.so"
>>>> loadmodule "ipops.so"
>>>> loadmodule "jansson.so"
>>>> loadmodule "auth.so

Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-07 Thread Jurijs Ivolga
Hi Daniel,

openssl.x86_64
1.0.1e-48.el6_8.1
CentOS release 6.8

With kind regards,

Jurijs

On Fri, Oct 7, 2016 at 10:20 AM, Daniel-Constantin Mierla <mico...@gmail.com
> wrote:

> Hello,
>
> the tls module in kamailio is using shm memory, but can be something
> internal for libssl. What operating system do you use and what is the
> libssl version?
>
> Cheers,
> Daniel
>
> On 06/10/16 17:43, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> I do not use puke.top rpc command. Maybe this issue related to TLS?
> Servers what has this problem are utilizing TLS heavily, servers which do
> not has this problem use UDP.
>
> With kind regards,
>
> Jurijs
>
> On Thu, Oct 6, 2016 at 6:05 PM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> are you using pike.top rpc command? I noticed in the code that it uses
>> system malloc, but I haven't investigated further yet, first to see if this
>> would be a possibility ...
>>
>> Cheers,
>> Daniel
>>
>> On 06/10/16 16:33, Jurijs Ivolga wrote:
>>
>> Hi Daniel,
>>
>> We do not do any external operations.
>>
>> We are using janson 2.7 everywhere. I will try to update to latest janson
>> version tomorrow.
>> All json operation is pretty much same, we are using only jansson_get.
>>
>> In attachment you can see memory consumption. On the right 2 servers
>> which are faced internet on the left which don't face internet. As you can
>> see memory consumption is pretty dramatic.
>>
>> Thank you for your help!
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Thu, Oct 6, 2016 at 5:17 PM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> are you doing different external operations than on the other instances,
>>> like mi/rpc commands.
>>>
>>> From the list of the modules you exposed, I think jansson has the higher
>>> probability to work with system memory. Are you doing different json
>>> operations in config that in the other instances of kamailio? Are you using
>>> same version of libjansson everywhere?
>>>
>>> Cheers,
>>> Daniel
>>> On 06/10/16 13:46, Jurijs Ivolga wrote:
>>>
>>> Hi Daniel,
>>>
>>> This modules what we are using:
>>>
>>> loadmodule "mi_fifo.so"
>>> loadmodule "kex.so"
>>> loadmodule "corex.so"
>>> loadmodule "tm.so"
>>> loadmodule "tmx.so"
>>> loadmodule "sl.so"
>>> loadmodule "rr.so"
>>> loadmodule "pv.so"
>>> loadmodule "maxfwd.so"
>>> loadmodule "textops.so"
>>> loadmodule "siputils.so"
>>> loadmodule "xlog.so"
>>> loadmodule "sanity.so"
>>> loadmodule "ctl.so"
>>> loadmodule "cfg_rpc.so"
>>> loadmodule "mi_rpc.so"
>>> loadmodule "dispatcher.so"
>>> loadmodule "utils.so"
>>> loadmodule "path.so"
>>> loadmodule "ipops.so"
>>> loadmodule "jansson.so"
>>> loadmodule "auth.so"
>>> loadmodule "nathelper.so"
>>> loadmodule "tls.so"
>>> loadmodule "htable.so"
>>> loadmodule "pike.so"
>>>
>>> We have several other Kamailio instances but they are not faced to
>>> internet and they do not have such memory issue. That other Kamailio
>>> instances have same modules,  except modules listed below. So if you think
>>> that issue is inside external library, probably we need to check first
>>> modules from list below.
>>>
>>> loadmodule "ipops.so"
>>> loadmodule "auth.so"
>>> loadmodule "nathelper.so"
>>> loadmodule "pike.so"
>>>
>>> But maybe this other Kamailio instances do not have this memory issue,
>>> just because they did not face to internet and did not have same load as
>>> instances with memory issue.
>>>
>>>  kamailio -v
>>> version: kamailio 4.4.3 (x86_64/linux) 5a2195
>>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
>>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>>> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>>> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>>> USE_

Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-06 Thread Jurijs Ivolga
Hi Daniel,

We do not do any external operations.

We are using janson 2.7 everywhere. I will try to update to latest janson
version tomorrow.
All json operation is pretty much same, we are using only jansson_get.

In attachment you can see memory consumption. On the right 2 servers which
are faced internet on the left which don't face internet. As you can see
memory consumption is pretty dramatic.

Thank you for your help!

With kind regards,

Jurijs

On Thu, Oct 6, 2016 at 5:17 PM, Daniel-Constantin Mierla <mico...@gmail.com>
wrote:

> Hello,
>
> are you doing different external operations than on the other instances,
> like mi/rpc commands.
>
> From the list of the modules you exposed, I think jansson has the higher
> probability to work with system memory. Are you doing different json
> operations in config that in the other instances of kamailio? Are you using
> same version of libjansson everywhere?
>
> Cheers,
> Daniel
> On 06/10/16 13:46, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> This modules what we are using:
>
> loadmodule "mi_fifo.so"
> loadmodule "kex.so"
> loadmodule "corex.so"
> loadmodule "tm.so"
> loadmodule "tmx.so"
> loadmodule "sl.so"
> loadmodule "rr.so"
> loadmodule "pv.so"
> loadmodule "maxfwd.so"
> loadmodule "textops.so"
> loadmodule "siputils.so"
> loadmodule "xlog.so"
> loadmodule "sanity.so"
> loadmodule "ctl.so"
> loadmodule "cfg_rpc.so"
> loadmodule "mi_rpc.so"
> loadmodule "dispatcher.so"
> loadmodule "utils.so"
> loadmodule "path.so"
> loadmodule "ipops.so"
> loadmodule "jansson.so"
> loadmodule "auth.so"
> loadmodule "nathelper.so"
> loadmodule "tls.so"
> loadmodule "htable.so"
> loadmodule "pike.so"
>
> We have several other Kamailio instances but they are not faced to
> internet and they do not have such memory issue. That other Kamailio
> instances have same modules,  except modules listed below. So if you think
> that issue is inside external library, probably we need to check first
> modules from list below.
>
> loadmodule "ipops.so"
> loadmodule "auth.so"
> loadmodule "nathelper.so"
> loadmodule "pike.so"
>
> But maybe this other Kamailio instances do not have this memory issue,
> just because they did not face to internet and did not have same load as
> instances with memory issue.
>
>  kamailio -v
> version: kamailio 4.4.3 (x86_64/linux) 5a2195
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: 5a2195
> compiled on 08:30:51 Sep 15 2016 with gcc 4.4.7
>
>
> With kind regards,
>
>
> Jurijs
>
> On Thu, Oct 6, 2016 at 12:52 PM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> it looks like a leak from the system memory, not from kamailio's pkg or
>> shm memory. This can be due to an improper use of an external library
>> (e.g., libxml2) by a kamailio module or because of a problem in the library.
>>
>> Can you list the modules used in your config (the loadmodule lines)? I
>> will try to guess from the list which one relying on external libs with
>> higher risk of leak issues.
>>
>> Also, provide the version of kamailio you are using (kamailio -v).
>>
>> Cheers,
>> Daniel
>>
>> On 04/10/16 15:42, Jurijs Ivolga wrote:
>>
>> Hi,
>>
>> Our Kamailio server is crashing once per week, with following error:
>>
>> Oct  1 06:25:06 kamailio kernel: [26982632.803789] Out of memory in UB
>> 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB,
>> rss:280200kB, swap:131408kB
>>
>> Core dump was never created, probably it is because of my environment,
>> but I will try to get it.
>>
>> Server constantly eats memory, maybe some kind of memory leak?
>>
>> Any help is highly appreciated!
>>
>> Jurijs
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
&g

Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-06 Thread Jurijs Ivolga
Hi Daniel,

I do not use puke.top rpc command. Maybe this issue related to TLS? Servers
what has this problem are utilizing TLS heavily, servers which do not has
this problem use UDP.

With kind regards,

Jurijs

On Thu, Oct 6, 2016 at 6:05 PM, Daniel-Constantin Mierla <mico...@gmail.com>
wrote:

> Hello,
>
> are you using pike.top rpc command? I noticed in the code that it uses
> system malloc, but I haven't investigated further yet, first to see if this
> would be a possibility ...
>
> Cheers,
> Daniel
>
> On 06/10/16 16:33, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> We do not do any external operations.
>
> We are using janson 2.7 everywhere. I will try to update to latest janson
> version tomorrow.
> All json operation is pretty much same, we are using only jansson_get.
>
> In attachment you can see memory consumption. On the right 2 servers which
> are faced internet on the left which don't face internet. As you can see
> memory consumption is pretty dramatic.
>
> Thank you for your help!
>
> With kind regards,
>
> Jurijs
>
> On Thu, Oct 6, 2016 at 5:17 PM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> are you doing different external operations than on the other instances,
>> like mi/rpc commands.
>>
>> From the list of the modules you exposed, I think jansson has the higher
>> probability to work with system memory. Are you doing different json
>> operations in config that in the other instances of kamailio? Are you using
>> same version of libjansson everywhere?
>>
>> Cheers,
>> Daniel
>> On 06/10/16 13:46, Jurijs Ivolga wrote:
>>
>> Hi Daniel,
>>
>> This modules what we are using:
>>
>> loadmodule "mi_fifo.so"
>> loadmodule "kex.so"
>> loadmodule "corex.so"
>> loadmodule "tm.so"
>> loadmodule "tmx.so"
>> loadmodule "sl.so"
>> loadmodule "rr.so"
>> loadmodule "pv.so"
>> loadmodule "maxfwd.so"
>> loadmodule "textops.so"
>> loadmodule "siputils.so"
>> loadmodule "xlog.so"
>> loadmodule "sanity.so"
>> loadmodule "ctl.so"
>> loadmodule "cfg_rpc.so"
>> loadmodule "mi_rpc.so"
>> loadmodule "dispatcher.so"
>> loadmodule "utils.so"
>> loadmodule "path.so"
>> loadmodule "ipops.so"
>> loadmodule "jansson.so"
>> loadmodule "auth.so"
>> loadmodule "nathelper.so"
>> loadmodule "tls.so"
>> loadmodule "htable.so"
>> loadmodule "pike.so"
>>
>> We have several other Kamailio instances but they are not faced to
>> internet and they do not have such memory issue. That other Kamailio
>> instances have same modules,  except modules listed below. So if you think
>> that issue is inside external library, probably we need to check first
>> modules from list below.
>>
>> loadmodule "ipops.so"
>> loadmodule "auth.so"
>> loadmodule "nathelper.so"
>> loadmodule "pike.so"
>>
>> But maybe this other Kamailio instances do not have this memory issue,
>> just because they did not face to internet and did not have same load as
>> instances with memory issue.
>>
>>  kamailio -v
>> version: kamailio 4.4.3 (x86_64/linux) 5a2195
>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> id: 5a2195
>> compiled on 08:30:51 Sep 15 2016 with gcc 4.4.7
>>
>>
>> With kind regards,
>>
>>
>> Jurijs
>>
>> On Thu, Oct 6, 2016 at 12:52 PM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> it looks like a leak from the system memory, not from kamailio's pkg or
>>> shm memory. This can be due to an improper use of an external library
>>> (e.g., libxml2) by a kamailio module or because of a problem in the library.
>>>
>>> Can you list the modules used in your config (the loadmodule lines

Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-11-07 Thread Jurijs Ivolga
Hi Daniel,

I found modules what are impacted by this leak:

http_client
utils
xcap
http_async_client
auth_identity
xcap_client

I would like to update documentations, but this is first time when I'm
updating documentation.

I believe I need to update xml file for module. Should I then regenerate
readme file as stated here:

https://www.kamailio.org/wiki/devel/how-to/module-readme

Or not?

Then I believe to create pull request with my changes. Correct?

Maybe you have manual for this?

With kind regards,

Jurijs

On Wed, Oct 12, 2016 at 4:30 PM, Daniel-Constantin Mierla <mico...@gmail.com
> wrote:

> Hello,
>
> ok, so that was...
>
> Maybe it would be good to add a note to the docs of the module about this
> issue so people become aware of it. I guess the other http_* modules are
> affected. Pull requests or other suggestions are welcome, of course!
>
> Cheers,
> Daniel
>
> On 12/10/16 15:04, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> Thank you a lot, it looks that issue is solved, after updating libcurl.
>
> I was using following manual for updating libcurl, in case if somebody
> will have same issue.
>
> https://www.digitalocean.com/community/questions/how-to-
> upgrade-curl-in-centos6
>
> With kind regards,
>
> Jurijs
>
> On Tue, Oct 11, 2016 at 2:43 PM, Jurijs Ivolga <jurijs.ivo...@gmail.com>
> wrote:
>
>> Hi Daniel,
>>
>> You are correct we are using heavily http_query.
>>
>> I found following bug report:
>>
>> https://bugs.centos.org/view.php?id=9391
>>
>> I will try to update to libcurl 7.44 and check if this help.
>>
>> Thank you a lot Daniel!
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Tue, Oct 11, 2016 at 10:55 AM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> from the logs, it seems to be related to curl library, I see many
>>> reports like:
>>>
>>> ==16459== 189,318 bytes in 167 blocks are possibly lost in loss record
>>> 681 of 683
>>> ==16459==at 0x4C26FEF: calloc (vg_replace_malloc.c:711)
>>> ==16459==by 0x104BB699: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104AA537: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104AB81E: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104B0B88: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104B77E1: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0xB71ABC9: ??? (in /usr/lib64/libnss3.so)
>>> ==16459==by 0xB71AE62: PK11_CreateGenericObject (in
>>> /usr/lib64/libnss3.so)
>>> ==16459==by 0xA0674DF: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>> ==16459==by 0xA067666: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>> ==16459==by 0xA069141: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>> ==16459==by 0xA0601C4: Curl_ssl_connect (in
>>> /usr/lib64/libcurl.so.4.1.1)
>>>
>>> That's like almost 200KB lost in this report.
>>>
>>> From the list of the modules, I see you have utils and I guess you use
>>> http query function from there, is it?
>>>
>>> Cheers,
>>> Daniel
>>>
>>> On 10/10/16 12:06, Jurijs Ivolga wrote:
>>>
>>> Hi Daniel,
>>>
>>> I left valgrind running for little while, not sure if this will be
>>> enough.
>>>
>>> Please find attached log file.
>>>
>>> Thank you a lot for your help!
>>>
>>> With kind regards,
>>>
>>> Jurijs
>>>
>>> On Fri, Oct 7, 2016 at 7:15 PM, Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> that's the way it was done for older versions of kamailio.
>>>>
>>>> In master and 4.4 the memory debugging is turned on and it is reflected
>>>> by the presence of DBG_SR_MEMORY in the output of 'kamailio -v'.
>>>>
>>>> Anyhow, what you reported is not a leak inside kamailio memory manager,
>>>> but a leak of using system memory, so it is not affected by DBG_SR_MEMORY
>>>> and cannot be troubleshooted using the mechanisms for pkg and shm managers.
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>>
>>> --
>>> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
>>> http://www.linkedin.com/in/miconda
>>> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>>>
>>> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-21 Thread Jurijs Ivolga
Hi Daniel,

After 8 days there is still small memory leak, 200MB of Ram wasn't freed
during this 8 days, please check diagram below.

1) Is this something usual?
2) Memory leak seems very small, maybe I should never worry about this?
What you think?

[image: Inline image 2]

Thank
you!

With kind regards,

Jurijs

On Wed, Oct 12, 2016 at 4:47 PM, Daniel-Constantin Mierla <mico...@gmail.com
> wrote:

> Hello,
>
> thanks -- coming in my mind now, xcap_client should use also the curl
> library.
> Cheers,
> Daniel
>
>
> On 12/10/16 15:35, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> I will test couple more days and later I will try to add some comments to
> utils, http_client & HTTP_ASYNC_CLIENT(not sure if there any other modules
> which use curl, but I will check) modules when I will be 200% sure that
> issue is gone.
>
> With kind regards,
>
> Jurijs
>
> On Wed, Oct 12, 2016 at 4:30 PM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> ok, so that was...
>>
>> Maybe it would be good to add a note to the docs of the module about this
>> issue so people become aware of it. I guess the other http_* modules are
>> affected. Pull requests or other suggestions are welcome, of course!
>>
>> Cheers,
>> Daniel
>>
>> On 12/10/16 15:04, Jurijs Ivolga wrote:
>>
>> Hi Daniel,
>>
>> Thank you a lot, it looks that issue is solved, after updating libcurl.
>>
>> I was using following manual for updating libcurl, in case if somebody
>> will have same issue.
>>
>> https://www.digitalocean.com/community/questions/how-to-upgr
>> ade-curl-in-centos6
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Tue, Oct 11, 2016 at 2:43 PM, Jurijs Ivolga <jurijs.ivo...@gmail.com>
>> wrote:
>>
>>> Hi Daniel,
>>>
>>> You are correct we are using heavily http_query.
>>>
>>> I found following bug report:
>>>
>>> https://bugs.centos.org/view.php?id=9391
>>>
>>> I will try to update to libcurl 7.44 and check if this help.
>>>
>>> Thank you a lot Daniel!
>>>
>>> With kind regards,
>>>
>>> Jurijs
>>>
>>> On Tue, Oct 11, 2016 at 10:55 AM, Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> from the logs, it seems to be related to curl library, I see many
>>>> reports like:
>>>>
>>>> ==16459== 189,318 bytes in 167 blocks are possibly lost in loss record
>>>> 681 of 683
>>>> ==16459==at 0x4C26FEF: calloc (vg_replace_malloc.c:711)
>>>> ==16459==by 0x104BB699: ??? (in /usr/lib64/libnsspem.so)
>>>> ==16459==by 0x104AA537: ??? (in /usr/lib64/libnsspem.so)
>>>> ==16459==by 0x104AB81E: ??? (in /usr/lib64/libnsspem.so)
>>>> ==16459==by 0x104B0B88: ??? (in /usr/lib64/libnsspem.so)
>>>> ==16459==by 0x104B77E1: ??? (in /usr/lib64/libnsspem.so)
>>>> ==16459==by 0xB71ABC9: ??? (in /usr/lib64/libnss3.so)
>>>> ==16459==by 0xB71AE62: PK11_CreateGenericObject (in
>>>> /usr/lib64/libnss3.so)
>>>> ==16459==by 0xA0674DF: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>>> ==16459==by 0xA067666: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>>> ==16459==by 0xA069141: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>>> ==16459==by 0xA0601C4: Curl_ssl_connect (in
>>>> /usr/lib64/libcurl.so.4.1.1)
>>>>
>>>> That's like almost 200KB lost in this report.
>>>>
>>>> From the list of the modules, I see you have utils and I guess you use
>>>> http query function from there, is it?
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>> On 10/10/16 12:06, Jurijs Ivolga wrote:
>>>>
>>>> Hi Daniel,
>>>>
>>>> I left valgrind running for little while, not sure if this will be
>>>> enough.
>>>>
>>>> Please find attached log file.
>>>>
>>>> Thank you a lot for your help!
>>>>
>>>> With kind regards,
>>>>
>>>> Jurijs
>>>>
>>>> On Fri, Oct 7, 2016 at 7:15 PM, Daniel-Constantin Mierla <
>>>> mico...@gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> that's the way it was done for older versions of kamailio.
>>>>>
>>>>> In master and 4.4 the memory debugg

Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-11 Thread Jurijs Ivolga
Hi Daniel,

You are correct we are using heavily http_query.

I found following bug report:

https://bugs.centos.org/view.php?id=9391

I will try to update to libcurl 7.44 and check if this help.

Thank you a lot Daniel!

With kind regards,

Jurijs

On Tue, Oct 11, 2016 at 10:55 AM, Daniel-Constantin Mierla <
mico...@gmail.com> wrote:

> Hello,
>
> from the logs, it seems to be related to curl library, I see many reports
> like:
>
> ==16459== 189,318 bytes in 167 blocks are possibly lost in loss record 681
> of 683
> ==16459==at 0x4C26FEF: calloc (vg_replace_malloc.c:711)
> ==16459==by 0x104BB699: ??? (in /usr/lib64/libnsspem.so)
> ==16459==by 0x104AA537: ??? (in /usr/lib64/libnsspem.so)
> ==16459==by 0x104AB81E: ??? (in /usr/lib64/libnsspem.so)
> ==16459==by 0x104B0B88: ??? (in /usr/lib64/libnsspem.so)
> ==16459==by 0x104B77E1: ??? (in /usr/lib64/libnsspem.so)
> ==16459==by 0xB71ABC9: ??? (in /usr/lib64/libnss3.so)
> ==16459==by 0xB71AE62: PK11_CreateGenericObject (in
> /usr/lib64/libnss3.so)
> ==16459==by 0xA0674DF: ??? (in /usr/lib64/libcurl.so.4.1.1)
> ==16459==by 0xA067666: ??? (in /usr/lib64/libcurl.so.4.1.1)
> ==16459==by 0xA069141: ??? (in /usr/lib64/libcurl.so.4.1.1)
> ==16459==by 0xA0601C4: Curl_ssl_connect (in
> /usr/lib64/libcurl.so.4.1.1)
>
> That's like almost 200KB lost in this report.
>
> From the list of the modules, I see you have utils and I guess you use
> http query function from there, is it?
>
> Cheers,
> Daniel
>
> On 10/10/16 12:06, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> I left valgrind running for little while, not sure if this will be enough.
>
> Please find attached log file.
>
> Thank you a lot for your help!
>
> With kind regards,
>
> Jurijs
>
> On Fri, Oct 7, 2016 at 7:15 PM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> that's the way it was done for older versions of kamailio.
>>
>> In master and 4.4 the memory debugging is turned on and it is reflected
>> by the presence of DBG_SR_MEMORY in the output of 'kamailio -v'.
>>
>> Anyhow, what you reported is not a leak inside kamailio memory manager,
>> but a leak of using system memory, so it is not affected by DBG_SR_MEMORY
>> and cannot be troubleshooted using the mechanisms for pkg and shm managers.
>>
>> Cheers,
>> Daniel
>>
>>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-12 Thread Jurijs Ivolga
Hi Daniel,

Thank you a lot, it looks that issue is solved, after updating libcurl.

I was using following manual for updating libcurl, in case if somebody will
have same issue.

https://www.digitalocean.com/community/questions/how-to-upgrade-curl-in-centos6

With kind regards,

Jurijs

On Tue, Oct 11, 2016 at 2:43 PM, Jurijs Ivolga <jurijs.ivo...@gmail.com>
wrote:

> Hi Daniel,
>
> You are correct we are using heavily http_query.
>
> I found following bug report:
>
> https://bugs.centos.org/view.php?id=9391
>
> I will try to update to libcurl 7.44 and check if this help.
>
> Thank you a lot Daniel!
>
> With kind regards,
>
> Jurijs
>
> On Tue, Oct 11, 2016 at 10:55 AM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> from the logs, it seems to be related to curl library, I see many reports
>> like:
>>
>> ==16459== 189,318 bytes in 167 blocks are possibly lost in loss record
>> 681 of 683
>> ==16459==at 0x4C26FEF: calloc (vg_replace_malloc.c:711)
>> ==16459==by 0x104BB699: ??? (in /usr/lib64/libnsspem.so)
>> ==16459==by 0x104AA537: ??? (in /usr/lib64/libnsspem.so)
>> ==16459==by 0x104AB81E: ??? (in /usr/lib64/libnsspem.so)
>> ==16459==by 0x104B0B88: ??? (in /usr/lib64/libnsspem.so)
>> ==16459==by 0x104B77E1: ??? (in /usr/lib64/libnsspem.so)
>> ==16459==by 0xB71ABC9: ??? (in /usr/lib64/libnss3.so)
>> ==16459==by 0xB71AE62: PK11_CreateGenericObject (in
>> /usr/lib64/libnss3.so)
>> ==16459==by 0xA0674DF: ??? (in /usr/lib64/libcurl.so.4.1.1)
>> ==16459==by 0xA067666: ??? (in /usr/lib64/libcurl.so.4.1.1)
>> ==16459==by 0xA069141: ??? (in /usr/lib64/libcurl.so.4.1.1)
>> ==16459==by 0xA0601C4: Curl_ssl_connect (in
>> /usr/lib64/libcurl.so.4.1.1)
>>
>> That's like almost 200KB lost in this report.
>>
>> From the list of the modules, I see you have utils and I guess you use
>> http query function from there, is it?
>>
>> Cheers,
>> Daniel
>>
>> On 10/10/16 12:06, Jurijs Ivolga wrote:
>>
>> Hi Daniel,
>>
>> I left valgrind running for little while, not sure if this will be enough.
>>
>> Please find attached log file.
>>
>> Thank you a lot for your help!
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Fri, Oct 7, 2016 at 7:15 PM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> that's the way it was done for older versions of kamailio.
>>>
>>> In master and 4.4 the memory debugging is turned on and it is reflected
>>> by the presence of DBG_SR_MEMORY in the output of 'kamailio -v'.
>>>
>>> Anyhow, what you reported is not a leak inside kamailio memory manager,
>>> but a leak of using system memory, so it is not affected by DBG_SR_MEMORY
>>> and cannot be troubleshooted using the mechanisms for pkg and shm managers.
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>> --
>> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
>> http://www.linkedin.com/in/miconda
>> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>>
>>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Out of memory in UB 210: OOM killed process 12261 (kamailio) score 0 vm:1614768kB, rss:280200kB, swap:131408kB

2016-10-12 Thread Jurijs Ivolga
Hi Daniel,

I will test couple more days and later I will try to add some comments to
utils, http_client & HTTP_ASYNC_CLIENT(not sure if there any other modules
which use curl, but I will check) modules when I will be 200% sure that
issue is gone.

With kind regards,

Jurijs

On Wed, Oct 12, 2016 at 4:30 PM, Daniel-Constantin Mierla <mico...@gmail.com
> wrote:

> Hello,
>
> ok, so that was...
>
> Maybe it would be good to add a note to the docs of the module about this
> issue so people become aware of it. I guess the other http_* modules are
> affected. Pull requests or other suggestions are welcome, of course!
>
> Cheers,
> Daniel
>
> On 12/10/16 15:04, Jurijs Ivolga wrote:
>
> Hi Daniel,
>
> Thank you a lot, it looks that issue is solved, after updating libcurl.
>
> I was using following manual for updating libcurl, in case if somebody
> will have same issue.
>
> https://www.digitalocean.com/community/questions/how-to-
> upgrade-curl-in-centos6
>
> With kind regards,
>
> Jurijs
>
> On Tue, Oct 11, 2016 at 2:43 PM, Jurijs Ivolga <jurijs.ivo...@gmail.com>
> wrote:
>
>> Hi Daniel,
>>
>> You are correct we are using heavily http_query.
>>
>> I found following bug report:
>>
>> https://bugs.centos.org/view.php?id=9391
>>
>> I will try to update to libcurl 7.44 and check if this help.
>>
>> Thank you a lot Daniel!
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Tue, Oct 11, 2016 at 10:55 AM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> from the logs, it seems to be related to curl library, I see many
>>> reports like:
>>>
>>> ==16459== 189,318 bytes in 167 blocks are possibly lost in loss record
>>> 681 of 683
>>> ==16459==at 0x4C26FEF: calloc (vg_replace_malloc.c:711)
>>> ==16459==by 0x104BB699: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104AA537: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104AB81E: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104B0B88: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0x104B77E1: ??? (in /usr/lib64/libnsspem.so)
>>> ==16459==by 0xB71ABC9: ??? (in /usr/lib64/libnss3.so)
>>> ==16459==by 0xB71AE62: PK11_CreateGenericObject (in
>>> /usr/lib64/libnss3.so)
>>> ==16459==by 0xA0674DF: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>> ==16459==by 0xA067666: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>> ==16459==by 0xA069141: ??? (in /usr/lib64/libcurl.so.4.1.1)
>>> ==16459==by 0xA0601C4: Curl_ssl_connect (in
>>> /usr/lib64/libcurl.so.4.1.1)
>>>
>>> That's like almost 200KB lost in this report.
>>>
>>> From the list of the modules, I see you have utils and I guess you use
>>> http query function from there, is it?
>>>
>>> Cheers,
>>> Daniel
>>>
>>> On 10/10/16 12:06, Jurijs Ivolga wrote:
>>>
>>> Hi Daniel,
>>>
>>> I left valgrind running for little while, not sure if this will be
>>> enough.
>>>
>>> Please find attached log file.
>>>
>>> Thank you a lot for your help!
>>>
>>> With kind regards,
>>>
>>> Jurijs
>>>
>>> On Fri, Oct 7, 2016 at 7:15 PM, Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> that's the way it was done for older versions of kamailio.
>>>>
>>>> In master and 4.4 the memory debugging is turned on and it is reflected
>>>> by the presence of DBG_SR_MEMORY in the output of 'kamailio -v'.
>>>>
>>>> Anyhow, what you reported is not a leak inside kamailio memory manager,
>>>> but a leak of using system memory, so it is not affected by DBG_SR_MEMORY
>>>> and cannot be troubleshooted using the mechanisms for pkg and shm managers.
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>>
>>> --
>>> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
>>> http://www.linkedin.com/in/miconda
>>> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>>>
>>> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users