[Asterisk-Users] Registering via IAX2 succeeds, but bridging to the registered peer fails

Manuel mlist at manit.de
Wed Aug 27 02:32:35 MST 2003


Setup as follows: [private*] - Natting Router - [public*]

[private*] cannot register via IAX2 correctly while [public*] is running.
Status remains UNKNOWN even after minutes, calls from [public*] to
[private*] are not possible. 

Console output of [public*]:

| *CLI> iax2 show peers
| Name/Username    Host                 Mask             Port      Status
| iaxtest/iaxtest  (Unspecified)   (D)  255.255.255.255  0         UNKNOWN
|     -- Registered 'iaxtest' (AUTHENTICATED) at 217.187.160.28:4569
| *CLI> iax2 show peers
| Name/Username    Host                 Mask             Port      Status
| iaxtest/iaxtest  217.187.160.28  (D)  255.255.255.255  4569      UNKNOWN

[private*]:

| *CLI> iax2 show registry
| Host                  Username    Perceived             Refresh  State
| 62.75.137.248:4569    iaxtest     217.187.160.28:4569        60  Registered

BUT if I restart [public*], everything looks perfectly okay and calls work
well:

| Asterisk Ready.
| *CLI> iax2 show peers
| Name/Username    Host                 Mask             Port      Status
| iaxtest/iaxtest  217.187.160.28  (D)  255.255.255.255  4569      OK (72 ms)

Am I doing anything wrong or do I hit a bug?

Config of [private*]:

| # grep -v \^\; /etc/asterisk/iax.conf
| [general]
| bindaddr=192.168.11.1
| bandwidth=low
| disallow=g723.1         ; Hm...  Proprietary, don't use it...
| disallow=lpc10                  ; Icky sound quality...  Mr. Roboto.
| allow=gsm                       ; Always allow GSM, it's cool :)
| register => iaxtest:iax at 62.75.137.248
| tos=lowdelay
| [guest]
| type=user
| context=voip

Config of [public*]:

| [general]
| bindaddr=62.75.137.248
| bandwidth=low
| disallow=g723.1         ; Hm...  Proprietary, don't use it...
| disallow=lpc10                  ; Icky sound quality...  Mr. Roboto.
| allow=gsm                       ; Always allow GSM, it's cool :)
| tos=lowdelay
| [guest]
| type=user
| context=public
| [iaxtest]
| type=peer
| username=iaxtest
| context=voip
| auth=plaintext
| secret=iax
| host=dynamic
| qualify=yes     ; Make sure this peer is alive

Both * are compiled from latest CVS sources.

Tia

Manuel



More information about the asterisk-users mailing list