Title: Asterisk ARI originate() Call Defaults to "default" Context Instead of Custom Context · Issue #198 · ari4java/ari4java · GitHub
Open Graph Title: Asterisk ARI originate() Call Defaults to "default" Context Instead of Custom Context · Issue #198 · ari4java/ari4java
X Title: Asterisk ARI originate() Call Defaults to "default" Context Instead of Custom Context · Issue #198 · ari4java/ari4java
Description: I am using Asterisk ARI to originate a call and explicitly set a custom context (e.g., “test2”), but when the call reaches the StasisStart event, it appears in the default context instead. Why is the context being overridden or ignored? ...
Open Graph Description: I am using Asterisk ARI to originate a call and explicitly set a custom context (e.g., “test2”), but when the call reaches the StasisStart event, it appears in the default context instead. Why is t...
X Description: I am using Asterisk ARI to originate a call and explicitly set a custom context (e.g., “test2”), but when the call reaches the StasisStart event, it appears in the default context instead. Why is t...
Opengraph URL: https://github.com/ari4java/ari4java/issues/198
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Asterisk ARI originate() Call Defaults to \"default\" Context Instead of Custom Context","articleBody":"I am using Asterisk ARI to originate a call and explicitly set a custom context (e.g., “test2”), but when the call reaches the StasisStart event, it appears in the default context instead. Why is the context being overridden or ignored?\n\n1. Log Before Originate Call (Expected Context: “test2”)\n\n2025-03-25 19:55:22 [pool-2-thread-4] INFO AUDIT_LOG - context is: test2\n\n\n2. Originate Code Snippet\n\nChannel channel = ari.channels().originate(endpoint)\n.setContext(context)\n.setApp(asteriskApp)\n.setCallerId(fromWithout0)\n.setAppArgs(args)\n.setExtension(fromWithout0)\n.execute();\n\n3. onStasisStart Log (Unexpected: Context Defaults to “default”)\n\n2025-03-25 19:55:28 [pool-2-thread-57] INFO AUDIT_LOG - ,127.0.0.1,,1.1V,AVPPBX,,202503251955327,,onStasisStart,,details,{\"args\":[\"OUTBOUND_CONNECT_AGENT\",\"2\",\"0762192061\",\"1742912718.0\",\"781100996\"],\"asterisk_id\":\"90:e8:68:40:82:bd\",\"application\":\"app-2\",\"channel\":{\"connected\":{\"number\":\"117109638\",\"name\":\"\"},\"caller\":{\"number\":\"117109638\",\"name\":\"\"},\"name\":\"PJSIP/0762192061-00000001\",\"dialplan\":{\"app_name\":\"Stasis\",\"context\":\"default\",\"app_data\":\"app-2,OUTBOUND_CONNECT_AGENT,2,0762192061,1742912718.0,781100996\",\"priority\":1,\"exten\":\"s\"},\"language\":\"en\",\"creationtime\":\"Tue Mar 25 19:55:22 IST 2025\",\"id\":\"1742912722.1\",\"state\":\"Up\",\"accountcode\":\"\"},\"type\":\"StasisStart\",\"timestamp\":\"Tue Mar 25 19:55:28 IST 2025\"},,,,,,,,,,,,\n\n\nVerified the context value before originating the call – It is set to test2.\nChecked extensions.conf for the context \"test2\" – It exists in the dialplan.\nTried setting setContext() before setApp(), but the issue persists.\n\nWhat could be causing Asterisk to override or ignore the context set during originate()? Could it be an issue with ARI, dialplan configuration, or something else? Any guidance would be appreciated!","author":{"url":"https://github.com/rayanweragala","@type":"Person","name":"rayanweragala"},"datePublished":"2025-03-25T14:38:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/198/ari4java/issues/198"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b65f07ab-851d-58ee-5f44-b023052145db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F5C:25602F:85AAA09:AEBEEE5:69758AC2 |
| html-safe-nonce | f4d44c8ee129c7fb9df17399a97b51619e769a93f408b04835cd75bd641d9d2e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjVDOjI1NjAyRjo4NUFBQTA5OkFFQkVFRTU6Njk3NThBQzIiLCJ2aXNpdG9yX2lkIjoiMTczNDc1NTM3NDQzNjAyNzA3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 995f4588a6b894866ab0d4310163db6ff779941fe621a814f332ce5dd4f4c10f |
| hovercard-subject-tag | issue:2946769984 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ari4java/ari4java/198/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c141564946d3fb048d3306048a249ae5ed136a38929da404d7b227fdb0c7363/ari4java/ari4java/issues/198 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c141564946d3fb048d3306048a249ae5ed136a38929da404d7b227fdb0c7363/ari4java/ari4java/issues/198 |
| og:image:alt | I am using Asterisk ARI to originate a call and explicitly set a custom context (e.g., “test2”), but when the call reaches the StasisStart event, it appears in the default context instead. Why is t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rayanweragala |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/ari4java/ari4java git https://github.com/ari4java/ari4java.git |
| octolytics-dimension-user_id | 72555871 |
| octolytics-dimension-user_login | ari4java |
| octolytics-dimension-repository_id | 13589673 |
| octolytics-dimension-repository_nwo | ari4java/ari4java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13589673 |
| octolytics-dimension-repository_network_root_nwo | ari4java/ari4java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width