[asterisk-users] Voicemail argument size limit

2006-11-13 Thread Donald Stahl
I'm trying to implement a voicemail distribution list using asterisk and I've 
hit a bump. I've got an agi script that parses voicemail.conf and generates a 
list of voicemail boxes to use as an argument to the voicemail() function.


The problem is that the argument exceeds 256 characters (100 mailboxes * 5 
characters per mailbox [ + 4 digit mailbox] = 500+ characters) and asterisk 
seems to trunk there resulting in only the first 50 people getting the 
voicemail.


I've searched for a solution on the lists and through google to no avail.

Can this be fixed with a simple buffer size change in a couple of places or am 
I going to run into dependencies everywhere? Going through the code it looks 
like char[256]'s in a number of places that could be causing the problem but I 
haven't had the time to go through the code in any depth.


This is asterisk 1.2.12.1 although I am going to be upgrading to the latest 
version shortly.


If there is a limit then is this documented anywhere? Should a function that 
gets an argument of 500 characters simply truncate or should it simply return 
an error that the input is too long so as to avoid operating on partial data?


I've already considered a number of workarounds including copying the 
messages right from the file system but the only way to get things like 
email notification is to use the function. Is there a copy function that I 
could use in a loop that would also notify anyone with an email 
notifcation set up?


Any help or guidance would be appreciated.

Thanks in advance,
-Don
___
--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] Voicemail argument size limit

2006-11-13 Thread Donald Stahl
I'm trying to implement a voicemail distribution list using asterisk and 
I've hit a bump. I've got an agi script that parses voicemail.conf and 
generates a list of voicemail boxes to use as an argument to the 
voicemail() function.


Generate in groups of 50 and loop it until you have them all?

Define Generate.

Right now I Answer and then send them into the voicemail function with 
the list of mailboxes. How would I go about first recording the message 
and _then_ sending it to voicemail in a loop, 50 at a time? If there is a 
function I missed or am unaware of please let me know.


Recording the message multiple times is not an option :)

Thanks,
-Don
___
--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] Voicemail argument size limit

2006-11-13 Thread Donald Stahl
Right now I Answer and then send them into the voicemail function with 
the list of mailboxes. How would I go about first recording the message and 
_then_ sending it to voicemail in a loop, 50 at a time? If there is a 
function I missed or am unaware of please let me know.


I was not clear on how your AGI functioned.
I'm happy to alter my AGI file in any way that will allow this to 
function. If you can suggest a means of getting this to work please let me 
know.


Alternatively I may ask or in -dev if they know what would need to be 
changed for a recompile.


Thanks,
-Don
___
--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] Voicemail argument size limit

2006-11-13 Thread Donald Stahl
I'm happy to alter my AGI file in any way that will allow this to function. 
If you can suggest a means of getting this to work please let me know.
I would suggest that you follow your original thought of using the file 
system.  You can turn on the phone's MWI by touching the msg.txt file
My script does that so that's not a problem- it just doesn't trigger email 
notifications unless it goes through the voicemail function. That's the 
part I'd like to fix. I don't want to just go changing buffer sizes, 
however.


Thanks,
-Don
___
--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