[asterisk-bugs] [Asterisk 0013336]: [patch] fix mohinterpret and mohsuggest settings from general section in chan_iax2.c
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Aug 27 11:47:33 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13336
======================================================================
Reported By: decryptus_proformatique
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13336
Category: Channels/chan_iax2
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 138473
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-08-18 11:25 CDT
Last Modified: 2008-08-27 11:47 CDT
======================================================================
Summary: [patch] fix mohinterpret and mohsuggest settings
from general section in chan_iax2.c
Description:
iax.conf:
[general]
mohinterpret = example
When the moh activated, we can see in the CLI:
WARNING[13803]: res_musiconhold.c:660 get_mohbyname: Music on Hold class
'exa' not found
-- Started music on hold, class 'default', on channel
'IAX2/asteriskisdn-10727'
======================================================================
----------------------------------------------------------------------
(0091811) blitzrage (administrator) - 2008-08-27 11:47
http://bugs.digium.com/view.php?id=13336#c91811
----------------------------------------------------------------------
I am unable to reproduce this with SVN trunk r140246.
The way I did it was configure mohinterpret=example in iax.conf in the
[general] section. Created an example MOH class in musiconhold.conf,
created the directory in /var/lib/asterisk/moh/example/ and copied some MOH
files into the directory.
I then created an IAX friend and a SIP friend. Called the SIP friend via
the IAX friend, then the SIP friend put the IAX peer on hold.
Here is the output from the CLI:
*CLI> -- Accepting UNAUTHENTICATED call from 192.168.128.103:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (),
> priority = mine
-- Executing [100 at 13336:1] Dial("IAX2/testing_iax2-82",
"SIP/testing_sip") in new stack
== Using SIP RTP CoS mark 5
-- Called testing_sip
-- SIP/testing_sip-0e112818 is ringing
-- SIP/testing_sip-0e112818 answered IAX2/testing_iax2-82
-- Started music on hold, class 'example', on IAX2/testing_iax2-82
-- Stopped music on hold on IAX2/testing_iax2-82
== Spawn extension (13336, 100, 1) exited non-zero on
'IAX2/testing_iax2-82'
-- Hungup 'IAX2/testing_iax2-82'
Perhaps you are doing something different than me? I have looked at the
code and the patch, and I have the sizeof(user->mohinterpret) in the
current SVN trunk, but it seems to be working for me.
Issue History
Date Modified Username Field Change
======================================================================
2008-08-27 11:47 blitzrage Note Added: 0091811
======================================================================
More information about the asterisk-bugs
mailing list