Callmanager to asterisk trunk

How to I configure asterisk to allow only calls from callmanager ip, but not from any other ip addresses?

thx

This is how I did it (from examples I found on the web). This may not be the best/right way to do it.

in sip.conf

under [general]
context=bogon-calls

in extensions.conf add the following context

[bogon-calls]
exten=>_.,1,Congestion

This will tell any call from unspecified sip peers to send a congestion message back to the originator. You will also get a complaint from asterisk about the _. in your logfile. This is because _. matches any dialed pattern and it is typically a no-no to do this.

thx

I will try it