Call Recording Issues

355 views
Skip to first unread message

Luke Livingstone

unread,
Nov 12, 2014, 11:17:28 AM11/12/14
to 2600hz...@googlegroups.com
Hi,

Setup call recording on a Kazoo Cluster as per following documentation:


I can see the recordings in /tmp on freeswitch, but i'm getting the following error on the freeswitch logs:

This is from a Freeswitch Server to a Kazoo Server

2014-11-12 16:04:46.001684 [ERR] mod_http_cache.c:351 Received HTTP error 0 trying to save /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3 to http://kazoo.mydomain.co.uk/kzr/call_recording_hs216_bhs216_b1...@domain.mp3

Anyone had this issue before? 

Thanks,

Luke

Darren Schreiber

unread,
Nov 12, 2014, 11:32:26 AM11/12/14
to 2600hz...@googlegroups.com
What’s above/below that line on the FreeSWITCH log?

Seems like the FreeSWITCH box can’t talk to whatever http://kazoo.mydomain.co.uk is. Either the script is failing to run on that side, or there’s a network/firewall issue. (I believe error 0 is usually that it couldn’t connect at all)

--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Luis Azedo

unread,
Nov 12, 2014, 12:12:52 PM11/12/14
to 2600hz...@googlegroups.com
can your freeswitch box resolve the address kazoo-kz1-b.orbvoip.co.uk ?



On Wed, Nov 12, 2014 at 4:57 PM, Luke Livingstone <lukejliv...@gmail.com> wrote:
Thanks for the reply Darren!

Here's the logs around the line I picked out:

