[SR-Users] Kamailio Crashes when dispatcher failover is being applied

2016-07-18 Thread TEG AMJG
Dear list

Im quite new to Kamailio and i found something while trying to see the
failover behaviour in Kamailio. I have a kamailio v4.3.5 load balancing two
Asterisk boxes.

This happens just when i stop one of the asterisk and make a call that is
being load balanced to the same asterisk box that i stopped before, when
trying to go to failure_route and dispatch it to the other box then
Kamailio just crashes. I have debug=4 in the config file and it really
doesnt say much about the error. This is the relative logging i could found:
































*Jul 18 16:30:13 kam2 /usr/sbin/kamailio[69548]: INFO: 

Re: [SR-Users] Push Notifications

2016-07-18 Thread Nahum Nir
Yes, thanks to Federico Cabiddu :)

On 18 Jul 2016 21:42, "Giovanni Maruzzelli"  wrote:

> Thanks to Federico Cabiddu, actually !
> :)
>
>
> On Mon, Jul 18, 2016 at 8:38 PM, Nahum Nir 
> wrote:
>
>> Thank you so much!
>> tsilo saved my in oune hour :)
>>
>> Cheers!
>>
>> On Mon, Jul 18, 2016 at 7:31 PM, Giovanni Maruzzelli 
>> wrote:
>>
>>> Nahum,
>>>
>>> please check Federico's presentation at Kamailio World 2016:
>>> http://www.kamailio.org/events/2016-KamailioWorld/Day2/16-Federico.Cabiddu-Thriving-In-A-Mobile-World.pdf
>>>
>>> -giovanni
>>>
>>>
>>> On Mon, Jul 18, 2016 at 3:03 PM, Nahum Nir 
>>> wrote:
>>>
 Hi Daniel,

 I saw this:
 http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Daniel-Constantin.Mierla-Kamailio.cfg-Async.pdf
 Is it by you?
 Think that the block route(PUSHAYASYNC) is not at the presentatiom.

 Thanks,
 Nir

 On Mon, Jul 18, 2016 at 3:45 PM, Daniel-Constantin Mierla <
 mico...@gmail.com> wrote:

> Hello,
>
> which presentation you saw? I think Federico Cabiddu showed some
> config snippets in his presentations.
>
> Cheers,
> Daniel
>
> On 18/07/16 12:13, Nahum Nir wrote:
>
> Hello,
> Found the presentation about asynch push. Is there an example cfg file?
> Thanks,
> Nir
>
>
> ___
> 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://www.asipto.com - 
> http://www.kamailio.orghttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
>
>
> ___
> 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


>>>
>>>
>>> --
>>> Sincerely,
>>>
>>> Giovanni Maruzzelli
>>> Cell : +39-347-2665618
>>>
>>> ___
>>> 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
>>>
>>>
>>
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> Cell : +39-347-2665618
>
___
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] Push Notifications

2016-07-18 Thread Giovanni Maruzzelli
Thanks to Federico Cabiddu, actually !
:)


On Mon, Jul 18, 2016 at 8:38 PM, Nahum Nir 
wrote:

> Thank you so much!
> tsilo saved my in oune hour :)
>
> Cheers!
>
> On Mon, Jul 18, 2016 at 7:31 PM, Giovanni Maruzzelli 
> wrote:
>
>> Nahum,
>>
>> please check Federico's presentation at Kamailio World 2016:
>> http://www.kamailio.org/events/2016-KamailioWorld/Day2/16-Federico.Cabiddu-Thriving-In-A-Mobile-World.pdf
>>
>> -giovanni
>>
>>
>> On Mon, Jul 18, 2016 at 3:03 PM, Nahum Nir 
>> wrote:
>>
>>> Hi Daniel,
>>>
>>> I saw this:
>>> http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Daniel-Constantin.Mierla-Kamailio.cfg-Async.pdf
>>> Is it by you?
>>> Think that the block route(PUSHAYASYNC) is not at the presentatiom.
>>>
>>> Thanks,
>>> Nir
>>>
>>> On Mon, Jul 18, 2016 at 3:45 PM, Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
 Hello,

 which presentation you saw? I think Federico Cabiddu showed some config
 snippets in his presentations.

 Cheers,
 Daniel

 On 18/07/16 12:13, Nahum Nir wrote:

 Hello,
 Found the presentation about asynch push. Is there an example cfg file?
 Thanks,
 Nir


 ___
 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://www.asipto.com - 
 http://www.kamailio.orghttp://twitter.com/#!/miconda - 
 http://www.linkedin.com/in/miconda


 ___
 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
>>>
>>>
>>
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> Cell : +39-347-2665618
>>
>> ___
>> 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
>>
>>
>


-- 
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
___
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] Push Notifications

2016-07-18 Thread Nahum Nir
Thank you so much!
tsilo saved my in oune hour :)

Cheers!

On Mon, Jul 18, 2016 at 7:31 PM, Giovanni Maruzzelli 
wrote:

> Nahum,
>
> please check Federico's presentation at Kamailio World 2016:
> http://www.kamailio.org/events/2016-KamailioWorld/Day2/16-Federico.Cabiddu-Thriving-In-A-Mobile-World.pdf
>
> -giovanni
>
>
> On Mon, Jul 18, 2016 at 3:03 PM, Nahum Nir 
> wrote:
>
>> Hi Daniel,
>>
>> I saw this:
>> http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Daniel-Constantin.Mierla-Kamailio.cfg-Async.pdf
>> Is it by you?
>> Think that the block route(PUSHAYASYNC) is not at the presentatiom.
>>
>> Thanks,
>> Nir
>>
>> On Mon, Jul 18, 2016 at 3:45 PM, Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> which presentation you saw? I think Federico Cabiddu showed some config
>>> snippets in his presentations.
>>>
>>> Cheers,
>>> Daniel
>>>
>>> On 18/07/16 12:13, Nahum Nir wrote:
>>>
>>> Hello,
>>> Found the presentation about asynch push. Is there an example cfg file?
>>> Thanks,
>>> Nir
>>>
>>>
>>> ___
>>> 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://www.asipto.com - 
>>> http://www.kamailio.orghttp://twitter.com/#!/miconda - 
>>> http://www.linkedin.com/in/miconda
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Sincerely,
>
> Giovanni Maruzzelli
> Cell : +39-347-2665618
>
> ___
> 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] Push Notifications

2016-07-18 Thread Giovanni Maruzzelli
Nahum,

please check Federico's presentation at Kamailio World 2016:
http://www.kamailio.org/events/2016-KamailioWorld/Day2/16-Federico.Cabiddu-Thriving-In-A-Mobile-World.pdf

-giovanni


On Mon, Jul 18, 2016 at 3:03 PM, Nahum Nir 
wrote:

