Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to include the appname and appdata in the DialplanCEP #148

Open
daninmadison opened this issue Feb 15, 2023 · 0 comments

Comments

@daninmadison
Copy link
Contributor

daninmadison commented Feb 15, 2023

Here is an example of the data Asterisk sends over for the channel data. In the dialplan field, there is an app_name and an app_data field that is not included in the DialplanCEP. This is useful information to know for Stasis. If Asterisk sends the call to Stasis, the app_name would be "Stasis" and the app_data would be the stasis application's identifier, which is Application used for the ARI connection. The app_data can also include additional parameters that should be passed from Asterisk to the ARI/Stasis application. These would be separated by a space (forming a string array).

{
"id":"1675093673.34",
"name":"Local/10000@IS-00000004;1",
"state":"Up",
"protocol_id":"",
"caller":{"name":"LocalTest","number":"9000"},
"connected":{"name":"LocalTest","number":"9000"},
"accountcode":"",
"dialplan":{"context":"IS","exten":"createcall","priority":23,"app_name":"AGI","app_data":"agi:async"},
"creationtime":"2023-01-30T09:47:53.350-0600",
"language":"en"
}

I just submitted a Pull Request for code that adds this support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant