> For the complete documentation index, see [llms.txt](https://docs.omnileads.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.omnileads.net/video-llamadas-pro/webphone-demo.md).

# Webphone Demo

### WebPhone Demo <a href="#webphone-demo" id="webphone-demo"></a>

Este es una demo de como funciona el webphone, utilizando Flask como backend. Todo el contenido esta en la carpeta *demo*. Para ejecutar este código ud debe:

1. Editar el objeto config en el archivo *views.py* con la configuración de su OMniLeads

```
config = {
     'URL_API_CREDENTIALS': 'https://OML_HOST/api/v1/webphone/credentials/', // Your OML instance
     'client_username': 'client_username',   // Your OML WebPhone Client User username.
     'client_password': 'clientpassword',    // Your OML WebPhone Client User password.
}
```

1. Editar estas variables en el archivo *templates/index.html*

```
'KamailioHost': "X.X.X.X", // This is the LAN IP of you OMniLeads instance
'WebSocketPort': "443", // This is the port you se to connect via Web browser to your OMniLeads instance
'WebSocketHost': "domain.example.com", // This is the domain name you use to connect via Web browser to your OMniLeads instance
```

1. Instalar flask y correrlo localmente

```
$ pip install Flask
$ pip install pyopenssl
$ cd demo/
$ FLASK_APP=webphone.py FLASK_DEBUG=1 flask run --cert=adhoc
```

Por ultimo, navegar a:

<https://localhost:5000/>

[AnteriorWordpress Plugin](broken://pages/ZJGdbqzerPXOJhz6tDHN)SiguienteAuditoría de gestiones

Última actualización hace 1 año


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.omnileads.net/video-llamadas-pro/webphone-demo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
