IAX2 Rejecting calls after IP change Help Please

This setup is working fine until I change the network it is on both are public IP address with no firewall
When Server B calls Server A is rejecting the call. Any clues as to what is going on with my setup Thanks

Server A
IAX.conf

[username]
type=user
auth=md5
host=dynamic
secret=password
username=username
context=demo
callerid="Asterisk Server"
accountcode=pres12

Extensions.confexten =>
[globals]
Harris1=Zap/g1
Harris2=Zap/g2

[demo]
exten => _433XXXX,1,Dial(${Harris2}/${EXTEN:-7},30,r)
exten => _437XXXX,1,Dial(${Harris2}/${EXTEN:-7},30,r)
exten => _788XXXX,1,Dial(${Harris3}/${EXTEN:-7},30,r)
exten => _789XXXX,1,Dial(${Harris3}/${EXTEN:-7},30,r)
exten => _886XXXX,1,Dial(${Harris4}/${EXTEN:-7},30,r)
exten => _889XXXX,1,Dial(${Harris4}/${EXTEN:-7},30,r)
exten => _493XXXX,1,Dial(${Harris5}/${EXTEN:-7},30,r)
exten => _671XXXX,1,Dial(${Harris5}/${EXTEN:-7},30,r)

Server B
IAX.conf

[username]
type=peer
host=dynamic
auth=md5
secret=password
username=username

Extensions.conf

[globals]

IAXINFO=username:password
Harris1=IAX2/${IAXINFO}@myserverip

[demo]

exten => _237XXXX,2,Dial(${Harris1}/${EXTEN:-7}@demo,30,r)
exten => _433XXXX,1,Dial(${Harris1}/${EXTEN:-7},30,r)
exten => _437XXXX,1,Dial(${Harris1}/${EXTEN:-7},30,r)
exten => _788XXXX,1,Dial(${Harris1}/${EXTEN:-7},30,r)
exten => _789XXXX,1,Dial(${Harris1}/${EXTEN:-7},30,r)
exten => _886XXXX,1,Dial(${Harris1}/${EXTEN:-7},30,r)
exten => _889XXXX,1,Dial(${Harris1}/${EXTEN:-7},30,r)

Hi From what you have posted they are not registered against each other

have a look at cyber-cottage.co.uk/wiki/ind … o_Asterisk
Its simple and dirty but works

Ian

[quote=“ianplain”]Hi From what you have posted they are not registered against each other

have a look at cyber-cottage.co.uk/wiki/ind … o_Asterisk
Its simple and dirty but works

Ian[/quote]

I have not had a chance to try your solution yet but I wanted to thank you for time and effort. I was not using the register statement as it would not work before but I did correct that I had the type statements backwards.