> Hi Daniel,
>
> I saw this:
> http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Daniel-Constantin.Mierla-Kamailio.cfg-Async.pdf
> Is it by you?
> Think that the block route(PUSHAYASYNC) is not at the presentatiom.
>
> Thanks,
> Nir
>
> On Mon, Jul 18, 2016 at 3:45 PM, Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> which presentation you saw? I think Federico Cabiddu showed some config
>> snippets in his presentations.
>>
>> Cheers,
>> Daniel
>>
>> On 18/07/16 12:13, Nahum Nir wrote:
>>
>> Hello,
>> Found the presentation about asynch push. Is there an example cfg file?
>> Thanks,
>> Nir
>>
>>
>> ___
>> 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://www.asipto.com - 
>> http://www.kamailio.orghttp://twitter.com/#!/miconda - 
>> http://www.linkedin.com/in/miconda
>>
>>
>> ___
>> 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
>
>


-- 
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
___
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 + rtpproxy + SRTP

2016-07-18 Thread Konstantin M.
I have some problem with SSL+rtpproxy, kamailio successfully decodes SIP,
rtpproxy decodes SRTP frames, all is going to freeswitch unencrypted. FS
transfers the call back, the call is going unencrypted though kamailio,
kamailio encodes to SSL, but rtpproxy DOESN'T encodes RTP frames to SRTP.
Hence, endpoint SIP equipment rejects the call with 488 Not Acceptable Here

Scenario

1. Endpoint device -> SRTP -> kamailio -> RTP -> freeswitch
2. Freeswitch calls back
3. freeswitch -> RTP -> kamailio -> PROBLEM (SIP[TLS] + RTP (but not SRTP))
-> Endpoint device
4. Endpoint device -> 488 Not Acceptable Here -> Kamailio


Could somebody point me what's wrong here?

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


Re: [SR-Users] Rx Interface connected, get error code: SIP/2.0 403 Forbidden - You must register first with a S-CSCF

2016-07-18 Thread Kristian Martens

All,

thank you for the prompt response. Attached you can find the current
configuration files. SUBSCRIBE works fine, if Rx isn't connected.
"Auth Lifetime" or "Session Timeout" are set to 7200 in AAR - should be
OK in my opinion.

Unfortunately archives are blocked by the server so I attached the
config files separately.

Best Regards,
Kristian


icscf
Description: application/http-index-format


pcscf
Description: application/http-index-format


scscf
Description: application/http-index-format
#
# $Id$
#
# SIP RADIUS attributes
#
# Proprietary indicates an attribute that hasn't
# been standardized
#
#
# NOTE: All standard (IANA registered) attributes are 
#   defined in the default dictionary of the 
#   radiusclient-ng library.
#


 Attributes ###
ATTRIBUTE Sip-Uri-User 208  string # Proprietary, auth_radius
ATTRIBUTE Sip-Group211  string # Proprietary, group_radius
ATTRIBUTE Sip-Rpid 213  string # Proprietary, auth_radius
ATTRIBUTE SIP-AVP  225  string # Proprietary, avp_radius

### Acct-Status-Type Values ###
#VALUE Acct-Status-Type   Failed   15   # RFC2866, acc

### Service-Type Values ###
#VALUE Service-Type   Call-Check   10   # RFC2865, uri_radius
VALUE Service-Type   Group-Check  12   # Proprietary, group_radius
##VALUE Service-Type   Sip-Session  15   # Schulzrinne, acc, auth_radius
VALUE Service-Type   SIP-Caller-AVPs  30   # Proprietary, avp_radius
VALUE Service-Type   SIP-Callee-AVPs  31   # Proprietary, avp_radius

### Sip-Method Values ###
VALUE Sip-Method Undefined  0
VALUE Sip-Method Invite 1
VALUE Sip-Method Cancel 2
VALUE Sip-Method Ack4
VALUE Sip-Method Bye8
VALUE Sip-Method Info   16
VALUE Sip-Method Options32
VALUE Sip-Method Update 64
VALUE Sip-Method Register   128
VALUE Sip-Method Message256
VALUE Sip-Method Subscribe  512
VALUE Sip-Method Notify 1024
VALUE Sip-Method Prack  2048
VALUE Sip-Method Refer  4096
VALUE Sip-Method Other  8192


1:sip:sbc-1.ng-voice.com
1:sip:sbc-2.ng-voice.com

#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.4 - 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 

Re: [SR-Users] Rx Interface connected, get error code: SIP/2.0 403 Forbidden - You must register first with a S-CSCF

2016-07-18 Thread Jason Penton
Thanks Krisitan,

Was last request ;) -- can you please send your log file with debug enabled
during the SUBSCRIBE. If you are concerned about sensitive info, you can
send to me privately.

Cheers
Jason

On Mon, Jul 18, 2016 at 3:21 PM, Kristian Martens <
kristian.mart...@freenet.de> wrote:

> All,
>
> thank you for the prompt response. Attached you can find the current
> configuration files. SUBSCRIBE works fine, if Rx isn't connected.
> "Auth Lifetime" or "Session Timeout" are set to 7200 in AAR - should be
> OK in my opinion.
>
> Best Regards,
> Kristian
>
>
> ___
> 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
>
>


-- 

*Jason Penton*
*Senior Manager: Applications and Services*
*Smile Communications Pty (Ltd)*


*Voice:Mobile:* +234 (0) 702 000 000 7

+27 (0) 83 283 7000
*Skype:* jason.barry.penton
jason.pen...@smilecoms.com 
www.smilecoms.com

-- 


This email is subject to the disclaimer of Smile Communications at 
http://www.smilecoms.com/home/email-disclaimer/ 


___
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] Rx Interface connected, get error code: SIP/2.0 403 Forbidden - You must register first with a S-CSCF

2016-07-18 Thread Kristian Martens
All,

thank you for the prompt response. Attached you can find the current
configuration files. SUBSCRIBE works fine, if Rx isn't connected.
"Auth Lifetime" or "Session Timeout" are set to 7200 in AAR - should be
OK in my opinion.

Best Regards,
Kristian



kamailiocfg.tar.gz
Description: GNU Zip compressed 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] kamailio-dbg package

2016-07-18 Thread Laura García Pérez
Yes,

Thanks a lot!

Laura 




> On 18 Jul 2016, at 14:44, Daniel-Constantin Mierla  wrote:
> 
> Hello,
> 
> are you looking for debugging symbols package?
> 
> It might be named kamailio-debuginfo, as I could see in the list of generated 
> rpms:
> https://build.opensuse.org/package/binaries/home:kamailio:v4.4.x-rpms/kamailio44?repository=CentOS_7
>  
> 
> Cheers,
> Daniel
> 
> On 18/07/16 12:22, Laura García Pérez wrote:
>> Is it possible to install kamailio-dbg in CentOS?
>> 
>> Thanks,
>> 
>> Laura García Pérez
>> www.logslie.com 
>> +34680923532
>> +12602069698
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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 
>> 
> 
> -- 
> Daniel-Constantin Mierla
> http://www.asipto.com  - http://www.kamailio.org 
> 
> http://twitter.com/#!/miconda  - 
> http://www.linkedin.com/in/miconda 
> ___
> 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] tls with ubuntu 16.04

