[asterisk-bugs] [JIRA] (ASTERISK-30385) Making a call from one extension(100) to another extension(200) through ari-client (Node.js)
Asterisk Team (JIRA)
noreply at issues.asterisk.org
Wed Jan 4 05:57:03 CST 2023
[ https://issues.asterisk.org/jira/browse/ASTERISK-30385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Asterisk Team closed ASTERISK-30385.
------------------------------------
Resolution: Not A Bug
> Making a call from one extension(100) to another extension(200) through ari-client (Node.js)
> --------------------------------------------------------------------------------------------
>
> Key: ASTERISK-30385
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30385
> Project: Asterisk
> Issue Type: Information Request
> Security Level: None
> Components: Applications/app_stasis
> Affects Versions: 18.5.0
> Environment: Ubuntu 20
> Reporter: Muhammad Annas
> Severity: Major
>
> Precise overview about the flow:
>
> - I am calling my initial extension(100) using zoiper through twilio sip domain which actually direct the call to my asterisk server.
> - Now when my call is in asterisk server I'm trying to forward it to another extension(200) using ari-client.
> - For now I was trying to do it internally (attaching my code chunks)
> /** code from ari-client index.js */
> try {
> let dialedChannel = null;
> dialedChannel = await client.channels.originate({
> endpoint: "PJSIP/twilio0",
> app: ariConfig.appName,
> extension: "200",
> });
> log.warn("EXTEN DIALED");
> log.warn("EXTEN ANSWERED");
> } catch (err) {
> log.error(err, "DIALED ERROR");
> }
>
> /** configuration from extension.conf for extension(200)*/
> [from-internal]
> exten = 200,1,Answer()
> same = n,Wait(1)
> same = n,Playback(hello-world)
> same = n,Hangup()
> So can anyone guide me here. How it can be possibly done? or it is even possible using ari-client?
> Thanks in advance
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list