Hello everyone. I am having an issue with Asterisk and Callcentric. I’ve been looking at this for a while now and so far I have come up with a solution but I’m not sure if it’s the best one.
Asterisk version = 1.2.13/freePBX 2.0
OS = Gentoo
Asterisk is bound to local IP (bindaddr=)
Callcentric trunk (sip_additional.conf):
General settings (sip.conf):
Ok so first the problem. I am using Callcentric with DNS SRV (srvlookup=yes). What happens is that when the registration changes between Callcentric’s servers (alpha1.callcentric.com/126.96.36.199 and alpha2.callcentric.com/188.8.131.52), and the current resolved IP (184.108.40.206 for example) is different from the one Asterisk originally registers to (220.127.116.11 for example), incoming calls fail.
I have found that setting the context directive (context-from-pstn) in sip.conf allows all incoming a calls to work. I am basically wondering:
1 - If there is another way around this as I am told that setting the context in the [general] section allows anonymous incoming calls.
2 - If this solution is secure and if it isn’t can I secure it more?
3 - That I was told I could add my DID to the end of my register string (1777XXXXXX:@callcentric.com/DID) to secure my setup a bit more. But what if I order more DIDs from Callcentric. How do I get around this?
I was also recommended to add their IP block (permit=18.104.22.168/24) to my trunk or in sip.conf but this didn’t work.
I hope I explained my problem properly . I have been having a headache with this and dunno where to turn.