twilio / OpenVBX

OpenVBX is a web-based open source phone system for business.
http://openvbx.org
Other
699 stars 342 forks source link

OpenVBX not generating the Twiml code. #387

Open smartcall opened 7 years ago

smartcall commented 7 years ago

Hi there,

Installed OpenVBX onto my server Hostgator, set up the mqsql data base and registered my twillio account.

Logged into the OpenVBX through my server XXXXXX.com.au/openVBX

Setup my phone number correctly and decided to start a simple CALL FLOW then i attached my number to the call flow.

Setup details : (Incoming call to answer with greating - text robot - "This is a simple test")

When i call my twillio number i get an ERROR - We are sorry, An appliactioon error has occured.

I loged into twillio to check the credentials and every thing seems to be ok. Debugger shows the error (11200 - HTTP retrieval failure).

I clicked on Active Numbers and i think i may have found the problem but i am not sure how to fix it.

Under Active numbers - A call coming in is configures to a webhook - http://www.xx.com.au/openVBX/twiml/st... and a Primary handler fails is configures to http://www.xx.com.au/openVBX/fallback...

When i past both of these addresses into a new web browser to have a look at the code the http://www.xx.com.au/openVBX/twiml/st... is a blank URL it only loads a white page.

The http://www.xx.com.au/openVBX/fallback... shows me the following code.

An unknown error occurred. Please contact an administrator.Goodbye

I feel it has got to do with openVBX not coding the /openVBX/twiml/start/voice/2 is the reason i am getting the 11200 -HTTO retrival failure because it can't read an empty page of code.

Does any one know why the openVBX is not coding the /openVBX/twiml/start/voice/2 page???

Or do you have any other suggestions on how to fix this issue?

Your help is much appreciated.

Noxcivis commented 7 years ago

I am experiencing the same issue. Bump !

Torniojaws commented 7 years ago

When i past both of these addresses into a new web browser to have a look at the code the http://www.xx.com.au/openVBX/twiml/st... is a blank URL it only loads a white page.

You cannot request them using a browser address bar, because the messages must use POST method. Eg.

POST http://127.0.0.1:8112/twiml/applet/voice/2/bfc14d Where bfc14d is the Applet ID, which you can find by clicking on the already drag'n'dropped Applet icon, so that the configuration opens (eg. "Read text", "Upload mp3", etc), and then right-clicking on it's title bar and then Inspect the element. You will see the Applet ID: image

Then you should receive a TwiML as response: image

If that looks valid, then the error happens elsewhere, for example in a later step of the Flow. Just keep following the flow until your response TwiML is something it should not be. Then check your code of that part. And if you made no changes to the default OpenVBX, then check that your configuration is ok: Database grants, database account is created, the database structure is valid, and that your install can actually connect to the DB.