2016-07-18 Thread Jayesh Nambiar
Hi Daniel,
Thanks for looking into this. I tried with this patch and still get the
same error. Here are the relevant part of logs:

 0(25032) DEBUG:  [cfg.y:1603]: yyparse(): loading module tls.so

 0(25032) DEBUG:  [sr_module.c:575]: load_module(): trying to load


 0(25032) DEBUG:  [mem/q_malloc.c:189]: qm_malloc_init():
qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048

 0(25032) DEBUG:  [mem/q_malloc.c:191]: qm_malloc_init():
qm_malloc_init: QM_HASH_SIZE=2099, qm_block size=235152

 0(25032) DEBUG:  [mem/q_malloc.c:193]: qm_malloc_init():
qm_malloc_init(0x7fda8249d000, 67108864), start=0x7fda8249d000

 0(25032) DEBUG:  [mem/q_malloc.c:202]: qm_malloc_init():
qm_malloc_init: size= 67108864, init_overhead=235256

 0(25032) ERROR: tls [tls_init.c:493]: tls_pre_init(): Unable to set the
memory allocation functions

 0(25032) ERROR: tls [tls_init.c:495]: tls_pre_init(): libssl current mem
functions - m: 0x7fda87673550 r: 0x7fda87673c40 f: 0x7fda87673a70

 0(25032) ERROR: tls [tls_init.c:497]: tls_pre_init(): Be sure tls module
is loaded before any other module using libssl (can be loaded first to be
safe)

 0(25032) ERROR:  [sr_module.c:607]: load_module():
/usr/local/kamailio/lib64/kamailio/modules/tls.so: mod_register failed

 0(25032) :  [cfg.y:3391]: yyerror_at(): parse error in config file
/usr/local/kamailio/etc/kamailio/tlkn-edge/kamailio.cfg, line 47, column
12-19: failed to load module


Yes I can provide ssh access to this machine. I'll send it to you
seperately.

Thanks,

- Jayesh

On Mon, Jul 18, 2016 at 2:25 PM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> no time over the weekend to look at logs, but I pushed just now a patch to
> try to see if the memory functions were set or something else prevented the
> set of memory functions.
>
> Can you try with the patch:
>
>   -
> https://github.com/kamailio/kamailio/commit/966513b374eef598434c5310a43eac2735adfd2e
>
> I am at IEFT96 so I will try to do some stuff during the breaks... if
> doesn't work, then it may take a bit to get more into it.
>
> Just in case, would it be possible to get ssh access to such system?
>
> Cheers,
> Daniel
>
> On 18/07/16 09:29, Jayesh Nambiar wrote:
>
> Hi Daniel,
> Any idea of why TLS would not load based on the logs pasted?
>
> - Jayesh
>
> On Fri, Jul 15, 2016 at 4:46 PM Jayesh Nambiar 
> wrote:
>
>> Hi Daniel,
>> Here are the logs:
>> http://pastebin.com/tGRWr9JS
>>
>> Thanks,
>>
>> - Jayesh
>>
>> On Fri, Jul 15, 2016 at 12:29 PM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Yes, put them on pastebin.
>>>
>>> Daniel
>>>
>>> On 15/07/16 07:53, Jayesh Nambiar wrote:
>>>
>>> The libssl version is as follows:
>>>
>>> 1.0.2g-1ubuntu4.1
>>>
>>> And openssl version shows this:
>>>
>>> OpenSSL 1.0.2g-fips  1 Mar 2016
>>>
>>> As for the logs with debug 3, kamailio scans each and every line in the
>>> config and generates a big file. You want me to send that in full. If yes,
>>> I'd put it in a pastebin and send it across.
>>>
>>>
>>> Thanks,
>>>
>>> - Jayesh
>>>
>>> On Thu, Jul 14, 2016 at 8:50 PM Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
 Are these all the logs from kamailio startup? It looks like only the
 ones from the moment it tries to load tls module ...

 Also, you haven't provided the version of libssl.

 Daniel

 On 14/07/16 17:08, Jayesh Nambiar wrote:

 Hi Daniel,
 It indeed disables TLS if written this way. Here are the logs when
 enable_tls is written on above the loadmodule and kamailio fails to load
 module:

 Jul 14 10:25:03 v38 kamailio: DEBUG:  [sr_module.c:575]:
 load_module(): trying to load
 

 Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:189]:
 qm_malloc_init(): qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048

 Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:191]:
 qm_malloc_init(): qm_malloc_init: QM_HASH_SIZE=2099, qm_block size=
 235152

 Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:193]:
 qm_malloc_init(): qm_malloc_init(0x7f5741381000, 67108864), start=
 0x7f5741381000

 Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:202]:
 qm_malloc_init(): qm_malloc_init: size= 67108864, init_overhead=235256

 Jul 14 10:25:03 v38 kamailio: ERROR: tls [tls_init.c:490]:
 tls_pre_init(): Unable to set the memory allocation functions

 Jul 14 10:25:03 v38 kamailio: ERROR:  [sr_module.c:607]:
 load_module(): /usr/local/kamailio/lib64/kamailio/modules/tls.so:
 mod_register failed

 Jul 14 10:25:03 v38 kamailio: :  [cfg.y:3388]: yyerror_at():
 parse error in config file
 /usr/local/kamailio/etc/kamailio/tlkn-edge/kamailio.cfg, line 47, column
 12-19: failed to load module

 I happened to check the tls module doc where in Quickstart the
 enable_tls was written after loadmodule and modparams.


 - Jayesh

 On 

Re: [SR-Users] Push Notifications

2016-07-18 Thread Daniel-Constantin Mierla
Hello,

which presentation you saw? I think Federico Cabiddu showed some config
snippets in his presentations.

Cheers,
Daniel


On 18/07/16 12:13, Nahum Nir wrote:
>
> Hello,
> Found the presentation about asynch push. Is there an example cfg file?
> Thanks,
> Nir
>
>
>
> ___
> 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

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
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-dbg package

2016-07-18 Thread Daniel-Constantin Mierla
Hello,

are you looking for debugging symbols package?

It might be named kamailio-debuginfo, as I could see in the list of
generated rpms:

https://build.opensuse.org/package/binaries/home:kamailio:v4.4.x-rpms/kamailio44?repository=CentOS_7

Cheers,
Daniel

On 18/07/16 12:22, Laura García Pérez wrote:
> Is it possible to install kamailio-dbg in CentOS?
>
> Thanks,
>
> /Laura García Pérez/
> /www.logslie.com 
> /
> /+34680923532
> /
> /+12602069698/
>
>
>
>
>
> ___
> 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

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
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] Segfault in dialog.so with 4.4.2 stable

2016-07-18 Thread Dirk Teurlings - Signet B.V.
On 07/18/2016 11:58 AM, Daniel-Constantin Mierla wrote:
> 
> OK -- just to have full picture -- did you experienced more crashes than
> the two ones you reported?
Yes, we experienced three more crashes

I will send you these gdb bt full crashes directly.


> I see -- can you describe a bit the changes you did from old config to
> the new one (e.g., new modules and routing actions)? If you want to keep
> that private, email those details directly to me.
Main change is that CNXCC forked modules are no longer used. Terminating
calls is now dealt with via dlg.end_dlg h_entry h_id RPC. So in theory,
it's all a lot simpler routing wise now.

