Title: Multiple variables set in Orignate AMI action are merged/joined · Issue #220 · AsterNET/AsterNET · GitHub
Open Graph Title: Multiple variables set in Orignate AMI action are merged/joined · Issue #220 · AsterNET/AsterNET
X Title: Multiple variables set in Orignate AMI action are merged/joined · Issue #220 · AsterNET/AsterNET
Description: I am trying to use Asterisk AMI OriginateAction method to dial out calls. Calls are working fine But I am having issue on setting variables on this action. I set 2 variables as following: oc.SetVariables( new Dictionary
Open Graph Description: I am trying to use Asterisk AMI OriginateAction method to dial out calls. Calls are working fine But I am having issue on setting variables on this action. I set 2 variables as following: oc.SetVar...
X Description: I am trying to use Asterisk AMI OriginateAction method to dial out calls. Calls are working fine But I am having issue on setting variables on this action. I set 2 variables as following: oc.SetVar...
Opengraph URL: https://github.com/AsterNET/AsterNET/issues/220
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple variables set in Orignate AMI action are merged/joined","articleBody":"I am trying to use Asterisk AMI OriginateAction method to dial out calls. Calls are working fine But I am having issue on setting variables on this action. I set 2 variables as following:\r\n\r\n``` C#\r\noc.SetVariables( new Dictionary\u003cstring, string>(){ { \"SIPADD\", \"10001\"}, { \"VQWAITER\", \"10002\" }});\r\n```\r\n\r\nbut when i try to get one of the variables \"SIPADD\" in dialplan. I get both vairables at once in joined form as \"Local/10002|_VQWAITER=10001\"\r\n\r\nDialplan:\r\n\r\n```\r\nexten => 999,1,NoOp((Caller ID IS: ${CALLERID(num)}))\r\n same => n,Answer()\r\n same => n,NoOp(\"Callback Agent Address: \"${SIPADD})\r\n same => n,Dial(${SIPADD})\r\n same => n,Hangup()\r\n ```\r\n\r\n \r\nFollwoing is above CLI trace of above dialplan:\r\n\r\n[![enter image description here][1]][1]\r\n\r\n\r\nCan anyone please guide me whats the issue here? I want to get these variables separately an not joined like this.\r\n\r\n\r\n\r\n\r\nFor now as a work arround i am splitting the joined string i get by doing following setps in dialplan:\r\n\r\n```\r\n same => n,NoOp(\"Callback Agent Address: \"${SIPADD})\r\n same => n,Set(localSIPAdd=${CUT(SIPADD,|,1)})\r\n same => n,Set(waiter=${CUT(SIPADD,|,2)})\r\n same => n,NoOp(\"localSIP: \"${localSIPAdd})\r\n same => n,NoOp(\"waiter: \"${waiter})\r\n same => n,Set(CALLERID(num)=waiter)\r\n```\r\n\r\nCLI for above change:\r\n\r\n[![enter image description here][2]][2]\r\n\r\n\r\n [1]: https://i.stack.imgur.com/ToDx4.png\r\n [2]: https://i.stack.imgur.com/aqROm.png\r\n\r\nMy question on stackoverflow:\r\nhttps://stackoverflow.com/questions/59825353/originateaction-variables-joining-issue-asterisk","author":{"url":"https://github.com/zeeshanalikhan15","@type":"Person","name":"zeeshanalikhan15"},"datePublished":"2020-01-21T07:26:44Z","url":"https://github.com/AsterNET/AsterNET/issues/220"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:e35004d1-9ce0-17c0-23fb-dbb11eb2589e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6C0:3222E4:448283:609C21:6AFB5B08 |
| html-safe-nonce | 331cf5b30c4167ace3ea747d11d1192a15e5a86fae5390ec8a929c8d9aa547ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkMwOjMyMjJFNDo0NDgyODM6NjA5QzIxOjZBRkI1QjA4IiwidmlzaXRvcl9pZCI6IjQ3NjA3MTM5NDY1MTAwODg5NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 635368adab50002666aed8038821af949e61c893585d99fcda32c9926f1f9c4e |
| hovercard-subject-tag | issue:552671939 |
| 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/AsterNET/AsterNET/220/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91aff1cc4eeffc8ab0fef84ff3b4192697b0eb3be7f785f5567537ce6ce8d1a5/AsterNET/AsterNET/issues/220 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91aff1cc4eeffc8ab0fef84ff3b4192697b0eb3be7f785f5567537ce6ce8d1a5/AsterNET/AsterNET/issues/220 |
| og:image:alt | I am trying to use Asterisk AMI OriginateAction method to dial out calls. Calls are working fine But I am having issue on setting variables on this action. I set 2 variables as following: oc.SetVar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zeeshanalikhan15 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/AsterNET/AsterNET git https://github.com/AsterNET/AsterNET.git |
| octolytics-dimension-user_id | 18189401 |
| octolytics-dimension-user_login | AsterNET |
| octolytics-dimension-repository_id | 28722690 |
| octolytics-dimension-repository_nwo | AsterNET/AsterNET |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28722690 |
| octolytics-dimension-repository_network_root_nwo | AsterNET/AsterNET |
| 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 | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width