SIP - Domain Routing
2 posters
Page 1 of 1
SIP - Domain Routing
Hey guys,
We just started working on freebc and telcobridges products. We are implementing simple routing where calls from different domains (sip host) should go there predefined NAP.
We have SIP domains defined - doimain1.com and domain2.com and we have 2 separate NAPS for both domains with there registrars. Our UACs can register to there domain without a problem. But we are getting issues while routing SIP invite. In the routes section, I added 2 routes -
1. From_Open_NAP to NAP PBX1 # So that call coming from anywhere can go to NAP PBX1
2. From NAP PBX1 to registered 1
These 2 routes work when we have 1 SIP domain, but if we have to then it ends up sending INVITE for the second PBX to the PBX1 NAP because I have first NAP created which takes all the call. Now I need help from you guys that from where I can set up a filter for a called_sip_host and can route calls accordingly. I have read all the tutorials for SIP routing and also learned Ruby but I couldn't found the starting point.
Please help me and I will really appreciate that.
Thank you
We just started working on freebc and telcobridges products. We are implementing simple routing where calls from different domains (sip host) should go there predefined NAP.
We have SIP domains defined - doimain1.com and domain2.com and we have 2 separate NAPS for both domains with there registrars. Our UACs can register to there domain without a problem. But we are getting issues while routing SIP invite. In the routes section, I added 2 routes -
1. From_Open_NAP to NAP PBX1 # So that call coming from anywhere can go to NAP PBX1
2. From NAP PBX1 to registered 1
These 2 routes work when we have 1 SIP domain, but if we have to then it ends up sending INVITE for the second PBX to the PBX1 NAP because I have first NAP created which takes all the call. Now I need help from you guys that from where I can set up a filter for a called_sip_host and can route calls accordingly. I have read all the tutorials for SIP routing and also learned Ruby but I couldn't found the starting point.
Please help me and I will really appreciate that.
Thank you
sharadkumar- Number of Messages : 3
Point : 7
Registration Date : 2020-05-29
Re: SIP - Domain Routing
Hi
You need to regex to send calls to correct NAPs. For example; if you have domains a.com and b.com,you need to have 2 routes for OPEN NAP. One route remapped nap must be NAP A, the other route remapped NAP must be NAP B. And you need to defined the domains in the called and calling number area in the route.
Please check the following link for regex;
https://docs.telcobridges.com/tbwiki/Toolpack:_How_to_Use_RegEx_in_Remapped_Called_and_Calling_Number_Mask
You need to regex to send calls to correct NAPs. For example; if you have domains a.com and b.com,you need to have 2 routes for OPEN NAP. One route remapped nap must be NAP A, the other route remapped NAP must be NAP B. And you need to defined the domains in the called and calling number area in the route.
Please check the following link for regex;
https://docs.telcobridges.com/tbwiki/Toolpack:_How_to_Use_RegEx_in_Remapped_Called_and_Calling_Number_Mask
Re: SIP - Domain Routing
Thank you for the help. It's working now
sharadkumar- Number of Messages : 3
Point : 7
Registration Date : 2020-05-29
Similar topics
» Domain Rewriting
» How to forward the SIP from/to header domain to outgoing leg
» "Domain names are not yet supported in firewall"
» Single Domain FreeSBC -> Multi TenantPBX
» Switched Routing Question
» How to forward the SIP from/to header domain to outgoing leg
» "Domain names are not yet supported in firewall"
» Single Domain FreeSBC -> Multi TenantPBX
» Switched Routing Question
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum