Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - evgeniy

Pages: [1]
1
Yate users hangout place / Re: Recorder channels are overlapping
« on: August 05, 2016, 03:59:38 AM »
I use this sox command to convert and merge, and everything is ok:
sox -b 16 -t raw -r 8k -e signed-integer 1469707832-54117-call.slin -b 16 -t raw -r 8k -e signed-integer 1469707832-54117-peer.slin -M -C 96 -t mp3 test.mp3

Also look at this method to records calls, I used it, and it works fine without extmodule:
http://forum.yate.ro/index.php?topic=458.msg1414#msg1414

Also I faced with overlapping on some kind of devices(I don't know exactly which), for example HOLD or voice detection can broke call record.

2
Yate users hangout place / Re: Recorder channels are overlapping
« on: August 05, 2016, 02:10:16 AM »
Hi,
How you merge records, with sox? Post a command you use for this.
Also please post your chan.record message with parameters.

3
Other Yate server issues / Re: javascript routing, redis
« on: July 01, 2016, 01:51:09 AM »
Thank you for help.

Regarding JSON, I tried exacly your example, but it fails.
<JsCode:WARN> Evaluator error: Function 'JSON.stringify' call failed in routing.js:2:
Code: [Select]
var obj = {};
var str = JSON.stringify(obj);
obj = JSON.parse(str);

Looks like I dont have JSON at all, any call fails.
I Tried this:
Code: [Select]
Engine.output("JSON module: " + JSON);
Engine.output("File module: " + File);

and get output:
Code: [Select]
JSON module:
File module: [object File]

4
Other Yate server issues / javascript routing, redis
« on: June 30, 2016, 08:33:39 AM »
How can I request redis from javascript routing script? Or do http request?
Do I need to patch javascript.cpp ?

Also JSON object is not defined in javascript routing script, how can I enable it?
http://docs.yate.ro/wiki/Javascript_Reference

5
Yate bugs / Re: ExtMod queued message ID duplicates
« on: June 30, 2016, 02:55:53 AM »
Thank you for help.
My script processes routings in parallel, up to 4 routings simultaneously, and answer when any of routings finished.
I will try to increase, maybe this help.

Javascript routing script fully asynchronous and it can route well on heavy load without lock mutex problem?

6
Yate bugs / ExtMod queued message ID duplicates
« on: June 29, 2016, 08:44:11 AM »
Hello, I'm using extmodule to proceed call.route and other messages. Extmodule works less then 1 second, monitored with statsd
Yate version is 5.3.0, flags: -Dd -DZ -C -Da -Dm -Du -N nodename -p pidfile

Under high load yate crashes.

In logs I see a lot of FAILs:
Code: [Select]
2016-06-29_10:24:29.313098 <FAIL> Thread 'Engine Worker' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 14 others for 10000000 usec!
2016-06-29_10:25:23.458147 <FAIL> Thread 'Engine Worker' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 18 others for 10000000 usec!
2016-06-29_10:26:42.810675 <FAIL> Thread 'Engine Worker' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 12 others for 10000000 usec!
2016-06-29_10:27:23.544752 <FAIL> Thread 'Call Router' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 11 others for 10000000 usec!
2016-06-29_10:27:52.171657 <FAIL> Thread 'Originate Thread' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 10 others for 10000000 usec!
2016-06-29_10:33:10.954569 <FAIL> Thread 'Engine Worker' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 16 others for 10000000 usec!

and finally I get crash:
Code: [Select]
2016-06-29_10:27:23.544752 <FAIL> Thread 'Call Router' could not lock mutex 'CallEndpoint' owned by 'Call Router' waited by 11 others for 10000000 usec!
Yate (30111) is starting Wed Jun 29 10:27:24 2016

Strange that I have similar logs with same message ID "0x7f29f56fcea0"

Code: [Select]
2016-06-29_10:27:20.950752 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:21.196528 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:21.196584 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:21.204145 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:21.443368 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:21.443413 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:21.447789 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:21.693842 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:21.693888 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:21.701095 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:21.943996 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:21.944086 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:21.948178 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:22.194203 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:22.194264 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:22.200481 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:22.446118 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:22.446164 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:22.450448 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:22.696289 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:22.696345 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:22.701495 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:22.947780 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:22.947844 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:22.951745 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:23.197780 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:23.197839 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]
2016-06-29_10:27:23.202972 <ALL> ExtMod queued message 0x7f29f56fcea0 'call.route' [0x1dfb6e0]
2016-06-29_10:27:23.444193 <ExtModReceiver:INFO> Matched message 0x7f29f56fcea0 [0x1dfb6e0]
2016-06-29_10:27:23.444245 <ALL> ExtMod message 0x7f29f56fcea0 'call.route' returning true [0x1dfb6e0]

Pages: [1]