Changing the host of an IAX Provider

Hello.

I have a provider that I added using Trunks. I need to update the address of the host. However after I make the change and apply configuration changes, I can see that calls are still being routed to the old host that was in the PEER Details.

How do I force the server to use the new address rather than the old address.

I even tried a reboot and it still uses the old address

Thanks.

Did you remember to also change the address in your Register String?

Sanitize your trunk settings and post them for us.

happy to do so, but i don’t think the problem lies with the provider (VoipJet) or the trunk settings. In any case:

Peer details

type=peer
secret=mysecret
qualify=yes
notransfer=yes
auth=md5
host=test.voipjet.com

i used to have host=nac.voipjet.com, but now want to use test.voipjet.com instead. however calls are still getting placed on the old server. CLI shows:

“Call accepted by 66.246.72.34 (format ulaw)”

FYI
nac.voipjet.com resolves to 66.246.72.34
test.voipjet.com resolves to 208.72.186.69

If you have made all of the appropriate changes and it is still resolving to the same IP, there is a good chance that VoipJet is using the same server for both names. Try changing it to beer.voipjet.com and see if it breaks it. If it does, then this is on VoipJets end.

I would agree, but the servers resolve to two different IP addresses. So VoipJet is not using the same server for both names.

nac.voipjet.com resolves to 66.246.72.34
test.voipjet.com resolves to 208.72.186.69

More importantly…changing the host to beer.voipjet.com, the CLI still shows “call accepted by 66.246.72.34 (format ulaw)”

I think my asterisk box is caching the host address. Or something similar. Aside from a restart, what else can I do?

do you run a local dns server???
have you installed other packages

What happens when run this?
/etc/init.d/nscd stop

what does centos return when you dig those ??

.

this is outgoing only. there is no registration.

bubba: i don’t think i have nscd installed (how do i find out?).

/etc/init.d/nscd stop

-bash: /etc/init.d/nscd: No such file or directory