the problem is:
incoming connections all connect to my ivr and they are handling as they should
outgoing connections (9X.) gives this errors:
-- Executing [8<dialed-number>@X:1] Dial("SIP/Y", "SIP/<dialed-number>@<sip-trunk-ip>") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/<dialed-number>@<sip-trunk-ip>
-- Got SIP response 480 "Temporarily Unavailable" back from <sip-trunk-ip>:5060
-- SIP/<sip-trunk-ip>-00003d9a is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
in “core show channels” I see nothing weird, but in “sip show channels” I see 16 occurrences of the following:
<sip-trunk-ip> (None) Call ID (nothing) No Rx: OPTIONS <guest>
The remote side responded with 480 “Temporarily Unavailable”. Why that is you would likely have to ask them, or if you provided the configuration in sip.conf we may be able to answer as well.
Those aren’t stuck calls. They are the resulting of sending an OPTIONS request to check that the remote side is available and to check latency. It is enabled using the “qualify=yes” line you have in your configuration.