By the way, which memory manager is default for 4.3? Same as 4.2 or 4.4?

Hope to find the culprit for this somehow!


Cheers,
Dirk

___
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-dbg package

2016-07-18 Thread Laura García Pérez
Is it possible to install kamailio-dbg in CentOS?

Thanks,

Laura García Pérez
www.logslie.com 
+34680923532
+12602069698



___
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] Segfault in dialog.so with 4.4.2 stable

2016-07-18 Thread Daniel-Constantin Mierla


On 18/07/16 11:23, Dirk Teurlings - Signet B.V. wrote:
> On 07/18/2016 10:49 AM, Daniel-Constantin Mierla wrote:
>> have you run with -x qm before reverting to 4.2?
> No we didn't, as I didn't know what the effects would be, it's a live
> server so we don't want to try changes before testing.

OK -- just to have full picture -- did you experienced more crashes than
the two ones you reported?
>
>> Is the same config you run with 4.2 and 4.4?
> Not at the moment, but we developed the new routes in 4.2 first, then
> upgraded the testplatform to 4.4 without issues. Though the testplatform
> is not identical in hardware to the live system, this looked promising.

I see -- can you describe a bit the changes you did from old config to
the new one (e.g., new modules and routing actions)? If you want to keep
that private, email those details directly to me.
>
>> The version 4.2.8 has qm as default memory manager. In 4.4, fm is the
>> default one but qm can be selected at startup with -x. The main
>> difference is that qm has more safety checks for detecting double free
>> and buffer overflows...
> Right, that sounds very plausible then... Upgrading "back" to 4.4 now
> will have to wait a bit, we don't want to experience the same issues
> again. That being said, it's difficult to track what causes this exactly
> if we can't reproduce it on the testplatform. Unfortunately I'm not at
> liberty to try these things on the running servers.
>
> Anyway, can I get any more information out of the backtraces to help
> resolve this issue with the new memory manager as well? Or do you need
> more info for that?
>
>
If you didn't get other crashes, I can't think of anything else that can
help from the backtrace.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


___
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] Conditionally calling TOPOS

2016-07-18 Thread Daniel-Constantin Mierla
Hello,


On 18/07/16 11:42, Nathan Ward wrote:
> Hi,
>
> I think it make sense to put this topic in a seperate message, though this is 
> very much the same scenario mentioned here: 
> http://lists.sip-router.org/pipermail/sr-users/2016-July/093864.html
>
> I would like the ability initiate topology hiding only for certain messages - 
> i.e. on inbound calls, I would like my Kamailio ‘SBC' to retain the routing 
> information for inbound requests, but strip it for outgoing requests - so 
> that I can see the full path a call has taken to reach and then traverse my 
> network all the way to an egress SBC but then this is all stripped before 
> forwarding the call to a 3rd party (i.e. customer, or carrier).
>
> I note that this isn’t possible at present, but I’d like to take a stab at 
> the code, perhaps designating ‘trusted’ IPs for which topology hiding doesn’t 
> take place.
>
> Before I embark on this, is this something that would be considered useful, 
> or is there a good reason to have full topology hiding that I’m missing?
I have it in my todo list to add the ability to do some filtering rules
when to apply or not topology stripping -- actually even for topology
hiding module, which reveals that was not a real high priority here as I
didn't had really a need for it. In one occasion when I did need it, the
platform was using edge proxies, so we added one dedicated for the
traffic that needs the topoh, the rest being directed to the other edge
proxies. You can do that even on same server, by running kamailio on a
second interface or same net interface but different port.

I was also considering simple ip matching rules, then thought of
actually triggering an event_route where one can use modules such as
permissions to decide to apply or not topology rules.

If you want to contribute some code here, you can go for one that works
easier for you. Later can be enhanced if someone needs more.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


___
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] TOPOS - REGISTER

2016-07-18 Thread Daniel-Constantin Mierla
Hello,


On 18/07/16 11:29, Nathan Ward wrote:
> Hi all,
>
> I’m doing some testing using Kamailio to do some lightweight SBC type 
> functions. We have considered OpenSIPs as well as it has built in b2bua bits, 
> but having chosen Kamailio for other parts of our network it makes sense to 
> stick with one piece of software I think. Luckily, we only need (want) 
> topology hiding, and don’t need other b2bua things.
>
> I have a server in the middle of our network sending registrations out to a 
> 3rd party network for a number of lines, using Kamailio+uacreg. This works 
> great.
> It sends these registrations through an SBC, also running Kamailio. I do this 
> by setting the proxy column of the uacreg table to the SBC’s inside address. 
> On the SBC, I rewrite the Contact header, so calls come in to the SBC.
> I am running topos on the SBC, and would like to be able to do topology 
> hiding for the outgoing REGISTER. I note that there is code in tps_skip_msg 
> to specifically avoid topology hiding for REGISTER and PUBLISH messages. Is 
> there a SIP reason for this, or is this just a part of the code that hasn’t 
> been finished yet or wasn’t needed by the author, so it’s been excluded?
>
> I note that topoh is the same, with a th_skip_msg function that has I think 
> identical code, so no doubt the same reasoning is applied there.
>
> This is a very minor issue, but I’d like to understand the reasoning, and 
> contribute code if the reason is code rather than SIP.
>
>
the REGISTER/PUBLISH are expected to be terminated/initiated to/from
server. TOPOH/S mainly aimed at hiding caller from callee, not focusing
on hiding the traffic initiated from the core platform. Probably it can
be codded, but I haven't had any need for it and the priorities were on
other parts. Of course, contributions are more than welcome!

Topos is pretty much in its early phase. Topoh is battle tested.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


___
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] Conditionally calling TOPOS

2016-07-18 Thread Nathan Ward
Hi,

I think it make sense to put this topic in a seperate message, though this is 
very much the same scenario mentioned here: 
http://lists.sip-router.org/pipermail/sr-users/2016-July/093864.html

I would like the ability initiate topology hiding only for certain messages - 
i.e. on inbound calls, I would like my Kamailio ‘SBC' to retain the routing 
information for inbound requests, but strip it for outgoing requests - so that 
I can see the full path a call has taken to reach and then traverse my network 
all the way to an egress SBC but then this is all stripped before forwarding 
the call to a 3rd party (i.e. customer, or carrier).

I note that this isn’t possible at present, but I’d like to take a stab at the 
code, perhaps designating ‘trusted’ IPs for which topology hiding doesn’t take 
place.

Before I embark on this, is this something that would be considered useful, or 
is there a good reason to have full topology hiding that I’m missing?

--
Nathan Ward


___
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] TOPOS - REGISTER

2016-07-18 Thread Nathan Ward
Hi all,

I’m doing some testing using Kamailio to do some lightweight SBC type 
functions. We have considered OpenSIPs as well as it has built in b2bua bits, 
but having chosen Kamailio for other parts of our network it makes sense to 
stick with one piece of software I think. Luckily, we only need (want) topology 
hiding, and don’t need other b2bua things.

