Asterisk Music On Hold only while I am talking on the incomm

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Asterisk Music On Hold only while I am talking on the incomm

Postby nherbert » Wed Feb 22, 2012 8:32 am

Dear All,
I set up Asterisk 1.8 on my TP link 1043 router with OpenWrt Backfire 10.03.1.
Music On Hold works in case of all internal calls and also in case I call my mobile phone from a SIP extension through a SIP provider. However if I initiate the call from my mobile phone and terminate it on a SIP extension through the same external SIP line, I can only hear the music while I talk or generate noise, otherwise not.

I have installed the kmod-zaptel14 and kmod-zaptel14-dummy kernel modules
root@noranet:~# lsmod | grep zt
ztdummy 1776 0
zaptel 186064 1 ztdummy
root@noranet:~#

I also made sure that the following lines
[options]
internal_timing = yes
are uncommented in the asterisk.conf file.

Unfortunately the above actions didn't help. I still cannot hear music on hold properly.

I recognized that although the ztdummy kernel module has been loaded the "timing test" asterisk CLI command generates an error message:
noranet*CLI> timing test
Attempting to test a timer with 50 ticks per second.
Failed to open timing fd
Command 'timing test ' failed.
noranet*CLI>

If anyone has experience on this please share with me.
Thanks.
nherbert
Newsterisk
 
Posts: 3
Joined: Wed Feb 22, 2012 8:23 am

Re: Asterisk Music On Hold only while I am talking on the incomm

Postby david55 » Wed Feb 22, 2012 9:56 am

As far as I am aware, legacy support for zaptel has been removed. You should be using dahdi.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: Asterisk Music On Hold only while I am talking on the incomm

Postby nherbert » Wed Feb 22, 2012 11:14 am

Thank you for your answer.
Unfortunately there is no dahdi kernel module available in the Openwrt repository. :-(
nherbert
Newsterisk
 
Posts: 3
Joined: Wed Feb 22, 2012 8:23 am

Re: Asterisk Music On Hold only while I am talking on the incomm

Postby david55 » Wed Feb 22, 2012 11:21 am

I think you need to take this up with the packager. Packaged versions of Asterisk starting at 1.6 or possibly even late 1.4, should be built against a system that already has dahdi installed. The exception to this is very recent versions of Asterisk that are being used on machines incapable of supporting dahdi hardware; timerfd timing may work properly on those.

I'm not 100% sure that zaptel support has been removed, but if it is till present, it will be via chan_dahdi.

Distributing zaptel packages is arguably a trademark violation, as one of the reasons for changing the name was a trademark issue.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: Asterisk Music On Hold only while I am talking on the incomm

Postby scales » Fri Feb 24, 2012 8:47 pm

I got MOH to work with Asterisk 1.8 on Backfire 10.03.1.

I noticed the res_timing_timerfd.so module was being compiled for the router, but was not automatically copied to the final squashfs image.

I copied the module to the modules directory on my router, and added the following to the [modules] section of my modules.conf:
load => res_timing_timerfd.so

Also, in asterisk.conf:
[options]
internal_timing = yes

Now the timing test works, and MOH works.
scales
Newsterisk
 
Posts: 2
Joined: Fri Feb 24, 2012 8:27 pm

Re: Asterisk Music On Hold only while I am talking on the incomm

Postby nherbert » Sat Feb 25, 2012 1:39 am

Thank you scales. That sounds really great. But from where can I get the res_timing_timerfd.so file? I didn't find anything similar to that in the http://downloads.openwrt.org/backfire/1 ... /packages/ directory.
nherbert
Newsterisk
 
Posts: 3
Joined: Wed Feb 22, 2012 8:23 am

Re: Asterisk Music On Hold only while I am talking on the incomm

Postby scales » Sat Feb 25, 2012 6:57 am

I followed the instructions to build Openwrt for my router (Buffalo WZR-HP-AG300H).

When the "make" was finished the module was located in the directory:

build_dir/target-mips_r2_uClibc-0.9.33/asterisk-1.8.8.0/res/
scales
Newsterisk
 
Posts: 2
Joined: Fri Feb 24, 2012 8:27 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest