Re: [asterisk-users] moh reload not reloading/reading new musiconhold files

2017-03-24 Thread Daniel Journo
> Hello
> as you can read in my original post "moh reload" and "module reload 
> res_musiconhold.so" does nothing.
> Only at restart the new files are available.
> Is this a bug ?? How can I get more debugging for this problem ??

Just spotted that you are using Asterisk 1.8.32.3.
The bug I'm thinking of is in the latest version. I don't know if your version 
is affected.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] moh reload not reloading/reading new musiconhold files

2017-03-24 Thread Daniel Journo
> Hello
> as you can read in my original post "moh reload" and "module reload 
> res_musiconhold.so" does nothing.
> Only at restart the new files are available.
> Is this a bug ?? How can I get more debugging for this problem ??

I think there is currently a bug with MOH. For now, if you add a file to a moh 
folder, 'touch musiconhold.conf' and then reload moh.
Please let me know how it goes.

Kind regards

Dan Journo

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Asterisk 13: is CALLERID(num-pres) readable ? [SOLVED]

2017-03-24 Thread Olivier
Hello,

2017-03-17 15:05 GMT+01:00 Olivier :

> Hello,
>
> From a 13.14.0 system:
>
> same = n,Verbose(0,1-CALLERID(num-pres) is ${CALLERID(num-pres)})
> same = n,Set(CALLERID(num-pres)=prohib)
> same = n,Verbose(0,2-CALLERID(num-pres) is now ${CALLERID(num-pres)})
>


Replying to myself, moving above statements before a Ringing statement
triggered printing of expected values:
1-CALLERID(num-pres) is allowed_not_screened
2-CALLERID(num-pres) is now prohib

I hope this could help others.

Cheers



>
> I would expect to read "2-CALLERID(num-pres) is now prohib" but I get
> "2-CALLERID(num-pres) is ".
>
> I also get "1-CALLERID(num-pres) is ".
>
> 1. Am I missing something ?
> 2. What is the more efficient way to detect a caller requested to be kept
> anonymous ?
>
>
>
> Slts
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] moh reload not reloading/reading new musiconhold files

2017-03-24 Thread Jonas Kellens

Hello

as you can read in my original post "moh reload" and "module reload 
res_musiconhold.so" does nothing.


Only at restart the new files are available.

Is this a bug ?? How can I get more debugging for this problem ??



Kind regards.


On 23-03-17 22:54, Administrator TOOTAI wrote:

Le 23/03/2017 à 20:17, Jonas Kellens a écrit :

Hello


is there any more information on how to reload/read musiconhold files ?


CLI> module reload res_musiconhold

--
Daniel


On 07-03-17 10:46, Jonas Kellens wrote:

Hello

I did not mention it but of course the MOH directory is listed in
/etc/asterisk/musiconhold.conf :

[default]
mode=files
directory=/var/lib/asterisk/moh

[myfolder_1]
mode=files
directory=/var/lib/asterisk/moh/myfolder/1
sort=alpha

[myfolder_2]
mode=files
directory=/var/lib/asterisk/moh/myfolder/2
sort=alpha

[myfolder_3]
mode=files
directory=/var/lib/asterisk/moh/myfolder/3
sort=alpha


No mather where I put the new file, it is never listed.

Untill a full restart of Asterisk ! Then it is listed. But is there no
other way to load/read a new MOH file than to completely restart
Asterisk ??


After Asterisk restart :

myserver*CLI> moh show files
Class: default
File: /var/lib/asterisk/moh/reno_project-system
File: /var/lib/asterisk/moh/macroform-the_simplicity
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
File: /var/lib/asterisk/moh/macroform-robot_dity
File: /var/lib/asterisk/moh/macroform-cold_day
Class: myfolder_1
File: /var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity



Kind regards.




On 03-03-17 18:26, John Kiniston wrote:

Your new file is in the 'myfolder/1'' subdirectory of the MOH
directory.

Either move the file into the MOH directory or define a new class in
musiconhold.conf that is for your directory.


On Fri, Mar 3, 2017 at 7:19 AM, Jonas Kellens
mailto:jonas.kell...@telenet.be>> wrote:

Hello

using Asterisk 1.8.32.3

Current music on hold :

myserver*CLI> moh show files
Class: default
File: /var/lib/asterisk/moh/macroform-robot_dity
File: /var/lib/asterisk/moh/macroform-cold_day
File: /var/lib/asterisk/moh/reno_project-system
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
File: /var/lib/asterisk/moh/macroform-the_simplicity

New musiconhold file :

[root@myserver ]# file
/var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity.wav
/var/lib/asterisk/moh/myfolder/1/macroform-the_simplicity.wav:
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit,
mono 8000 Hz

I issue a reload of the moh :

myserver*CLI> moh reload
myserver*CLI> module reload res_musiconhold.so
[Mar  3 15:04:53] -- Reloading module 'res_musiconhold.so'
(Music On Hold Resource)

Situation after reload :

myserver*CLI> moh show files
Class: default
File: /var/lib/asterisk/moh/macroform-robot_dity
File: /var/lib/asterisk/moh/macroform-cold_day
File: /var/lib/asterisk/moh/reno_project-system
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
File: /var/lib/asterisk/moh/macroform-the_simplicity


Even a complete 'module reload' on Asterisk CLI does nothing :

myserver*CLI> module reload
[Mar  3 15:13:54]   == Parsing '/etc/asterisk/extconfig.conf':
[Mar  3 15:13:54]   == Found
[Mar  3 15:13:54]   == Parsing '/etc/asterisk/logger.conf': [Mar
3 15:13:54]   == Found
...
[Mar  3 15:13:54] -- Reloading module 'res_musiconhold.so'
(Music On Hold Resource)
...


Situation after reload :

myserver*CLI> moh show files
Class: default
File: /var/lib/asterisk/moh/macroform-robot_dity
File: /var/lib/asterisk/moh/macroform-cold_day
File: /var/lib/asterisk/moh/reno_project-system
File: /var/lib/asterisk/moh/manolo_camp-morning_coffee
File: /var/lib/asterisk/moh/macroform-the_simplicity



So, reloading musiconhold does not reload/read musiconhold files.


How to read/load new musiconhold files into asterisk ??


Kind regards.



--
_
-- Bandwidth and Colocation Provided by 
http://www.api-digital.com --


Check out the new Asterisk community forum at:
https://community.asterisk.org/ 

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started


asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users





--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet,
balance accounts, build a wall, set a bone, comfort the dying, take
orders, give orders, cooperate, act alone, solve equations, analyze a
new problem, pi