How to route internal calls between Asterisk and CommuniGate

Discussion in 'CommuniGate Pro Support Forum' started by eric, Jul 11, 2006.

  1. eric Administrator

    Here are two quick examples explaining how to forward calls between an Asterisk extension (123) and a CommuniGate Pro extension (test). Do not enable forwarding on both the Asterisk and CGPro extensions at the same time or you will create a routing loop.

    Asterisk to CGPro

    1. In the Asterisk sip.conf file, add srvlookup=yes to the general section and reload the sip configuration. Asterisk will now use the DNS SRV records to find the CGPro server.
    [/list]2. Then in the extensions.conf file, replace SIP/123 references with SIP/test@mydomain.com and reload the extensions configuration.

    CGPro to Asterisk

    1. To forward calls for a CGPro extension to an Asterisk extension, go to the Incoming Rules section of the Calls tab for the test user.

    2. Check the Divert Calls checkbox, select the Always radio button, select the custom text radio button of the To field and enter the destination asterisk extension (123@asteriskbox.mydomain.com).

    3. Click the Update button and now all calls to the CommuniGate Pro extension will route to the asterisk extension.


    These examples assume that both systems can forward calls to each other without authenticating, as is generally the case when the systems are routing calls to local user accounts.