[asterisk-users] app_voicemail.c how to enable debugging?

2010-12-21 Thread Benoit Panizzon
Hi

Looking at the source of app_voicemail.c there are many statements like:

ast_debug(1, %s doesn't exist, doing what we can\n, 
prefile);

Where do I have to enably this to be showed in the console or logged to a file 
by logger. core set debug does not seem to help here.

Well, my actual problem is, that if a customer has recorded his own greeting, 
he usualy tells the caller to record his message after the tone, so 
app_voicemail should not play the intro.

spool/mailbox/unavail.gsm
vm-intro.gsm
beep.gsm

but only

spool/mailbox/unavail.gsm
beep.gsm

In case there is an unavailable message. Where do I have to poke at the 
source?

Kind regards

Benoit Panizzon
-- 
I m p r o W a r e   A G-
__

Zurlindenstrasse 29 Tel  +41 61 826 93 07
CH-4133 PrattelnFax  +41 61 826 93 02
Schweiz Web  http://www.imp.ch
__

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] app_voicemail.c how to enable debugging?

2010-12-21 Thread Daniel Tryba
On Tue, Dec 21, 2010 at 11:47:02AM +0100, Benoit Panizzon wrote:
[snip]
 Well, my actual problem is, that if a customer has recorded his own greeting, 
 he usualy tells the caller to record his message after the tone, so 
 app_voicemail should not play the intro.
 
 spool/mailbox/unavail.gsm
 vm-intro.gsm
 beep.gsm
 
 but only
 
 spool/mailbox/unavail.gsm
 beep.gsm
 
 In case there is an unavailable message. Where do I have to poke at the 
 source?

No need to patch app_voicemail to do this I guess, passing the 's'
argument to VoiceMail will skip vm-intro. So you only need to figure out
is unavail.gsm exists from the dialplan to add 's' to the arguments.
Implementing this in an AGI script should be trivial.

-- 

   Daniel Tryba

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] app_voicemail.c

2007-04-20 Thread David Florella, Legos
Hi everyone, 

 

   I have the project to personalize the voicemail's IVR. During the
intro message (when you call the voicemail of someone), Asterisk pronounce
the number of the personal extension number by number (like that :
0.1..2.3.) and I would like it pronounce it by couple of numbers (like that
: 01.23.). I have read on forums that I have to modify the app_voicemail.c
to do it. Is there another solution to modify the voicemail's IVR without
modify the app_voicemail.c ? And I want to know if you have ideas about the
way I can do this modificaton ?

 

Thank you.

 

___
--Bandwidth and Colocation provided by Easynews.com --

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


RE: [Asterisk-Users] app_voicemail.c still looking for config fileevenI try to configure the voicemail from database.

2005-08-14 Thread Wei Kun
Thanks. It works correctly with this change.

Kun

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew
Boehm
Sent: Friday, August 12, 2005 9:26 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] app_voicemail.c still looking for config
fileevenI try to configure the voicemail from database.


Wei Kun wrote:

 mysql select * from extensions_table;
 ++--+---+--+---++
 | id | context  | exten | priority | app   | appdata|
 ++--+---+--+---++
 |  1 | from-sip | 2000  |1 | Dial  | SIP/2000|20|
 |  2 | from-sip | 2000  |2 | Voicemail | u2000  |

You need to call voicemail app with a context. Change the line above to 
show [EMAIL PROTECTED]

-Matthew

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


Re: [Asterisk-Users] app_voicemail.c still looking for config fileeven I try to configure the voicemail from database.

2005-08-12 Thread Matthew Boehm

Wei Kun wrote:


mysql select * from extensions_table;
++--+---+--+---++
| id | context  | exten | priority | app   | appdata|
++--+---+--+---++
|  1 | from-sip | 2000  |1 | Dial  | SIP/2000|20|
|  2 | from-sip | 2000  |2 | Voicemail | u2000  |


You need to call voicemail app with a context. Change the line above to 
show [EMAIL PROTECTED]