hs216_bhs216_b19dc86207629035a19cf857333bf0dd6@mydomain 2014-11-12 16:04:46.001684 [DEBUG] switch_ivr_async.c:1180 Stop recording file /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3
2014-11-12 16:04:46.001684 [DEBUG] kazoo_event_stream.c:242 increased event stream buffer size to 4503
2014-11-12 16:04:46.001684 [DEBUG] kazoo_event_stream.c:242 increased event stream buffer size to 4503
2014-11-12 16:04:46.001684 [INFO] kazoo_node.c:625 exec: http_put(http://kazoo.mydomain.co.uk/kzr/call_recording_hs216_bhs216_b1...@mydomain.mp3 /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3)
2014-11-12 16:04:46.001684 [DEBUG] mod_http_cache.c:282 opening /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3 for upload to http://kazoo-kz1-b.orbvoip.co.uk/kzr/call_recording_hs216_bhs216_b1...@mydomain.mp3
2014-11-12 16:04:46.001684 [ERR] mod_http_cache.c:351 Received HTTP error 0 trying to save /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3 to http://kazoo-kz1-b.orbvoip.co.uk/kzr/call_recording_hs216_bhs216_b1...@mydomain.mp3
2014-11-12 16:04:46.201680 [DEBUG] kazoo_node.c:1100 Sent erlang message to ecallmgr@mydomain <1.28693.34>
2014-11-12 16:04:46.201680 [INFO] kazoo_node.c:625 exec: uuid_dump(hs216_bhs216_b19dc86207629035a19cf857333bf0dd6@mydomain)
2014-11-12 16:04:46.401678 [DEBUG] kazoo_node.c:1100 Sent erlang message to ecallmgr@mydomain <1.28693.34>

Thanks for your suggestions. I'll double check them!

Luke
On Wednesday, November 12, 2014 4:32:26 PM UTC, Darren Schreiber wrote:
What’s above/below that line on the FreeSWITCH log?

Seems like the FreeSWITCH box can’t talk to whatever http://kazoo.mydomain.co.uk is. Either the script is failing to run on that side, or there’s a network/firewall issue. (I believe error 0 is usually that it couldn’t connect at all)

From: Luke Livingstone <lukejliv...@gmail.com>
Reply-To: "2600hz...@googlegroups.com" <2600hz...@googlegroups.com>
Date: Wednesday, November 12, 2014 at 8:17 AM
To: "2600hz...@googlegroups.com" <2600hz...@googlegroups.com>
Subject: Call Recording Issues

Hi,

Setup call recording on a Kazoo Cluster as per following documentation:


I can see the recordings in /tmp on freeswitch, but i'm getting the following error on the freeswitch logs:

This is from a Freeswitch Server to a Kazoo Server

2014-11-12 16:04:46.001684 [ERR] mod_http_cache.c:351 Received HTTP error 0 trying to save /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3 to http://kazoo.mydomain.co.uk/kzr/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0d...@domain.mp3

Anyone had this issue before? 

Thanks,

Luke

--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luke Livingstone

unread,
Nov 12, 2014, 12:14:38 PM11/12/14
to 2600hz...@googlegroups.com
Yes it can Luis.



On Wednesday, November 12, 2014 5:12:52 PM UTC, Luis Azedo wrote:
can your freeswitch box resolve the address kazoo-kz1-b.orbvoip.co.uk ?


On Wed, Nov 12, 2014 at 4:57 PM, Luke Livingstone <lukejliv...@gmail.com> wrote:
Thanks for the reply Darren!

Here's the logs around the line I picked out:

hs216_bhs216_b19dc86207629035a19cf857333bf0dd6@mydomain 2014-11-12 16:04:46.001684 [DEBUG] switch_ivr_async.c:1180 Stop recording file /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3
2014-11-12 16:04:46.001684 [DEBUG] kazoo_event_stream.c:242 increased event stream buffer size to 4503
2014-11-12 16:04:46.001684 [DEBUG] kazoo_event_stream.c:242 increased event stream buffer size to 4503
2014-11-12 16:04:46.001684 [INFO] kazoo_node.c:625 exec: http_put(http://kazoo.mydomain.co.uk/kzr/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0d...@mydomain.mp3 /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3)
2014-11-12 16:04:46.001684 [DEBUG] mod_http_cache.c:282 opening /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3 for upload to http://kazoo.mydomain.co.uk/kzr/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0d...@mydomain.mp3
2014-11-12 16:04:46.001684 [ERR] mod_http_cache.c:351 Received HTTP error 0 trying to save /tmp/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0dd6%40193%2E104%2E131%2E5.mp3 to http://kazoo-kz1-b.orbvoip.co.uk/kzr/call_recording_hs216_bhs216_b19dc86207629035a19cf857333bf0d...@mydomain.mp3

Luis Azedo

unread,
Nov 12, 2014, 12:47:50 PM11/12/14
to 2600hz...@googlegroups.com
and do you see any traffic going to your host ? (host logs or capture from freeswitch/host)
maybe a firewall issue on the host ?
how are you handling this on the host ?

Dan Ballance

unread,
Nov 12, 2014, 4:32:19 PM11/12/14
to 2600hz...@googlegroups.com
I wonder if this is a firewall issue too. Although you say it can resolve the address Luke, my guess is it's generally better to have all routing between cluster servers to use local and not public addresses. I think it might  be worth trying to us the hostname.local type of address instead?

Luke Livingstone

unread,
Nov 13, 2014, 9:54:45 AM11/13/14
to 2600hz...@googlegroups.com
Hi,

Thanks for the replies. 

To get this working the steps I performed:
  • Change the Recording URL to the local IP of the Kazoo Server where the recording folder was.
At this point, I was getting a 405 from the Kazoo Server -> Freeswitch, then I realised that PHP wasn't installed! (I think this is missed from the RPM install Wiki)

The PUT request was now returning a 200 back, but I couldn't see any files in /kzr (recording folder)

I changed the following line on the PHP script to the desired destination folder as the recordings where in /tmp

  $fp = fopen("/path/to/destination/$r", "w");

Thanks for your help on this guys.

Luke
Reply all
Reply to author
Forward
0 new messages