I have a server in the middle of our network sending registrations out to a 3rd 
party network for a number of lines, using Kamailio+uacreg. This works great.
It sends these registrations through an SBC, also running Kamailio. I do this 
by setting the proxy column of the uacreg table to the SBC’s inside address. On 
the SBC, I rewrite the Contact header, so calls come in to the SBC.
I am running topos on the SBC, and would like to be able to do topology hiding 
for the outgoing REGISTER. I note that there is code in tps_skip_msg to 
specifically avoid topology hiding for REGISTER and PUBLISH messages. Is there 
a SIP reason for this, or is this just a part of the code that hasn’t been 
finished yet or wasn’t needed by the author, so it’s been excluded?

I note that topoh is the same, with a th_skip_msg function that has I think 
identical code, so no doubt the same reasoning is applied there.

This is a very minor issue, but I’d like to understand the reasoning, and 
contribute code if the reason is code rather than SIP.

--
Nathan Ward


___
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] Segfault in dialog.so with 4.4.2 stable

2016-07-18 Thread Dirk Teurlings - Signet B.V.

On 07/18/2016 10:49 AM, Daniel-Constantin Mierla wrote:
> have you run with -x qm before reverting to 4.2?
No we didn't, as I didn't know what the effects would be, it's a live
server so we don't want to try changes before testing.

> Is the same config you run with 4.2 and 4.4?
Not at the moment, but we developed the new routes in 4.2 first, then
upgraded the testplatform to 4.4 without issues. Though the testplatform
is not identical in hardware to the live system, this looked promising.

> The version 4.2.8 has qm as default memory manager. In 4.4, fm is the
> default one but qm can be selected at startup with -x. The main
> difference is that qm has more safety checks for detecting double free
> and buffer overflows...
Right, that sounds very plausible then... Upgrading "back" to 4.4 now
will have to wait a bit, we don't want to experience the same issues
again. That being said, it's difficult to track what causes this exactly
if we can't reproduce it on the testplatform. Unfortunately I'm not at
liberty to try these things on the running servers.

Anyway, can I get any more information out of the backtraces to help
resolve this issue with the new memory manager as well? Or do you need
more info for that?

Cheers,
Dirk

___
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] Custom header on reply is removed on t_relay

2016-07-18 Thread David Wilson
Hello All,

We have a Kamailio proxy (P1) and a custom client (A).

Calls are working reliably with A communicating directly with P1.  When A sends 
INVITE to P1, in some cases, we insert a custom header ‘X-Routing’ in the reply.

Now, testing with a new, additional proxy (P2) between these two:  A -> P2 -> 
P1 

A sends INVITE via P2 to P1,  P1 replies include X-Routing header field 
(confirmed by logging message buffer received from P1 by P2).

However, the reply relayed from P2 to A does not contain the custom header.  
P2’s reply_route block only contains logging code and I’ve checked for calls to 
remove_hf.

I can’t find documentation or code to explain why the header is omitted.  Is 
there a module config parameter that I can set to preserve custom headers?

Any suggestions welcome!

Regards,
Dave Wilson.
___
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] Rx Interface connected, get error code: SIP/2.0 403 Forbidden - You must register first with a S-CSCF

2016-07-18 Thread Kristian Martens
All,

forgot to append the log-file output.

Regards,
Kristian

Jul 18 10:39:27 ng40kvm-openims scscf/scscf[3839]: INFO: ims_auth
[cxdx_mar.c:81]: create_return_code(): created AVP successfully :
[maa_return_code] - [1]
Jul 18 10:39:27 ng40kvm-openims pcscf/pcscf[3887]: ERROR: 

Re: [SR-Users] tls with ubuntu 16.04

2016-07-18 Thread Daniel-Constantin Mierla
Hello,

no time over the weekend to look at logs, but I pushed just now a patch
to try to see if the memory functions were set or something else
prevented the set of memory functions.

Can you try with the patch:

  -
https://github.com/kamailio/kamailio/commit/966513b374eef598434c5310a43eac2735adfd2e

I am at IEFT96 so I will try to do some stuff during the breaks... if
doesn't work, then it may take a bit to get more into it.

Just in case, would it be possible to get ssh access to such system?

Cheers,
Daniel


On 18/07/16 09:29, Jayesh Nambiar wrote:
> Hi Daniel,
> Any idea of why TLS would not load based on the logs pasted?
>
> - Jayesh
>
> On Fri, Jul 15, 2016 at 4:46 PM Jayesh Nambiar  > wrote:
>
> Hi Daniel,
> Here are the logs:
> http://pastebin.com/tGRWr9JS
>
> Thanks,
>
> - Jayesh
>
> On Fri, Jul 15, 2016 at 12:29 PM Daniel-Constantin Mierla
> > wrote:
>
> Yes, put them on pastebin.
>
> Daniel
>
>
> On 15/07/16 07:53, Jayesh Nambiar wrote:
>> The libssl version is as follows:
>>
>> 1.0.2g-1ubuntu4.1
>>
>> And openssl version shows this:
>>
>> OpenSSL 1.0.2g-fips  1 Mar 2016
>>
>> As for the logs with debug 3, kamailio scans each and every
>> line in the config and generates a big file. You want me to
>> send that in full. If yes, I'd put it in a pastebin and send
>> it across.
>>
>>
>> Thanks,
>>
>> - Jayesh
>>
>>
>> On Thu, Jul 14, 2016 at 8:50 PM Daniel-Constantin Mierla
>> > wrote:
>>
>> Are these all the logs from kamailio startup? It looks
>> like only the ones from the moment it tries to load tls
>> module ...
>>
>> Also, you haven't provided the version of libssl.
>>
>> Daniel
>>
>>
>> On 14/07/16 17:08, Jayesh Nambiar wrote:
>>> Hi Daniel,
>>> It indeed disables TLS if written this way. Here are the
>>> logs when enable_tls is written on above the loadmodule
>>> and kamailio fails to load module:
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG: 
>>> [sr_module.c:575]: load_module(): trying to load
>>> 
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG: 
>>> [mem/q_malloc.c:189]: qm_malloc_init(): qm_malloc_init:
>>> QM_OPTIMIZE=16384, /ROUNDTO=2048
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG: 
>>> [mem/q_malloc.c:191]: qm_malloc_init(): qm_malloc_init:
>>> QM_HASH_SIZE=2099, qm_block size=235152
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG: 
>>> [mem/q_malloc.c:193]: qm_malloc_init():
>>> qm_malloc_init(0x7f5741381000, 67108864),
>>> start=0x7f5741381000
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG: 
>>> [mem/q_malloc.c:202]: qm_malloc_init(): qm_malloc_init:
>>> size= 67108864, init_overhead=235256
>>>
>>> Jul 14 10:25:03 v38 kamailio: ERROR: tls
>>> [tls_init.c:490]: tls_pre_init(): Unable to set the
>>> memory allocation functions
>>>
>>> Jul 14 10:25:03 v38 kamailio: ERROR: 
>>> [sr_module.c:607]: load_module():
>>> /usr/local/kamailio/lib64/kamailio/modules/tls.so:
>>> mod_register failed
>>>
>>> Jul 14 10:25:03 v38 kamailio: :  [cfg.y:3388]:
>>> yyerror_at(): parse error in config file
>>> /usr/local/kamailio/etc/kamailio/tlkn-edge/kamailio.cfg,
>>> line 47, column 12-19: failed to load module
>>>
>>> I happened to check the tls module doc where in
>>> Quickstart the enable_tls was written after loadmodule
>>> and modparams.
>>>
>>>
>>> - Jayesh
>>>
>>>
>>> On Thu, Jul 14, 2016 at 7:46 PM Daniel-Constantin Mierla
>>> > wrote:
>>>
>>> Hello,
>>>
>>> this should not be needed and actually may lead to
>>> disabling tls support overall as it is enabled after
>>> tls module is loaded.
>>>
>>> Are you sure this really works and enabling tls
>>> before is not working? Send the log messages with
>>> debug=3.
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> On 14/07/16 16:11, Jayesh Nambiar wrote:
 Hi Daniel,
 I had enable_tls=yes written before loading any
 modules earlier and it was working good on 14.04.
 Now I just changed the sequence on 16.04 and it
 works as expected. Here is snippet below:


