[asterisk-users] how to register IAX user without password for any user

Tim H. Panton thp at westhawk.co.uk
Sat Mar 29 10:53:54 CDT 2008


Do your callees have known IP addresses ?
If not, how does Asterisk know where to send the call?

Normally this works because the callee has registered with asterisk,
so asterisk has an IP address to associate with the name (or number).

Without this asterisk can't know where to send the packets!

Tim.
----- Original Message -----
From: "Mian M Asif" <asif44pk at gmail.com>
To: "sanjay rajdev" <sanjay.rajdev at featherstoneinformatics.com>, asterisk-users at lists.digium.com
Sent: Friday, March 28, 2008 7:03:40 PM (GMT) Europe/London
Subject: [asterisk-users] how to register IAX user without password for any user

Dear Sanjay,
Sorry sanjay i miss to explain completely. My PC2PC mean is
Dialer2Dialer i want to allow call between Dialer with out any
registry and authentication through IAX.
so i need to setup Asterisk accept calls from any user and users can
call to each other without any password and registration.

please help how can i configure Asterisk using IAX in this regards.

thanks,
Asif

Message: 9
Date: Fri, 28 Mar 2008 20:54:51 +0530 (IST)
From: sanjay.rajdev at featherstoneinformatics.com
Subject: Re: [asterisk-users] how to register IAX user without
       password
To: Asterisk Users Mailing List - Non-Commercial Discussion
       <asterisk-users at lists.digium.com>
Message-ID: <16916992.1331206717891511.JavaMail.root at mail>
Content-Type: text/plain; charset=utf-8

Create a User and a Peer on both the machines for each other.

e.g  IAX.conf on PCa
[pca2pcb]
type=peer
host=[IP OF pcb]
username=pca2pcb
serect=pca2pcb12345
qualify=yes


[pcb2pca]
type=user
context=default
auth=md5
secret=pcb2pca12345
deny=0.0.0.0/0.0.0.0
permit=[IP of pcb]
qualify=yes


ON PCb do the reverse in iax.conf
[pcb2pca]
type=peer
host=[IP OF pca]
username=pcb2pca
serect=pcb2pca12345
qualify=yes


[pca2pcb]
type=user
context=default
auth=md5
secret=pca2pcb12345
deny=0.0.0.0/0.0.0.0
permit=[IP of pca]
qualify=yes


NOW in Your extensions.conf you can use as
On PCa
exten=>_.,1,Dial(IAX2/pca2pcb/${EXTEN})
exten=>_y.,1,Dial(IAX2/pca2pcb/${EXTEN})
exten=>_a.,1,Dial(IAX2/pca2pcb/${EXTEN})


and on PCb
exten=>_.,1,Dial(IAX2/pcb2pca/${EXTEN})
exten=>_y.,1,Dial(IAX2/pcb2pca/${EXTEN})
exten=>_a.,1,Dial(IAX2/pcb2pca/${EXTEN})

Let me know if this works.

Regards,
Sanjay.



hi,
  i want to call PC2PC between to IAX client without authentication i
  want to allow every user to use PC2PC no any password required. Please
  let me know what i have need to do in IAX.conf or any other file to
  allow any user to call Pc2Pc.

  My IAX.conf
  [guest]
  type=user
  context=default
  callerid="Guest IAX User"

  My extensions.conf
  [default]
  exten=>_.,1,Dial(IAX2/${EXTEN})
  exten=>_y.,1,Dial(IAX2/${EXTEN})
  exten=>_a.,1,Dial(IAX2/${EXTEN})

  below is my Asterisk console logs which i see after making call.

  Mar 28 03:25:43 NOTICE[2855]: chan_iax2.c:5144 register_verify: No
  registration for peer 'aliadvcommnet' (from 203.99.57.80)
  Mar 28 03:25:55 NOTICE[2855]: chan_iax2.c:5144 register_verify: No
  registration for peer 'aliadvcommnet' (from 203.99.57.80)
  Mar 28 03:25:55 NOTICE[2855]: chan_iax2.c:6910 socket_read: Rejected
  connect attempt from 203.99.57.80, who was trying to reach
  'jaffaradvcommnet@'
  Mar 28 03:26:11 NOTICE[2855]: chan_iax2.c:5144 register_verify: No
  registration for peer 'j' (from 203.99.57.80)
  advcomm6*CLI> iax2 show channels
  Channel               Peer             Username    ID (Lo/Rem)  Seq
  (Tx/Rx)  Lag      Jitter  JitBuf  Format
  (None)                203.99.57.80     (None)      00004/15232
  00001/00001  00000ms  -0001ms  0000ms  unknow
  (None)                203.99.57.80     jaffaradvc  00005/15233
  00004/00004  00000ms  -0001ms  0000ms  unknow
  (None)                203.99.57.80     (None)      00006/18423
  00001/00001  00000ms  -0001ms  0000ms  unknow
  3 active IAX channels
  Mar 28 03:26:28 DEBUG[2855]: chan_iax2.c:4959 raw_hangup: Raw Hangup
  203.99.57.80:53262, src=0, dst=15233
  Mar 28 03:26:28 DEBUG[2855]: chan_iax2.c:4959 raw_hangup: Raw Hangup
  203.99.57.80:53262, src=0, dst=15233
  Mar 28 03:26:28 DEBUG[2855]: chan_iax2.c:4959 raw_hangup: Raw Hangup
  203.99.57.80:53262, src=0, dst=15233
  Mar 28 03:26:55 NOTICE[2855]: chan_iax2.c:5144 register_verify: No
  registration for peer 'aliadvcommnet' (from 203.99.57.80)
  Mar 28 03:27:11 NOTICE[2855]: chan_iax2.c:5144 register_verify: No
  registration for peer 'jaffaradvcommnet' (from 203.99.57.80)

  i am very thankful if some one help me in this regards,

 i am getting Registration Refused error when i debug on console.
 please tell me how can i registration every user without any username
 and password and these user can make calls between each other.
 i am very thankful if any body help me in this regards,

 advcomm6*CLI>iax2 debug
 Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
 Timestamp: 00003ms  SCall: 00002  DCall: 09398 [203.99.57.80:47641]
 Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ
 Timestamp: 00003ms  SCall: 09398  DCall: 00000 [203.99.57.80:47641]
  USERNAME        : aliadvcommnet
  REFRESH         : 60

 Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: ACK
 Timestamp: 00003ms  SCall: 00002  DCall: 09398 [203.99.57.80:47641]
 Tx-Frame Retry[001] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: REGREJ
 Timestamp: 00002ms  SCall: 00002  DCall: 09398 [203.99.57.80:47641]
  CAUSE           : Registration Refused
  CAUSE CODE      : 29

 regards,
 Asif

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list