Asterisk Loop Dial with IAX active

Hi,

with 2 asterisk servers connected with IAX protocol, is generated a loop of calls:

> Launching Dial() on SIP/192.168.0.70-00000225
** – Got SIP response 486 “Busy Here” back from 192.168.0.70:5060**
** – SIP/192.168.0.70-00000229 is busy**
** – Got SIP response 486 “Busy Here” back from 192.168.0.90:5060**
** – SIP/192.168.0.90-00000227 is busy**
** – Channel SIP/192.168.0.90-00000218 left ‘simple_bridge’ basic-bridge <0dbc70b4-e487-4875-a760-2648edfda035>**
** – Channel SIP/9999-00000219 left ‘simple_bridge’ basic-bridge <0dbc70b4-e487-4875-a760-2648edfda035>**
** == Spawn extension (REP, 9999, 3) exited non-zero on ‘SIP/192.168.0.90-00000218’**
** – Executing [h@REP:1] Dial(“SIP/192.168.0.90-00000218”, “SIP/h”)**
** – Caller hung up before dial.**
** == Spawn extension (REP, h, 1) exited non-zero on ‘SIP/192.168.0.90-00000218’**
** > 0x74507e38 – Strict RTP learning after remote address set to: 192.168.0.70:14034**
** – SIP/192.168.0.70-00000228 answered**
** > Launching Dial() on SIP/192.168.0.70-00000228**

IAX config:

[XXXXX]
type=friend
username=…
secret=…
auth=plaintext
host=…
context=fromiax
peercontext=fromiax
qualify=yes
transfer=yes

Help, Help! :triumph:

The call start with “Call files” :

Channel: SIP/xxx@192.168.0.70
Codecs: ulaw
MaxRetries: 1
RetryTime: 1
WaitTime: 120
Context: REP 01
Extension: s
Priority: 1
Callerid: xxx
Account: asterisk
AlwaysDelete: yes
Archive: no
Application: Dial

EXTENSIONS:

  1. IAX
    fromiax _. 1 Goto server1,${EXTEN},1

  2. DIAL
    out _. 1 Dial IAX2/serv2/${EXTEN:2}

After the restart of Asterisk:

== Using SIP RTP CoS mark 5
– Called 203@192.168.0.80
> 0x19df3b0 – Strict RTP learning after remote address set to: 192.168.0.70:10468
– SIP/192.168.0.70-000000f4 answered
> Launching Dial() on SIP/192.168.0.70-000000f4
– Attempting call on Local/00000@all for application Dial() (Retry 1)
– Called 00000@all
– Executing [00000@all:1] Answer(“Local/00000@all-00000201;2”, “”)
– Local/00000@all-00000201;1 answered
> Launching Dial() on Local/00000@all-00000201;1
== Spawn extension (all, 00000, 1) exited non-zero on ‘Local/00000@all-00000201;2’
– Attempting call on SIP/103@192.168.0.70 for application Dial() (Retry 1)
== Using SIP RTP CoS mark 5
– Called 103@192.168.0.70
– Attempting call on SIP/203@192.168.0.80 for application Dial() (Retry 1)
> 0x73d03cd8 – Strict RTP learning after remote address set to: 192.168.0.80:15006
– SIP/192.168.0.80-000000f5 answered
> Launching Dial() on SIP/192.168.0.80-000000f5
== Using SIP RTP CoS mark 5
– Called 203@192.168.0.80
– Attempting call on Local/00000@all for application Dial() (Retry 1)
– Called 00000@all
– Executing [00000@all:1] Answer(“Local/00000@all-00000202;2”, “”)
– Local/00000@all-00000202;1 answered
> Launching Dial() on Local/00000@all-00000202;1

From console “queue show” return “No queues”