Re: [SR-Users] Segfault in dialog.so with 4.4.2 stable

2016-07-18 Thread Daniel-Constantin Mierla
Hello,

have you run with -x qm before reverting to 4.2?

Is the same config you run with 4.2 and 4.4?

The version 4.2.8 has qm as default memory manager. In 4.4, fm is the
default one but qm can be selected at startup with -x. The main
difference is that qm has more safety checks for detecting double free
and buffer overflows...

Cheers,
Daniel

On 18/07/16 08:54, Dirk Teurlings - Signet B.V. wrote:
> Hi Daniel,
>
> Had to revert back to our old 4.2.5 for now, we can't cope with these
> crashes. Anyway, here are all the modules currently loaded by our config.
>
> sqlops
> db_mysql
> mi_fifo.so
> kex.so
> corex.so
> tm.so
> tmx.so
> sl.so
> rr.so
> pv.so
> maxfwd.so
> usrloc.so
> registrar.so
> textops.so
> siputils.so
> xlog.so
> sanity.so
> ctl.so
> cfg_rpc.so
> mi_rpc.so
> dispatcher.so
> regex.so
> lcr.so
> avpops.so
> uac.so
> uac_redirect.so
> ratelimit.so
> ipops.so
>
> And about the shared memory, is there any explenation available as to
> what the different options do? And what is the default?
>
>
> Cheers,
> Dirk
>
>
>
> On 07/15/2016 02:08 PM, Daniel-Constantin Mierla wrote:
>> The content of dlg is not valid, likely freed. Can you run with -x qm
>> and see if you get new error messages?
>>
>> Also, what modules are you using, specially interested in those using
>> dialog module, such as cnxcc or presence dialog info?!?!
>>
>> Cheers,
>> Daniel
>>
>>
>> On 15/07/16 13:06, Dirk Teurlings - Signet B.V. wrote:
>>> (gdb) frame 1
>>> #1  dlg_unref (dlg=dlg@entry=0x7f585c494b40, cnt=cnt@entry=1) at
>>> dlg_hash.c:921
>>> 921 dlg_lock( d_table, d_entry);
>>> (gdb) p *dlg
>>> $1 = {ref = 793790803, next = 0xa0d4b4f20303032, prev =
>>> 0x504953203a616956, h_id = 808333871, h_entry = 1346655535, state =
>>> 774976288, lifetime = 775107122, init_ts = 775435825,
>>>   start_ts = 976303410, end_ts = 808857653, dflags = 1667592763, iflags
>>> = 1702259045, sflags = 825441636, toroute = 858927662, toroute_name = {
>>> s = 0x6172623b3135322e ,
>>> len = 1030251374}, from_rr_nb = 894132788, tl = {next =
>>> 0x726f70723b646262, prev = 0xa0d303630353d74,
>>> timeout = 1836020294}, callid = {s = 0x20226e776f6e6b6e >> 0x20226e776f6e6b6e out of bounds>, len = 1885958972}, from_uri = {
>>> s = 0x7340444c4f74656e ,
>>> len = 1999532137}, to_uri = {s = 0x743b3e74656e2e70 >> 0x743b3e74656e2e70 out of bounds>,
>>> len = 1631414113}, req_uri = {s = 0x540a0d3536343766 >> 0x540a0d3536343766 out of bounds>, len = 1008745071}, tag = {{
>>>   s = 0x363233313431332b ,
>>> len = 892614711}, {s = 0x2e3836312e333232 >> out of bounds>, len = 1043608370}},
>>>   cseq = {{s = 0x663330643473613d >> bounds>, len = 224671543}, {s = 0x3534203a44492d6c >> 0x3534203a44492d6c out of bounds>,
>>>   len = 909665638}}, route_set = {{s = 0x343435356635 >> 0x343435356635 out of bounds>, len = 825582898}, {
>>>   s = 0x7340353762316435 ,
>>> len = 1999532137}}, contact = {{s = 0x430a0d74656e2e70 >> 0x430a0d74656e2e70 out of bounds>,
>>>   len = 980510035}, {s = 0x65530a0d45594220 >> 0x65530a0d45594220 out of bounds>, len = 1919252082}}, bind_addr =
>>> {0x70696f766c772e70, 0x6c410a0d74656e2e}, cbs = {
>>> first = 0x564e49203a776f6c, types = 742741065}, profile_links =
>>> 0x4c45434e4143202c, vars = 0x4e4f4954504f202c}
>>>
>>>
>>>
>>>
>>> On 07/15/2016 01:00 PM, Daniel-Constantin Mierla wrote:
 From the second crash, can you get:

 frame 1

 p *dlg

 So far it looks like either to a double free or some buffer overflow...

 Cheers,
 Daniel


 On 15/07/16 10:51, Dirk Teurlings - Signet B.V. wrote:
> Just got another segfault.
>
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg
> -P /var/run/kamailio/kamailio.'.
> Program terminated with signal 11, Segmentation fault.
> #0  atomic_get (v=0x7f6264d11378) at 
> ../../mem/../atomic/atomic_common.h:74
> 74return atomic_get_int(&(v->val));
> (gdb) bt
> #0  atomic_get (v=0x7f6264d11378) at 
> ../../mem/../atomic/atomic_common.h:74
> #1  dlg_unref (dlg=dlg@entry=0x7f585c494b40, cnt=cnt@entry=1) at
> dlg_hash.c:921
> #2  0x7f5855912802 in dlg_run_event_route
> (dlg=dlg@entry=0x7f585c494b40, msg=msg@entry=0x7f587d4be8e8,
> ostate=, nstate=) at dlg_handlers.c:1630
> #3  0x7f585591416a in dlg_onroute (req=0x7f587d4be8e8,
> route_params=, param=) at 
> dlg_handlers.c:1307
> #4  0x7f585965b0e2 in run_rr_callbacks
> (req=req@entry=0x7f587d4be8e8, rr_param=rr_param@entry=0x7f58598677a0)
> at rr_cb.c:96
> #5  0x7f58596452c5 in after_loose (_m=0x7f587d4be8e8, preloaded=0)
> at loose.c:919
> #6  0x0042b618 in do_action (h=h@entry=0x7ffd6e277fd0,
> a=a@entry=0x7f587d264338, msg=msg@entry=0x7f587d4be8e8) at action.c:1060
> #7  0x0042a10a in run_actions 

