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

sanjay.rajdev at featherstoneinformatics.com sanjay.rajdev at featherstoneinformatics.com
Fri Mar 28 10:24:51 CDT 2008


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.



----- Original Message -----
From: "Mian M Asif" <asif44pk at gmail.com>
To: asterisk-users at lists.digium.com
Sent: Friday, March 28, 2008 8:04:08 PM (GMT+0530) Asia/Calcutta
Subject: [asterisk-users] how to register IAX user without password

 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