Define SIP Trunk between CGRateS and Kazoo for outbound calls FREESWITCH in public.xml:
please note that outbound calls from kazoo are sent directly from freeswitch, so remember to consider all freeeswitch nodes public IPs, otherwise you wont be able to call from all FS nodes. In sip_profiles/internal/example.xml
in default.xml (in this case we always set cgr_reqtype as prepaid, if you want different ways to bill you’ll need to do different context)
PLEASE NOTE: bypass_media=true is optional, suggest it in order to process only the SIP flow (Best performances, Less latency) >
KAZOO Define a carrier with Server: CGRATES_IP:5080 Options>Pass Realm in INVITE checked
Define SIP Trunk between CGRateS and Kazoo for inbound calls FREESWITCH Define a separate context (es: inbound) and put in the xml file (don’t forget to set the context property in the inbound gateway file):
KAZOO Allow the freeswitch+cgrates ip in the ACL (look to https://2600hz.atlassian.net/wiki/display/docs/Connecting+via+SIP+Trunks ) sup -necallmgr ecallmgr_maintenance allow_carrier CGRateS [your_freeswitch_ip] sup -necallmgr ecallmgr_maintenance reload_acls