I’ve downloaded a recent version of the FreePBX distro (3.211.63-6-x86_64-Full-1363361091) and installed it. I have a Polycom 501 connected and have created an extension. I am able to place outbound calls (local and LD) via a Cisco 2821. However, I’m unable to recieve inbound calls from this gateway. When I place a call, it connects a play the msg “The number you have dialed is not in service”. I feel good about the gateway configuration as it is working fine with an older FreePBX installation (2.8.1).
I’m afraid that I know very little about debugging Asterisk. Any suggestions on how I should go about troubleshooting this issue?
Perhaps you need an inbound route that ties DID 1274 to extension 1274 if your context is from-pstn, perhaps you need the tie trunk have context from-internal (or better yet, a subset of from-internal) to have access to those endpoints.
I changed the option “Allow Anonymous Inbound SIP calls” to ‘Yes’ and I can now receive calls. After reading the description of this option, I’m still not sure why this worked. If it worked because it allowed calls from “an unknown IP source”, I’d like to know what more I need to do to make the router a known source. It does show up in the output of ‘sip show peers’. If it worked because it allows URI dialing, then I am left to wonder if any SIP peer could qualify as a non-anonymous source.
I’d really appreciate any insight into this. If there is some additional data you’d like to see, please let me know.
I named the User Context “CiscoRouterInbound” and added the following to the User Details -
I then changed “Allow Anonymous Inbound SIP Calls” to ‘No’. Inbound calls are now back to being answered with “The number you have dialed is not in service”. Obviously, I missed something. I’d appreciate any other suggestions/guidance.
The Cisco 2821 shows up as “Unmonitored” in the output of ‘sip show peers’. Is this the reason the Asterisk says “Received incoming SIP connection from unknown peer to 1274” when it receives an inbound call from this router? Does the peer have to be registered (or whatever status “OK” means in ‘sip show peers’) before Asterisk will match the incoming source IP with a peer configuration? Any guidance on how to go about registering a Cisco router (IOS 12.4.22T) with Asterisk?