Carlos Chavez
2010-May-14 00:09 UTC
[asterisk-users] Are there AMI commands to manipulate a voice mailbox?
I want to make a web interface so my users can listen/erase voicemails. Is there a way to do this from the Asterisk manager interface? Since Asterisk and the web server do not run as the same user I cannot do a direct manipulation of the voicemail files in /var/spool/asterisk/voicemail. Maybe there are some AMI commands to delete a specific voicemail from a mailbox? I have not found any so far but documentation is often behind of implementation. Any ideas on how to approach this? -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100513/8a29f147/attachment.pgp
Jim Dickenson
2010-May-14 01:49 UTC
[asterisk-users] Are there AMI commands to manipulate a voice mailbox?
You might be able to use local channels to do what you want. As for the user asterisk runs as and the user the web server run as you can maybe have both users belong to the same secondary group and gain the access you need that way. Partly depends on what exactly you are wanting to do. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On May 13, 2010, at 5:09 PM, Carlos Chavez wrote:> I want to make a web interface so my users can listen/erase voicemails. > Is there a way to do this from the Asterisk manager interface? Since > Asterisk and the web server do not run as the same user I cannot do a > direct manipulation of the voicemail files > in /var/spool/asterisk/voicemail. Maybe there are some AMI commands to > delete a specific voicemail from a mailbox? I have not found any so far > but documentation is often behind of implementation. > > Any ideas on how to approach this? > > -- > Telecomunicaciones Abiertas de M?xico S.A. de C.V. > Carlos Ch?vez Prats > Director de Tecnolog?a > +52-55-91169161 ext 2001 > -- > _____________________________________________________________________ > -- 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
Motiejus Jakštys
2010-May-14 05:51 UTC
[asterisk-users] Are there AMI commands to manipulate a voice mailbox?
Talking about file permissions, on Linux everything is possible using POSIX ACLs. You can set specific rights to files/directories for certain users. Note 1: if setting "group" permissions is enough, use that. Note 2: Asterisk and web server should be on separate machines (at least virtual machines) for many reasons... I would mount my voicemail over NFS... which itself has enough access control. Note 3: if you decide to experiment with ACLs (IMHO, most flexible) - do not forget to remout your file system: mount -o remount,acl /usr Hope it helps On Fri, May 14, 2010 at 4:49 AM, Jim Dickenson <dickenson at cfmc.com> wrote:> You might be able to use local channels to do what you want. > > As for the user asterisk runs as and the user the web server run as you can maybe have both users belong to the same secondary group and gain the access you need that way. > > Partly depends on what exactly you are wanting to do. > -- > Jim Dickenson > mailto:dickenson at cfmc.com > > CfMC > http://www.cfmc.com/ > > > > On May 13, 2010, at 5:09 PM, Carlos Chavez wrote: > >> ? ? ? I want to make a web interface so my users can listen/erase voicemails. >> Is there a way to do this from the Asterisk manager interface? ?Since >> Asterisk and the web server do not run as the same user I cannot do a >> direct manipulation of the voicemail files >> in /var/spool/asterisk/voicemail. ?Maybe there are some AMI commands to >> delete a specific voicemail from a mailbox? ?I have not found any so far >> but documentation is often behind of implementation. >> >> ? ? ? Any ideas on how to approach this? >> >> -- >> Telecomunicaciones Abiertas de M?xico S.A. de C.V. >> Carlos Ch?vez Prats >> Director de Tecnolog?a >> +52-55-91169161 ext 2001 >> -- >> _____________________________________________________________________ >> -- 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 > > > -- > _____________________________________________________________________ > -- 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 >