Menu

asterisk configuration

Help
2005-10-13
2013-04-05
  • Eliott Spencer

    Eliott Spencer - 2005-10-13

    i am excited about the idea here and it think it will solve my problems with faxing.  i am stuck at not being able to register.  iaxmodem and asterisk are on the same server.  i am not sure what kind of entry to put in my iax.conf file.  my current config for iaxmodem is:

    device        /dev/ttyIAX
    port        4569
    refresh        300
    server        127.0.0.1
    peername    iaxmodem
    secret        password
    cidname        UCB fax
    cidnumber    8778227836
    codec        slinear

    and the output i get using this config is:

    Setting device = '/dev/ttyIAX'
    Setting port = 4579
    Setting refresh = 300
    Setting server = '127.0.0.1'
    Setting peername = 'iaxmodem'
    Setting secret = 'password'
    Setting cidname = 'UCB fax'
    Setting cidnumber = '8778227836'
    Setting codec = slinear
    Opened pty, slave device: /dev/pts/1
    Created /dev/ttyIAX symbolic link
    Tx-Frame Retry[010] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: REGREQ
       Timestamp: 00003ms  SCall: 24048  DCall: 00000 [127.0.0.1:4569]
       USERNAME        : iaxmodem
       REFRESH         : 300

    Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: REGREJ
       Timestamp: 00003ms  SCall: 00002  DCall: 24048 [127.0.0.1:4569]
       CAUSE           : Registration Refused

    Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
       Timestamp: 00003ms  SCall: 24048  DCall: 00002 [127.0.0.1:4569]
    Registration failed.

    i have tried setting up a simple entry in iax.conf:

    [iaxmodem]
    user = iaxmodem
    type=peer
    secret=password
    host=127.0.0.1

    and also tried:

    [iaxmodem]
    type=user
    secret=password
    host=127.0.0.1

    thanks for taking a look at this and thanks for the time spent on this much needed solution for all asterisk/hylafax users!

     
    • mimmus

      mimmus - 2005-10-14

      I have:

      [user]
      username=user
      type=friend
      secret=password
      qualify=no
      port=4569
      notransfer=yes
      host=dynamic
      context=from-internal

      and it works.

       
    • Lee Howard

      Lee Howard - 2005-10-16

      The REGREJ coming directly after the initial REGREQ indicates that the Asterisk server does not know about the 'iaxmodem' username or it does not appreciate the type entry.  Try using "type=friend" to see if that helps.  I think that "type=user" and "type=peer" require "host" entries to be present... not sure there.  I'm not an Asterisk expert.

       

Log in to post a comment.