Re: [SR-Users] tls with ubuntu 16.04

2016-07-18 Thread Jayesh Nambiar
Hi Daniel,
Any idea of why TLS would not load based on the logs pasted?

- Jayesh

On Fri, Jul 15, 2016 at 4:46 PM Jayesh Nambiar  wrote:

> Hi Daniel,
> Here are the logs:
> http://pastebin.com/tGRWr9JS
>
> Thanks,
>
> - Jayesh
>
> On Fri, Jul 15, 2016 at 12:29 PM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Yes, put them on pastebin.
>>
>> Daniel
>>
>> On 15/07/16 07:53, Jayesh Nambiar wrote:
>>
>> The libssl version is as follows:
>>
>> 1.0.2g-1ubuntu4.1
>>
>> And openssl version shows this:
>>
>> OpenSSL 1.0.2g-fips  1 Mar 2016
>>
>> As for the logs with debug 3, kamailio scans each and every line in the
>> config and generates a big file. You want me to send that in full. If yes,
>> I'd put it in a pastebin and send it across.
>>
>>
>> Thanks,
>>
>> - Jayesh
>>
>> On Thu, Jul 14, 2016 at 8:50 PM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Are these all the logs from kamailio startup? It looks like only the
>>> ones from the moment it tries to load tls module ...
>>>
>>> Also, you haven't provided the version of libssl.
>>>
>>> Daniel
>>>
>>> On 14/07/16 17:08, Jayesh Nambiar wrote:
>>>
>>> Hi Daniel,
>>> It indeed disables TLS if written this way. Here are the logs when
>>> enable_tls is written on above the loadmodule and kamailio fails to load
>>> module:
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG:  [sr_module.c:575]:
>>> load_module(): trying to load
>>> 
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:189]:
>>> qm_malloc_init(): qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:191]:
>>> qm_malloc_init(): qm_malloc_init: QM_HASH_SIZE=2099, qm_block size=
>>> 235152
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:193]:
>>> qm_malloc_init(): qm_malloc_init(0x7f5741381000, 67108864), start=
>>> 0x7f5741381000
>>>
>>> Jul 14 10:25:03 v38 kamailio: DEBUG:  [mem/q_malloc.c:202]:
>>> qm_malloc_init(): qm_malloc_init: size= 67108864, init_overhead=235256
>>>
>>> Jul 14 10:25:03 v38 kamailio: ERROR: tls [tls_init.c:490]:
>>> tls_pre_init(): Unable to set the memory allocation functions
>>>
>>> Jul 14 10:25:03 v38 kamailio: ERROR:  [sr_module.c:607]:
>>> load_module(): /usr/local/kamailio/lib64/kamailio/modules/tls.so:
>>> mod_register failed
>>>
>>> Jul 14 10:25:03 v38 kamailio: :  [cfg.y:3388]: yyerror_at():
>>> parse error in config file
>>> /usr/local/kamailio/etc/kamailio/tlkn-edge/kamailio.cfg, line 47, column
>>> 12-19: failed to load module
>>>
>>> I happened to check the tls module doc where in Quickstart the
>>> enable_tls was written after loadmodule and modparams.
>>>
>>>
>>> - Jayesh
>>>
>>> On Thu, Jul 14, 2016 at 7:46 PM Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
 Hello,

 this should not be needed and actually may lead to disabling tls
 support overall as it is enabled after tls module is loaded.
 Are you sure this really works and enabling tls before is not working?
 Send the log messages with debug=3.

 Cheers,
 Daniel


 On 14/07/16 16:11, Jayesh Nambiar wrote:

 Hi Daniel,
 I had enable_tls=yes written before loading any modules earlier and it
 was working good on 14.04. Now I just changed the sequence on 16.04 and it
 works as expected. Here is snippet below:

 loadmodule "tls.so"

 enable_tls=yes

 --- Jayesh

 On Thu, Jul 14, 2016 at 3:21 PM Daniel-Constantin Mierla <
 mico...@gmail.com> wrote:

> Hello,
>
> don't really get what you did? Can you paste the relevant snippet of
> config?
>
> Cheers,
> Daniel
>
> On 14/07/16 07:40, Jayesh Nambiar wrote:
>
> Hello,
> Just did enable_tls after loadmodule "tls.so" and this now works.
> Thanks.
>
> - Jayesh
>
> On Thu, Jul 14, 2016 at 11:06 AM Jayesh Nambiar 
> wrote:
>
>> I did load the tls first but still get the same error. Here is the
>> loadmodule sequence:
>>
>> loadmodule "tls.so"
>>
>> 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 "dialog.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 "nathelper.so"
>>
>> loadmodule "nat_traversal.so"
>>
>> loadmodule "xhttp.so"
>>
>> loadmodule "websocket.so"
>>
>> loadmodule "path.so"
>>
>> loadmodule "tcpops.so"
>>
>> loadmodule "rtpengine.so"
>>
>> 

Re: [SR-Users] Segfault in dialog.so with 4.4.2 stable

2016-07-18 Thread Dirk Teurlings - Signet B.V.
Hi Daniel,

Had to revert back to our old 4.2.5 for now, we can't cope with these
crashes. Anyway, here are all the modules currently loaded by our config.

sqlops
db_mysql
mi_fifo.so
kex.so
corex.so
tm.so
tmx.so
sl.so
rr.so
pv.so
maxfwd.so
usrloc.so
registrar.so
textops.so
siputils.so
xlog.so
sanity.so
ctl.so
cfg_rpc.so
mi_rpc.so
dispatcher.so
regex.so
lcr.so
avpops.so
uac.so
uac_redirect.so
ratelimit.so
ipops.so

And about the shared memory, is there any explenation available as to
what the different options do? And what is the default?


Cheers,
Dirk



