Hi Lonnie

Thanks for the info.

Well, "large amounts" is relativ, I guess. The data I try to upload is
normally less then 300kB. That should not be a problem at all.

But the upload does not work at all. It seems as if the upload function
in the asterisk web server is not working. Thus, why I ask about if that
could be astlinux specific.

Could it maybe be a configuation issue when you compile asterisk?

Could you try if you get this working here:
; The post_mappings section maps URLs to real paths on the filesystem.  If a
; POST is done from within an authenticated manager session to one of the
; configured POST mappings, then any files in the POST will be placed in the
; configured directory.
;
;[post_mappings]
;
; In this example, if the prefix option is set to "asterisk", then using the
; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
;uploads = /var/lib/asterisk/uploads/
;

That is not an asterisk GUI function but an asterisk function that is
used for uploading.

Thanks again.

Michael

Am 20.04.2012 17:20, schrieb Lonnie Abelbeck:
> I don't use the Asterisk GUI, but POST'ing large amounts of data can be a 
> tricky.
> 
> You might try with a different browser and see if makes a difference.
> 
> I don't know of anything we (AstLinux) are doing that would effect POST's in 
> the Asterisk GUI.  They use their own web server on their own port.
> 
> Lonnie
> 
> 
> On Apr 20, 2012, at 10:05 AM, Neuer User wrote:
> 
>> Having tracked this down a bit, it seems that the GUI simply POSTs the
>> files to post_mappings defined in http.conf.
>>
>> http.conf:
>>> ;!
>>> ;! Automatically generated configuration file
>>> ;! Filename: http.conf (/etc/asterisk/http.conf)
>>> ;! Generator: Manager
>>> ;! Creation Date: Fri Apr 20 16:46:03 2012
>>> ;!
>>> [general]
>>> ;
>>> ; Whether HTTP interface is enabled or not.  Default is no.
>>> ;
>>> enabled = yes
>>> ;
>>> ; Whether Asterisk should serve static content from http-static
>>> ; Default is no.
>>> ;
>>> enablestatic = yes
>>> ;
>>> ; Prefix allows you to specify a prefix for all requests
>>> ; to the server.  The default is blank.  If uncommented
>>> ; all requests must begin with /asterisk
>>> ;
>>> ;prefix=asterisk
>>> ;
>>> ; Redirect one URI to another.  This is how you would set a
>>> ; default page.
>>> ;   Syntax: redirect=<from here> <to there>
>>> ; For example, if you are using the Asterisk-gui,
>>> ; it is convenient to enable the following redirect:
>>> ;
>>> redirect = / /static/config/index.html
>>> ;
>>> ; Address to bind to.  Default is 0.0.0.0
>>> ;
>>> bindaddr = 0.0.0.0
>>> ;
>>> ; Port to bind to (default is 8088)
>>> ;
>>> bindport = 8088
>>> [post_mappings]
>>> backups = /var/lib/asterisk/gui_backups
>>> moh = /var/lib/asterisk/moh
>>> voicemenuprompts = /var/lib/asterisk/sounds/record
>>> guimohdir_test = /var/lib/asterisk/moh/guimohdir_test
>>
>> However, in the cli I don't see any of these in http show status:
>>> pbx*CLI> http show status 
>>> HTTP Server Status:
>>> Prefix: 
>>> Server Enabled and Bound to 0.0.0.0:8088
>>>
>>> Enabled URI's:
>>> /httpstatus => Asterisk HTTP General Status
>>> /phoneprov/... => Asterisk HTTP Phone Provisioning Tool
>>> /amanager => HTML Manager Event Interface w/Digest authentication
>>> /arawman => Raw HTTP Manager Event Interface w/Digest authentication
>>> /manager => HTML Manager Event Interface
>>> /rawman => Raw HTTP Manager Event Interface
>>> /static/... => Asterisk HTTP Static Delivery
>>> /amxml => XML Manager Event Interface w/Digest authentication
>>> /mxml => XML Manager Event Interface
>>>
>>> Enabled Redirects:
>>>  / => /static/config/index.html
>>
>> Well, if the asterisk upload function does not work then that would
>> explain why no GUI uploads are working.
>>
>> Unfortunately, there is not much documentation in the net about this
>> asterisk function, only this:
>>> [post_mappings]
>>> ;
>>> ; In this example, if the prefix option is set to "asterisk", then using the
>>> ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
>>> ; uploads = /var/lib/asterisk/uploads/
>>
>> Anybody tried this on astlinux? Is there maybe a compilation option used
>> in astlinux that DISABLES this function?
>>
>> Michael
>>
>>
>> ------------------------------------------------------------------------------
>> For Developers, A Lot Can Happen In A Second.
>> Boundary is the first to Know...and Tell You.
>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>> http://p.sf.net/sfu/Boundary-d2dvs2
>> _______________________________________________
>> Astlinux-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>
>> Donations to support AstLinux are graciously accepted via PayPal to 
>> [email protected].
>>
>>
> 
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2



------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to