I was looking at your conf again and did not notice first time.
You have 2 stanza with the same header and the same context, one peer and one user
I am sure you were wanting one for inbound and one for outbound and of course those need to be called in the dial string from extentions
But with 2 the same… that is a problem How do you dial out one of them ? it is by name
??? exten => _1700XXXXXX,1,Dial(IAX2/11004/${EXTEN}) ???
Asterisk acts on 1st match everytime. Can’t have 2
[11004]
type = peer
context = from-hhus
secret = xxxxx
host = dynamic
encryption = no
insecure = port,invite <<<<<<<<<<<<<<<< not sure this is valid in our older version “VERY”
requirecalltoken = no
qualify = yes
trunk = yes
[11004]
type = user
context = from-hhus
username = 11004
secret = xxxxx
encryption = no
insecure = port,invite
requirecalltoken = no
trunk = yes
callerid = HamshackHotline
Why not start this over…
Fully describe the trunk IN & OUT
Perhaps this makes sense ?
[out]
type=peer
username=user
secret=xxxx
peercontext=radiosomething <<<<this should forward to the peer context . Be sure to do both ends.
host=100.100.100.100
nat=no
canreinvite=yes
trunk=yes
[in]
type=user
host=200.200.200.200 < qualifying host will be on this ip
notransfer=yes
disallow=all
allow=ulaw
trunk=yes
secret=XXXX
context= radioxxxx
If you do not use IP-based access control for all of your type=user entries, and you expect your asterisk installation to be reasonably secure, your iax.conf file must contain a “guest” entry with no secret specified.
When a remote system connects to yours, it can connect without specifying a username (that is, connect anonymously). If you have a type=user section that does not specify a secret, Asterisk will allow them to connect with any secret specified in the file. This means that if you have a large number of type=user entries but no guest entry in iax.conf, someone only has to guess any one of your secrets to connect to your server as that user.
Add a last entry in iax.conf with no password to force anonymous calls into a specific context that goes nowhere.
your dialstring in ext
exten => _1700XXXXXX,1,Dial(IAX2/out/${EXTEN})
Am I gettn anywhere ? LOL