We are trying to implement multi-tenant asterisk solution with bandwidth.com as sip provider.
Every company(tenant) will have a bandwidth.com account which has all the DID numbers corresponding to that company.
As per the discussion in the below links, there will be separate context in extensions.conf for each company :
Outgoing calls can be configured easily.
Problem is in directing incoming calls to its corresponding context based on DID.
An alternative can be getting the value from cache. We already have sorcery cache for pjsip realtime.
But we don’t know how to retrieve data from this cache through AGI script.
Question: How to retrieve data from sorcery cache? Is the above method preferred? If not,what are the alternate solutions?
Hi @johnkiniston
Thanks for the response. But can you please elaborate on static dialplan and what the external script should be doing? As we are not aware how to implement.