DAHDI + MOH issue

HI ,

I have freepbx installed and working very good with 100 extensions.
Linux Distribution: (Redhat CentOS release 5.5 (Final))
FreePBX version: (2.7.0)

I have a Digium 8 port FXO card connected and configured and it works fine with incomming and also outgoing calls.

I also have a sip trunk connected and working.

The issue that i experiance is that my MOH works perfect on local extensions i can hear MOH when i need to hear it , also from the outside when i dial to the sip trunk i can hear the MOH , but when i dial into the DAHDI i cant hear no MOH.

I dont know what am i doing wrong , i tried to play with it a little but i could not figure it out , i found out that it does not matter if i use wav or mp3
it will not play it on the dahdi channel.

here is a snap of the log:
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:1] Macro(“DAHDI/2-1”, “user-callerid,”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:1] Set(“DAHDI/2-1”, “AMPUSER=2023645180”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:2] GotoIf(“DAHDI/2-1”, “0?report”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:3] ExecIf(“DAHDI/2-1”, “1?Set(REALCALLERIDNUM=2023645180)”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:4] Set(“DAHDI/2-1”, “AMPUSER=”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:5] Set(“DAHDI/2-1”, “AMPUSERCIDNAME=”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:6] GotoIf(“DAHDI/2-1”, “1?report”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Goto (macro-user-callerid,s,10)
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:10] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:11] Set(“DAHDI/2-1”, “__TTL=64”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:12] GotoIf(“DAHDI/2-1”, “1?continue”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Goto (macro-user-callerid,s,19)
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [s@macro-user-callerid:19] NoOp(“DAHDI/2-1”, "Using CallerID “SITEL " <2023645180>”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:2] Answer(“DAHDI/2-1”, “”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:3] ExecIf(“DAHDI/2-1”, “1?Set(__QUEUEWAIT=1292370493)”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:4] Set(“DAHDI/2-1”, “__BLKVM_OVERRIDE=BLKVM/601/DAHDI/2-1”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:5] Set(“DAHDI/2-1”, “__BLKVM_BASE=601”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:6] Set(“DAHDI/2-1”, “DB(BLKVM/601/DAHDI/2-1)=TRUE”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:7] ExecIf(“DAHDI/2-1”, “1?Set(_DIAL_OPTIONS=trM(auto-blkvm))”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:8] Set(“DAHDI/2-1”, “__NODEST=601”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:9] Set(“DAHDI/2-1”, “MONITOR_FILENAME=/var/spool/asterisk/monitor/q601-20101214-184813-1292370472.0”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:10] Set(“DAHDI/2-1”, “__MOHCLASS=testmusic”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] pbx.c: – Executing [601@ext-queues:11] Queue(“DAHDI/2-1”, “601,t,600”) in new stack
[Dec 14 18:48:13] VERBOSE[27750] res_musiconhold.c: – Started music on hold, class ‘none’, on DAHDI/2-1
[Dec 14 18:48:13] WARNING[27750] format_wav.c: Read failed (type)
[Dec 14 18:48:13] WARNING[27750] file.c: Unable to open format wav
[Dec 14 18:48:13] WARNING[27750] res_musiconhold.c: Unable to open file ‘/var/lib/asterisk/moh/.nomusic_reserved/silence’: No such file or directory
[Dec 14 18:48:13] VERBOSE[27750] res_musiconhold.c: – Stopped music on hold on DAHDI/2-1

The format inside the testmusic context is mp3. there is only one file there again i can hear this MOH fine if the call is on the siptrunk and not via the FXO card… can anyone give somekind of direction ?

Any progress on this issue?

I have the same problem here, no MOH on DAHDI channels. I think that the problem is from line:


[2012-05-22 12:06:55] VERBOSE[24007] app_queue.c: – Local/100@from-queue-7502;1 answered DAHDI/4-1
[2012-05-22 12:06:55] VERBOSE[24007] res_musiconhold.c: – Stopped music on hold on DAHDI/4-1


But why the answer is sent to the que that the call is answered when in fact is only started?