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

Adding more details on how to place calls using Asterisk #37

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

javexed
Copy link

@javexed javexed commented Nov 11, 2015

No description provided.

@@ -52,6 +52,22 @@ Note that if you are using Asterisk, the format is slightly different. The examp
AHN> Adhearsion::OutboundCall.originate 'SIP/user1'
</pre>

As well, if you need to place calls out into the outside world, you may get an error message
such as "I don't know how to authenticate..." if you try to call directly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to include an example of the exact error message? I admit I'm not familiar with this one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ben,

Here is what I did from the AHN console
Adhearsion::OutboundCall.originate 'IAX2/[email protected]'

And Asterisk gave back:
chan_iax2.c:11243 socket_process_helper: I don't know how to authenticate
4443 to 184.75.215.106

Johannes

On Wed, Nov 11, 2015 at 10:28 AM, Ben Klang [email protected]
wrote:

In views/docs/console.md
#37 (comment)
:

@@ -52,6 +52,22 @@ Note that if you are using Asterisk, the format is slightly different. The examp
AHN> Adhearsion::OutboundCall.originate 'SIP/user1'

+As well, if you need to place calls out into the outside world, you may get an error message
+such as "I don't know how to authenticate..." if you try to call directly.

Would it be possible to include an example of the exact error message? I
admit I'm not familiar with this one.


Reply to this email directly or view it on GitHub
https://github.com/adhearsion/adhearsion-website/pull/37/files#r44544376
.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is where we get into a grey area. The problem you're seeing comes from the fact that you dialed an IAX URI, rather than a preconfigured peer. If you had a peer definition in iax.conf and called it by name (eg, dial "IAX2/4443@peer"), you would not have received that error. The same would be true of SIP, though it's very probable that the error message is different. My feeling on this is that we either need to go into (potentially a lot) more detail regarding best practices for Asterisk config, or we need to refer the reader to documentation that explains these nuances. I lean toward the latter, if it can be found.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah.. that's better.... let me update.

On Wed, Nov 11, 2015 at 12:48 PM, Ben Klang [email protected]
wrote:

In views/docs/console.md
#37 (comment)
:

@@ -52,6 +52,22 @@ Note that if you are using Asterisk, the format is slightly different. The examp
AHN> Adhearsion::OutboundCall.originate 'SIP/user1'

+As well, if you need to place calls out into the outside world, you may get an error message
+such as "I don't know how to authenticate..." if you try to call directly.

So this is where we get into a grey area. The problem you're seeing comes
from the fact that you dialed an IAX URI, rather than a preconfigured peer.
If you had a peer definition in iax.conf and called it by name (eg, dial
"IAX2/4443@peer"), you would not have received that error. The same would
be true of SIP, though it's very probable that the error message is
different. My feeling on this is that we either need to go into
(potentially a lot) more detail regarding best practices for Asterisk
config, or we need to refer the reader to documentation that explains these
nuances. I lean toward the latter, if it can be found.


Reply to this email directly or view it on GitHub
https://github.com/adhearsion/adhearsion-website/pull/37/files#r44562073
.

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

Successfully merging this pull request may close these issues.

2 participants