Askozia Forums
May 17, 2012, 02:29:44 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Possible IAX Bug  (Read 986 times)
tRr
Jr. Member
**

Karma: 0
Posts: 35


View Profile
« on: October 07, 2010, 06:38:41 pm »

I am having a problem using a voip.ms IAX connection. Outbound calls work fine. Inbound calls generate the following error message with the default Askozia configuration (this is with the latest version of Askozia, earlier versions had the same problem too):

Code:
asterisk[1360]: NOTICE[1403]: chan_iax2.c:10399 in socket_process: Host 64.120.22.242 failed to authenticate as voipms 

I have traced the problem to the text within the square brackets of iax.conf:

Code:
; voipms - incoming 
[subaccount_username] 
type=user 
auth=plaintext 
... 

By default Askozia places the IAX username of the account in the square brackets. This works fine for another provider of mine (and with CallWithUs when they offered IAX) but it seems like voip.ms only accepts "[voipms]" which I found in their configuration samples. When I changed the above from the automatically filled in IAX username to "voipms" incoming calls then worked as expected.

I don't know much about the nuts and bolts of Asterisk but since other providers work I'm thinking this is a voip.ms bug. I thought I would ask the experts just to make sure before I file a report with them.
Logged
giovanni.v
Hero Member
*****

Karma: 53
Posts: 670


View Profile
« Reply #1 on: October 08, 2010, 06:20:04 am »

By default Askozia places the IAX username of the account in the square brackets. This works fine for another provider of mine (and with CallWithUs when they offered IAX) but it seems like voip.ms only accepts "[voipms]" which I found in their configuration samples. When I changed the above from the automatically filled in IAX username to "voipms" incoming calls then worked as expected.

I think the askozia configuration is correct. Usually for an incominq call/connection if a username  is provided asterisk will start to authenticate that call finding a user definition with a section name matching the provided username.
You already found the problem... your provider is using an arbitrary name in incoming calls instead of your real username, this is not forbidden but quite unusual for that setup.

Ask your provider to check if possible to change this. If not the only option (other than manual hacking) is to plan a patch providing an option to allow to configure a different incoming username.
Logged
tRr
Jr. Member
**

Karma: 0
Posts: 35


View Profile
« Reply #2 on: October 08, 2010, 02:29:37 pm »

Thanks giovanni.

I have used about 4 different IAX providers and this is the only one that does not work. I imagine this  also would cause issues if I were to have two IAX accounts with the same provider?
Logged
giovanni.v
Hero Member
*****

Karma: 53
Posts: 670


View Profile
« Reply #3 on: October 10, 2010, 07:36:42 pm »

I imagine this  also would cause issues if I were to have two IAX accounts with the same provider?

I agree.  Sad
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.053 seconds with 19 queries.