[asterisk-dev] built in Http auth not working with 'non-browser' requests...

Tim Panton thp at westhawk.co.uk
Tue Jun 3 08:14:26 CDT 2008


I'm writing some code that lets Oracle talk to the manager api

(Initially just to get status and originate calls - but I may extend  
it to do meetme etc at some point)

I'm using the http->xml-> manager route.
I couldn't understand why I couldn't get http requests sent from  
authenticated by asterisk.

It turns out that the built-in http client in PLSQL sends cookie  
headers that look like this:
                                      Cookie: mansession_id=********
but asterisk expects
                                      Cookie: mansession_id="********"
It's simple to fix, but took me too long to find.

What I don't know is if this is a bug in Oracle or Asterisk :-)

Tim.

(Why am I doing this ??!? - well -  I now have a table (well a view  
actually) , where just inserting a row into it
causes asterisk to originate a call - which keeps the telephony code  
away from the web monkeys ....)

T.



More information about the asterisk-dev mailing list