Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1

Hi Folks!

Im a VOIP newbie with problems. Whenever I try to make a call with 4 numbers (which is configured to be an external call), the message “Everyone is busy/congested” shows up, which in this case is not true. The weirdest thing is that my internal calls (or the calls with only 3 digits) are working just fine.

my outgoing peer

host=172.21.50.30
port=5060
username=xxx
secret=xxx
type=peer
canreinvite=no
context=from-trunk
disallow=all
allow=ulaw
dtmfmode=auto
fromdomain=172.21.50.30
insecure=very
qualify=yes

I noticed this: “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1”, which makes me think that im having problems with my outbound route. Anyway I need help, Tks!

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/Out 6084/8535
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:20] NoOp(“SIP/999-00000044”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1”) in new stack
– Executing [[email protected]:21] Goto(“SIP/999-00000044”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Set(“SIP/999-00000044”, “RC=1”) in new stack
– Executing [[email protected]:2] Goto(“SIP/999-00000044”, “1,1”) in new stack
– Goto (macro-dialout-trunk,1,1)
– Executing [[email protected]:1] Goto(“SIP/999-00000044”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/999-00000044”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/999-00000044”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 1 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/999-00000044”, “CALLERID(number)=999”) in new stack
– Executing [[email protected]:10] Macro(“SIP/999-00000044”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/999-00000044”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/999-00000044”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/999-00000044”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/999-00000044”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
– <SIP/999-00000044> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
– <SIP/999-00000044> Playing ‘pls-try-call-later.gsm’ (language ‘en’)
– Executing [[email protected]:5] Congestion(“SIP/999-00000044”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/999-00000044’ in macro ‘outisbusy’
== Spawn extension (from-internal, 8535, 10) exited non-zero on ‘SIP/999-00000044’
– Executing [[email protected]:1] Macro(“SIP/999-00000044”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/999-00000044”, “1?endmixmoncheck”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] NoOp(“SIP/999-00000044”, “End of MIXMON check”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/999-00000044”, “1?nomeetmemon”) in new stack
– Goto (macro-hangupcall,s,28)
– Executing [[email protected]:28] NoOp(“SIP/999-00000044”, “End of MEETME check”) in new stack
– Executing [[email protected]:29] GotoIf(“SIP/999-00000044”, “1?noautomon”) in new stack
– Goto (macro-hangupcall,s,34)
– Executing [[email protected]:34] NoOp(“SIP/999-00000044”, “TOUCH_MONITOR_OUTPUT=”) in new stack
– Executing [[email protected]:35] GotoIf(“SIP/999-00000044”, “1?noautomon2”) in new stack
– Goto (macro-hangupcall,s,41)
– Executing [[email protected]:41] NoOp(“SIP/999-00000044”, “MONITOR_FILENAME=”) in new stack
– Executing [[email protected]:42] GotoIf(“SIP/999-00000044”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,45)
– Executing [[email protected]:45] GotoIf(“SIP/999-00000044”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,48)
– Executing [[email protected]:48] GotoIf(“SIP/999-00000044”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,50)
– Executing [[email protected]:50] AGI(“SIP/999-00000044”, “hangup.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
– <SIP/999-00000044>AGI Script hangup.agi completed, returning 0
– Executing [[email protected]:51] Hangup(“SIP/999-00000044”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on ‘SIP/999-00000044’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/999-00000044’
brunon

No your trunk is not set up correctly. No idea what you are trying to do. You set a username and a secret then you set the peer as insecure, makes no sense.

I am just trying to call a number which is located in an outside domain. Do you have any suggestion or a link?

I am really lost then. Why do you have an outgoing peer?

Make sure you have anonymous SIP and allow guests turned on to call SIP URI’s