I want to allow inbound calls to an intermediary (proxy) server , then after certain criteria is met , simply redirect the call.
I want the extensions on an asterisk to have publicly available SIP URLs like
1234@mydomain.com would then pass to the asterisk server whether on 1234@mydomain.com:5061 or 1234@differentdomain.com
In the way mydomain.com need not be open to receive call from any IP (annon calls) only differentdomain.com would be open.
I need this to work with most any number sent , for instance ${EXTEN}@mydomain.com will always pass to ${EXTEN}@differentdomain.com , with some rules applied.
aside from running another instance of asterisk (which I am not sure how that would happen on the same machine) , this seems like a relatively simple thing but not sure where to go with it.
Any ideas?
Thanks Mark