-Matthew

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


[Asterisk-Users] app_voicemail.c still looking for config file even I try to configure the voicemail from database.

2005-08-11 Thread Wei Kun
Hi
I am trying to make asterisk load config from database, so far I get the
sip, extension working, but voicemail seems still looking for config file,
not from the database.

the extconfig.conf looks like
...
sipusers = mysql,asterisk,sip_buddies
sippeers = mysql,asterisk,sip_buddies
extensions = mysql,asterisk,extensions_table
voicemail = mysql,asterisk,voicemail_users
..

the table looks like
mysql select * from voicemail_users;
+--+-+-+-+--+--+
---+--+
| uniqueid | customer_id | context | mailbox | password | fullname | email
| page |
+--+-+-+-+--+--+
---+--+
|1 |2000 | local   |2000 | 4321 | Wei Kun  |
[EMAIL PROTECTED] |  |
|2 |2001 | local   |2001 | 8765 | Wei Kun  |
[EMAIL PROTECTED]  |  |
+--+-+-+-+--+--+
---+--+

But when I call, it prints

Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config
file for '2001'

Do I need put something in voicemail.conf to instruct app_voicemail.c to
look it up from database?

Thanks
Kun

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


Re: [Asterisk-Users] app_voicemail.c still looking for config file even I try to configure the voicemail from database.

2005-08-11 Thread Matthew Boehm

Wei Kun wrote:

Hi
I am trying to make asterisk load config from database, so far I get the
sip, extension working, but voicemail seems still looking for config file,
not from the database.
Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config
file for '2001'


How exactly are you calling it? Are you specifying the right voicemail 
context? What did the debug log say?


-Matthew

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


RE: [Asterisk-Users] app_voicemail.c still looking for config fileeven I try to configure the voicemail from database.

2005-08-11 Thread Wei Kun
Previously I was using voicemail.conf. It works well.
# cat voicemail.conf
[general]

format=wav

[local]

2000 = 4321, Wei Kun, [EMAIL PROTECTED]
2001 = 8383, Wei Kun, [EMAIL PROTECTED]

So I moved all the data into DB, and comment out items in voicemail.conf

mysql select * from voicemail_users;
+--+-+-+-+--+--+
---+--+
| uniqueid | customer_id | context | mailbox | password | fullname | email
| page |
+--+-+-+-+--+--+
---+--+
|1 |2000 | local   |2000 | 4321 | Wei Kun  |
[EMAIL PROTECTED] |  |
|2 |2001 | local   |2001 | 8765 | Wei Kun  |
[EMAIL PROTECTED]  |  |
+--+-+-+-+--+--+
---+--+
2 rows in set (0.03 sec)

The extension table looks like

mysql select * from extensions_table;
++--+---+--+---++
| id | context  | exten | priority | app   | appdata|
++--+---+--+---++
|  1 | from-sip | 2000  |1 | Dial  | SIP/2000|20|
|  2 | from-sip | 2000  |2 | Voicemail | u2000  |
|  3 | from-sip | 2000  |  102 | Voicemail | b2000  |
|  4 | from-sip | 2000  |  103 | Hangup||
|  5 | from-sip | 2001  |1 | Dial  | SIP/2001|20|
|  6 | from-sip | 2001  |2 | Voicemail | u2001  |
|  7 | from-sip | 2001  |  102 | Voicemail | b2001  |
|  8 | from-sip | 2001  |  103 | Hangup||
|  9 | from-sip | 2999  |1 | VoicemailMain | ${CALLERIDNUM} |
++--+---+--+---++
9 rows in set (0.01 sec)

If I call 2001 from 2000, it take priority 1  and ring, and go to priority
2, now it get warning
Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config
file for '2001'

no debug regarding this part. It looks like asterisk still looking for the
config file?

The extconfig looks like

voicemail = mysql,asterisk,voicemail_users

