Unable to create channel

In my PEER Details, I am having the following line:


This result in the impossibility to place a call. The log file says:

Unable to create channel of type ‘SIP’ (cause 20 - Unknown)

When removing &dynamic from the PEER Details, I can place calls, but incoming calls fail.

It sounds to me, that my Asterisk box is trying to connect to a host called “dynamic”, in stead of sip.everlove.dk.

How can I fix this problem?

You need a separate peer for inbound and outbound.

The inbound will be dynamic and the outbound will have the specific host entry.

You can’t mix static and dynamic in the same peer.

I’ve done that… Actually, I was having it in that way before I decided to make only ONE trunk for both in- and outbound. But even when I make TO trunks, it won’t work… I can choose: Inbound OR Outbound. Inbound works only when I add “dynamic” to my Outbound Trunk, and Outbound works only when I remove “dynamic”.