On 07/15/2016 02:08 PM, Daniel-Constantin Mierla wrote:
> The content of dlg is not valid, likely freed. Can you run with -x qm
> and see if you get new error messages?
> 
> Also, what modules are you using, specially interested in those using
> dialog module, such as cnxcc or presence dialog info?!?!
> 
> Cheers,
> Daniel
> 
> 
> On 15/07/16 13:06, Dirk Teurlings - Signet B.V. wrote:
>> (gdb) frame 1
>> #1  dlg_unref (dlg=dlg@entry=0x7f585c494b40, cnt=cnt@entry=1) at
>> dlg_hash.c:921
>> 921  dlg_lock( d_table, d_entry);
>> (gdb) p *dlg
>> $1 = {ref = 793790803, next = 0xa0d4b4f20303032, prev =
>> 0x504953203a616956, h_id = 808333871, h_entry = 1346655535, state =
>> 774976288, lifetime = 775107122, init_ts = 775435825,
>>   start_ts = 976303410, end_ts = 808857653, dflags = 1667592763, iflags
>> = 1702259045, sflags = 825441636, toroute = 858927662, toroute_name = {
>> s = 0x6172623b3135322e ,
>> len = 1030251374}, from_rr_nb = 894132788, tl = {next =
>> 0x726f70723b646262, prev = 0xa0d303630353d74,
>> timeout = 1836020294}, callid = {s = 0x20226e776f6e6b6e > 0x20226e776f6e6b6e out of bounds>, len = 1885958972}, from_uri = {
>> s = 0x7340444c4f74656e ,
>> len = 1999532137}, to_uri = {s = 0x743b3e74656e2e70 > 0x743b3e74656e2e70 out of bounds>,
>> len = 1631414113}, req_uri = {s = 0x540a0d3536343766 > 0x540a0d3536343766 out of bounds>, len = 1008745071}, tag = {{
>>   s = 0x363233313431332b ,
>> len = 892614711}, {s = 0x2e3836312e333232 > out of bounds>, len = 1043608370}},
>>   cseq = {{s = 0x663330643473613d > bounds>, len = 224671543}, {s = 0x3534203a44492d6c > 0x3534203a44492d6c out of bounds>,
>>   len = 909665638}}, route_set = {{s = 0x343435356635 > 0x343435356635 out of bounds>, len = 825582898}, {
>>   s = 0x7340353762316435 ,
>> len = 1999532137}}, contact = {{s = 0x430a0d74656e2e70 > 0x430a0d74656e2e70 out of bounds>,
>>   len = 980510035}, {s = 0x65530a0d45594220 > 0x65530a0d45594220 out of bounds>, len = 1919252082}}, bind_addr =
>> {0x70696f766c772e70, 0x6c410a0d74656e2e}, cbs = {
>> first = 0x564e49203a776f6c, types = 742741065}, profile_links =
>> 0x4c45434e4143202c, vars = 0x4e4f4954504f202c}
>>
>>
>>
>>
>> On 07/15/2016 01:00 PM, Daniel-Constantin Mierla wrote:
>>> From the second crash, can you get:
>>>
>>> frame 1
>>>
>>> p *dlg
>>>
>>> So far it looks like either to a double free or some buffer overflow...
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> On 15/07/16 10:51, Dirk Teurlings - Signet B.V. wrote:
 Just got another segfault.

 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
 Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg
 -P /var/run/kamailio/kamailio.'.
 Program terminated with signal 11, Segmentation fault.
 #0  atomic_get (v=0x7f6264d11378) at ../../mem/../atomic/atomic_common.h:74
 74 return atomic_get_int(&(v->val));
 (gdb) bt
 #0  atomic_get (v=0x7f6264d11378) at ../../mem/../atomic/atomic_common.h:74
 #1  dlg_unref (dlg=dlg@entry=0x7f585c494b40, cnt=cnt@entry=1) at
 dlg_hash.c:921
 #2  0x7f5855912802 in dlg_run_event_route
 (dlg=dlg@entry=0x7f585c494b40, msg=msg@entry=0x7f587d4be8e8,
 ostate=, nstate=) at dlg_handlers.c:1630
 #3  0x7f585591416a in dlg_onroute (req=0x7f587d4be8e8,
 route_params=, param=) at dlg_handlers.c:1307
 #4  0x7f585965b0e2 in run_rr_callbacks
 (req=req@entry=0x7f587d4be8e8, rr_param=rr_param@entry=0x7f58598677a0)
 at rr_cb.c:96
 #5  0x7f58596452c5 in after_loose (_m=0x7f587d4be8e8, preloaded=0)
 at loose.c:919
 #6  0x0042b618 in do_action (h=h@entry=0x7ffd6e277fd0,
 a=a@entry=0x7f587d264338, msg=msg@entry=0x7f587d4be8e8) at action.c:1060
 #7  0x0042a10a in run_actions (h=h@entry=0x7ffd6e277fd0,
 a=0x7f587d264338, msg=0x7f587d4be8e8) at action.c:1549
 #8  0x00437544 in run_actions_safe (h=h@entry=0x7ffd6e279500,
 a=, msg=) at action.c:1614
 #9  0x0053b2e8 in rval_get_int (h=0x7ffd6e279500, msg=>>> out>, i=0x7ffd6e278430, rv=rv@entry=0x7f587d264d58,
 cache=cache@entry=0x0) at rvalue.c:912
 #10 0x0054261c in rval_expr_eval_int (h=h@entry=0x7ffd6e279500,
 msg=msg@entry=0x7f587d4be8e8, res=res@entry=0x7ffd6e278430,
 rve=rve@entry=0x7f587d264d50) at rvalue.c:1910
 #11 0x0042bc91 in do_action 

Re: [SR-Users] RTPProxy Issues

2016-07-18 Thread TEG AMJG
Hi again

Yes, i feel very dumb because i actually faced this problem in my testing
with SIPp and with Asterisk before and it was all about open file
description. I probably didnt think about it because I couldnt find
anything in the logs about it which it is quite weird, the only thing that
logs is the one mentioned before, I feel sorry for wasting your time but at
the same time i have to thanks to you guys for helped me out.

Best Regards.

Alejandro

2016-07-17 23:43 GMT-04:00 Maxim Sobolev :

> Yes, that's probably it. There should be also some error in the log that
> rtpproxy emits, so you might want to check that. I see people run into this
> from time to time, perhaps we need to check and put out a big warning in
> red if the OS limit appers to be too low?
>
> -Max
>
> On Sun, Jul 17, 2016 at 3:18 PM, Nathan Angelacos 
> wrote:
>
>> On 07/17/2016 05:49 PM, TEG AMJG wrote:
>>
>>> Dear list
>>>
>>> I am quite new to Kamailio and i have been able to solve some NAT
>>> Traversal issues with symmetric SIP+RTP putting kamailio+rtpproxy behind
>>> NAT, i am also load balancing some asterisk boxes for transcoding and some
>>> other services like voicemail. Also i am using SIPp for load testing
>>>
>>> Now the question is that, while everything is working great with NAT
>>> (even when i am using SIPp for testing with low load) when i am about to
>>> test it with more than 150 calls or something i am starting to get the
>>> following error:
>>>
>>> /kamailio[34549]: ERROR: rtpproxy [rtpproxy.c:2735]: force_rtp_proxy():
>>> incorrect port 0 in reply from rtp proxy/
>>>
>>
>>
>> A guess, but each call takes 4 file descriptors, so you might be running
>> into the normal os limit of 1024 open files per process.
>> Recent rtpproxy versions have the -L option to increase the limit. It
>> should be 4 times the number of concurrent calls you expect to handle.
>>
>> Again, just a guess.
>>
>>
>>
>> ___
>> 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
>
>


-- 
-
Saludos a todos
___
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