Kun


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew
Boehm
Sent: Thursday, August 11, 2005 11:40 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] app_voicemail.c still looking for config
fileeven I try to configure the voicemail from database.


Wei Kun wrote:
 Hi
 I am trying to make asterisk load config from database, so far I get the
 sip, extension working, but voicemail seems still looking for config file,
 not from the database.
 Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail
config
 file for '2001'

How exactly are you calling it? Are you specifying the right voicemail
context? What did the debug log say?

-Matthew

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

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


RE: [Asterisk-Users] app_voicemail.c still looking for configfileeven I try to configure the voicemail from database.

2005-08-11 Thread Wei Kun
I search and find this msg also addressing my problem.


[Asterisk-Users] Asterisk voicemail from mysql no longer working
Umar Sear asterisk-users@lists.digium.com
Wed, 28 Jul 2004 14:04:22 +0100 (BST)

* Previous message: [Asterisk-Users] Asterisk voicemail from mysql no
longer working
* Next message: [Asterisk-Users] Best Linux for Asterisk
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Further invetigation revealed that app voicemail did
not like the fact that I had the context set to
'local' as apposed to 'default'

Any ideas' or shall I raise this as a bug ?

Umar.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Wei Kun
Sent: Friday, August 12, 2005 9:51 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] app_voicemail.c still looking for
configfileeven I try to configure the voicemail from database.


Previously I was using voicemail.conf. It works well.
# cat voicemail.conf
[general]

format=wav

[local]

2000 = 4321, Wei Kun, [EMAIL PROTECTED]
2001 = 8383, Wei Kun, [EMAIL PROTECTED]

So I moved all the data into DB, and comment out items in voicemail.conf

mysql select * from voicemail_users;
+--+-+-+-+--+--+
---+--+
| uniqueid | customer_id | context | mailbox | password | fullname | email
| page |
+--+-+-+-+--+--+
---+--+
|1 |2000 | local   |2000 | 4321 | Wei Kun  |
[EMAIL PROTECTED] |  |
|2 |2001 | local   |2001 | 8765 | Wei Kun  |
[EMAIL PROTECTED]  |  |
+--+-+-+-+--+--+
---+--+
2 rows in set (0.03 sec)

The extension table looks like

mysql select * from extensions_table;
++--+---+--+---++
| id | context  | exten | priority | app   | appdata|
++--+---+--+---++
|  1 | from-sip | 2000  |1 | Dial  | SIP/2000|20|
|  2 | from-sip | 2000  |2 | Voicemail | u2000  |
|  3 | from-sip | 2000  |  102 | Voicemail | b2000  |
|  4 | from-sip | 2000  |  103 | Hangup||
|  5 | from-sip | 2001  |1 | Dial  | SIP/2001|20|
|  6 | from-sip | 2001  |2 | Voicemail | u2001  |
|  7 | from-sip | 2001  |  102 | Voicemail | b2001  |
|  8 | from-sip | 2001  |  103 | Hangup||
|  9 | from-sip | 2999  |1 | VoicemailMain | ${CALLERIDNUM} |
++--+---+--+---++
9 rows in set (0.01 sec)

If I call 2001 from 2000, it take priority 1  and ring, and go to priority
2, now it get warning
Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail config
file for '2001'

no debug regarding this part. It looks like asterisk still looking for the
config file?

The extconfig looks like

voicemail = mysql,asterisk,voicemail_users

Kun


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew
Boehm
Sent: Thursday, August 11, 2005 11:40 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] app_voicemail.c still looking for config
fileeven I try to configure the voicemail from database.


Wei Kun wrote:
 Hi
 I am trying to make asterisk load config from database, so far I get the
 sip, extension working, but voicemail seems still looking for config file,
 not from the database.
 Aug 11 15:04:08 WARNING[9316] app_voicemail.c: No entry in voicemail
config
 file for '2001'

How exactly are you calling it? Are you specifying the right voicemail
context? What did the debug log say?

-Matthew

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

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

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