Asterisk is restricting the iaxmodem

2007-03-01
2013-04-05
  • Asif Javaid Chughtai

    Hi all
    God Bless Every Body...
    sir when i run "iaxmodem tty8"
    then now the Asterisk server is giving this message and

    *CLI>     -- Registered IAX2 'iaxmodem1' (AUTHENTICATED) at 127.0.0.1:4559

    Mar  1 11:28:33 NOTICE[2868]: chan_iax2.c:5762 update_registry: Restricting registration for peer 'iaxmodem1' to 60 seconds (requested 300)

    when i run " faxgetty tty8"

    and then i execute the command

    #sendfax -m -d root@0092425787608 ~/Desktop/doc15.ps

    then the messages on Asterisk server are

    Mar  1 11:42:21 NOTICE[2868]: chan_iax2.c:6882 socket_read: Rejected connect attempt from 127.0.0.1, who was trying to reach '0092425787608@'

    waiting for good responce as usuall...

    Asif Javaid

     
    • Lee Howard

      Lee Howard - 2007-03-01

      > Mar 1 11:28:33 NOTICE[2868]: chan_iax2.c:5762 update_registry: Restricting registration for peer
      > 'iaxmodem1' to 60 seconds (requested 300)

      So in your iaxmodem config file use "register 300" instead of "register 60"

      > Mar 1 11:42:21 NOTICE[2868]: chan_iax2.c:6882 socket_read: Rejected connect attempt from 127.0.0.1,
      > who was trying to reach '0092425787608@'

      This would seem that your iax.conf file in the context for the iaxmodem does not specify a context=default (or whatever) line.

       
    • Asif Javaid Chughtai

      hi sir, God Bless u by all means,,,

      i entered the "register 300" in iaxmodem config file with "ttyIAX0"..... here are my enteries in the this file...
      CountryCode:            92
      AreaCode:               42
      FAXNumber:              92425787608
      LongDistancePrefix:     1
      InternationalPrefix:    00
      DialStringRules:        etc/dialrules
      #RecvFileMode:          0600
      #LogFileMode:           0600
      #DeviceMode:            0600
      device                  /dev/tty8
      owner                   uucp:uucp
      mode                    660
      port                    4559
      register                300
      refresh                 300
      server                  127.0.0.1
      peername                iaxmodem1
      secret                  password
      cidname                 Asif Javaid
      cidnumber               123456789
      RingsBeforeAnswer       5
      SpeakerVolume           on
      GettyArgs               "-h %l dx_%s"
      LocalIdentifier         "IAXmodem"
      TagLineFont             etc/lutRS18.pcf
      TagLineFormat           "From %%l|%c|Page %%P of %%T"
      MaxRecvPages            10
      codec                   alaw

      but still asterisk give the same message:-

      Mar 1 11:28:33 NOTICE[2868]: chan_iax2.c:5762 update_registry: Restricting registration for peer 
      > 'iaxmodem1' to 60 seconds (requested 300) 

      and in iax.conf file of asterisk server i already entered <  context = default    > here u see this entry also....

      [iaxmodem1]
      type=peer
      callerid="iaxmodem"
      username=iaxmodem
      secret=password
      host=dynamic
      auth=md5
      disallow=all
      allow=all
      context=default

      but still it rejects the dialing and can't send the fax....

      i cant understant what's the thing i am missing....

      hope for a excellent guide line as usuall from your side...

      Asif Javaid

       
      • Lee Howard

        Lee Howard - 2007-03-09

        You need "register 60" to keep Asterisk from complaining.  But that's not why your calls are being rejected.

        What does the Asterisk CLI say when a call is being attempted?

         
    • Asif Javaid Chughtai

      sir Lee wrote:----

      you need "register 60" to keep Asterisk from complaining. But that's not why your calls                    are being rejected.
      What does the Asterisk CLI say when a call is being attempted?
      #######################################################################################################

      God Bless u sir,

      well sir, i make this entry "register 60" in the file iax.conf and iaxmodem configuration file tty8... are these the correct files for this entry ...  and still the messages on Asterisk CLI is this...

      ----------------------------------------------------------------------------------------------------
      Mar 12 12:23:08 NOTICE[3452]: chan_iax2.c:5762 update_registry: Restricting registration for peer 'iaxmodem1' to 60 seconds (requested 300)
      ----------------------------------------------------------------------------------------------------

      well sir whenever i make a call for fax the responce from Asterisk CLI is same as i posted last time which again written below:-

      ----------------------------------------------------------------------------------------------------
      Mar 12 12:18:05 NOTICE[3452]: chan_iax2.c:6882 socket_read: Rejected connect attempt from 127.0.0.1, who was trying to reach '0092425787608@'
      ----------------------------------------------------------------------------------------------------

      and the responce from iaxmodem is as follows:-

      ----------------------------------------------------------------------------------------------------
      [2007-03-12 12:18:00] Hanging Up
      [2007-03-12 12:18:03] Taking receiver off-hook.
      [2007-03-12 12:18:05] Dialing '0092425787608'
      [2007-03-12 12:18:05] Rejected call.
      [2007-03-12 12:18:05] Hanging Up
      [2007-03-12 12:18:33] Registration completed successfully.
      -----------------------------------------------------------------------------------------------------

      and in iaxmodem configuration tty8 in /etc/iaxmodem/tty8

      i also make an entry of
      ------------------------------------------------------------------------------------------------------
      codec alaw or codec ulaw
      ------------------------------------------------------------------------------------------------------

      and in asterisk    in /etc/asterisk/iax.conf

      i also make an entry of

      ------------------------------------------------------------------------------------------------------
      context default
      ------------------------------------------------------------------------------------------------------

      many many thank you sir for your cooperation....

      hoping for the best reply as usuall.

      Asif Javaid Chughtai.

       
      • Lee Howard

        Lee Howard - 2007-03-12

        Did you restart iaxmodem after making the "register 60" change?

        This error message:

        Mar 12 12:18:05 NOTICE[3452]: chan_iax2.c:6882 socket_read: Rejected connect attempt from 127.0.0.1, who was trying to reach '0092425787608@'

        Tells us that there is no dialplan context for your iaxmodem.  What does your [iaxmodem1] context say in iax.conf?  And are you doing 'iax2 reload' from the CLI any time you make changes in iax.conf?

         

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks