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 -
- From_Open_NAP to NAP PBX1 # So that call coming from anywhere can go to NAP PBX1
- 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