Interconnexting 2 asterisk via iax?

If you have one static address, you should only have register at one side; it is impossible to use register on the side opposite from the one with the dynamic address!

The user in the register should match the user in the iax2.conf on the remote system.

[quote=“david55”]If you have one static address, you should only have register at one side; it is impossible to use register on the side opposite from the one with the dynamic address!

The user in the register should match the user in the iax2.conf on the remote system.[/quote]

  1. Asterisk version is 11.11.0 in both side. If there is a bug let me know about the bug free version and where to get it. If there is no bug also let me know. And which version are you using or do you suggest to use?

  2. In remote asterisk also shows unable to get our ip address, skinny disabled, when I type ‘reload’ in CLI mode. What is it and how to solve it?

  3. How to enable the ports?

  4. May I get a sample iax.conf information for both home asterisk and remote asterisk.
    Likely, I like to register home asterisk (not static address) with the remote asterisk (real ip/ static address). If you provide a sample I may edit that likewise my configuration.

  5. In my home asterisk, ‘reload’ in CLI provides ---------------------

[Aug 27 16:30:51] NOTICE[1964]: app_queue.c:7819 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
[Aug 27 16:30:51] NOTICE[1964]: cel_custom.c:95 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Aug 27 16:30:51] NOTICE[1964]: chan_skinny.c:7736 config_load: Configuring skinny from skinny.conf
[Aug 27 16:30:51] NOTICE[1964]: pbx_ael.c:164 pbx_load_module: Starting AEL load process.
[Aug 27 16:30:51] NOTICE[1964]: pbx_ael.c:177 pbx_load_module: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 16:30:51] NOTICE[1964]: pbx_ael.c:180 pbx_load_module: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 16:30:51] NOTICE[1964]: pbx_ael.c:187 pbx_load_module: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 16:30:51] NOTICE[1964]: pbx_ael.c:192 pbx_load_module: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 16:30:51] NOTICE[1964]: pbx_ael.c:195 pbx_load_module: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.

How to remove all notice?

  1. In my remote asterisk, ‘reload’ in CLI provides -------------

[Aug 27 03:46:35] NOTICE[26349]: app_queue.c:7819 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
[Aug 27 03:46:35] NOTICE[26349]: cel_custom.c:95 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Aug 27 03:46:35] NOTICE[26349]: chan_skinny.c:7736 config_load: Configuring skinny from skinny.conf
[Aug 27 03:46:35] WARNING[26349]: chan_skinny.c:7765 config_load: Unable to get our IP address, Skinny disabled
[Aug 27 03:46:35] NOTICE[26349]: pbx_ael.c:164 pbx_load_module: Starting AEL load process.
[Aug 27 03:46:35] NOTICE[26349]: pbx_ael.c:177 pbx_load_module: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 03:46:35] NOTICE[26349]: pbx_ael.c:180 pbx_load_module: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 03:46:35] NOTICE[26349]: pbx_ael.c:187 pbx_load_module: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 03:46:35] NOTICE[26349]: pbx_ael.c:192 pbx_load_module: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 03:46:35] NOTICE[26349]: pbx_ael.c:195 pbx_load_module: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Aug 27 03:46:35] WARNING[26349]: pbx_dundi.c:4835 set_config: Unable to look up host ‘FAHI-116’
[Aug 27 03:46:35] NOTICE[26349]: res_config_ldap.c:1639 parse_config: No directory user found, anonymous binding as default.
[Aug 27 03:46:35] ERROR[26349]: res_config_ldap.c:1665 parse_config: No directory URL or host found.
[Aug 27 03:46:35] NOTICE[26349]: res_config_ldap.c:1599 reload: Cannot reload LDAP RealTime driver.

How to remove all notice,warning and error?

  1. I tried by disabling registration in remote asterisk (rael ip/static address) puting ; before register. and reloading both from CLI, still provide the same result.
  1. If there is a bug, it may well not already be known, so there may be no fix. Just use the default port numbers.

  2. Disable the channel in modules.conf (or simply ignore the errror).

  3. Fix the bug.

  4. I don’t use IAX, but, with the exception of the possible bug, one can generalise from SIP. There must be 1000s of examples of how to configure sip.conf.

  5. Ignore them (some may go if you disable the modules).

  6. Ignore them

  7. The register should be removed from the one that doesn’t have the host=; this indicates a fundamental lack of understanding of what register does. The main reason you are getting the result is that the register is being sent to the default port, whereas the other side is listening on a differnt port. Obviously not being able to resolve pia means it can’t send a register towards that.

[quote=“david55”]1) If there is a bug, it may well not already be known, so there may be no fix. Just use the default port numbers.

  1. Disable the channel in modules.conf (or simply ignore the errror).

  2. Fix the bug.

  3. I don’t use IAX, but, with the exception of the possible bug, one can generalise from SIP. There must be 1000s of examples of how to configure sip.conf.

  4. Ignore them (some may go if you disable the modules).

  5. Ignore them

  6. The register should be removed from the one that doesn’t have the host=; this indicates a fundamental lack of understanding of what register does. The main reason you are getting the result is that the register is being sent to the default port, whereas the other side is listening on a differnt port. Obviously not being able to resolve pia means it can’t send a register towards that.[/quote]

I do not understand what you are trying say from 7. Can you explain more clearly, please. My remote asterisk has a static ip, so do I need to remove register from it or from my home asterisk having dynamic ip?

The host address is the other terminal ip, to which trying to connect?

Can you clarify the default ports and how to set them?

As a new user I can not fix bug… so it would be helpful if you mansion a bug free version. I have the access to remove the existing asterisk version and re-install other asterisk version. What version are you using.

And also I need to iax2 registration, help me from you view-point.

Now it provides -----------------

Connected to Asterisk 11.11.0 currently running on localhost (pid = 3136)
[Aug 29 14:58:47] NOTICE[3158]: chan_iax2.c:12359 __iax2_poke_noanswer: Peer ‘nil’ is now UNREACHABLE! Time: 0

When I put restart using service asterisk restart and run asterisk -r.(in my home asterisk)

What can I do now?

I find this from debuging information

CAUSE : Registration Refused
CAUSE CODE : 29

What is it ? and how to solve it?

Done atlast …

Thank you everyone for your help.