[OpenSIPS-Users] Best way to Route calls from pstn to registered pbx

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Nov 14 15:30:09 UTC 2022


Hi Wadii,

For the calls received from the TRUNKs (so via address table IPs), use 
the db_aliases module to translate from DID to user and after that do 
lookup("location").

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
   https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/

On 11/12/22 4:47 PM, Wadii ELMAJDI | Evenmedia wrote:
> Hello ,
>
> I would like to know what would be the best method for such use case :
> My opensip box will play a sip proxy ROLE, handling inbound calls fom 
> pstn to my clients (B2BUA PBXs).
> My clients will have to register as some of them dont have a static ip.
>
> Client (Asterisk) (A) <==== Registration =====> OPEN SIP (B)  
> <===========> PSTN Trunk (C)
>
> Call sequence is from C to A.
>
> What i'm thinking is the best method, is to create my clients as 
> subscribers with my server IP As the domain in order to skip the 
> outbound_proxy config for my clients.
>
> The PSTN trunk is using ip auth, i will just have to add its ip on my 
> address table.
>
> My question is  how am i supposed to route calls to my clients based 
> on the called number ?
> The only module that does routing rule processing with priorities, 
> prefix etc... is DR, but it only route calls to gateways.
>
> The alias_db is what is supposed to be used to route calls to 
> subscribers, but it has no prefix, that means if i have 500Did , i 
> have to add each one of them to dbaliases table.
>
> Thanks for the help.
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221114/39f84390/attachment.html>


More information about the Users mailing list