GotSpeech.NET

The online community for Microsoft Speech Server developers
Welcome to GotSpeech.NET Sign in | Help
in Search
SoFi Self-Service Contact Center

FreeSWITCH International Dial Plans

Last post 12-07-2010, 11:57 PM by bit. 0 replies.
Sort Posts: Previous Next
  •  12-07-2010, 11:57 PM 11103

    FreeSWITCH International Dial Plans


    For those of you who deal with calls outside of the US and Canada; here are some example dial plans which appear to work.  We currently use Voip.ms for both DIDs and outbound termination.

    Inbound_DID1.xml
    <include>
        <extension name="Inbound_DID1">
            <condition field="network_addr" expression="^XXX\.XXX\.XXX\.XXX$"/
            <condition field="destination_number" expression="(\d+)"> 
                <action application="bridge" data="sofia/internal/XXXX@XX.XX.XX.XX:5060;transport=tcp"/
            </condition> 
        </extension>
    </include>

    *Note: the slash at the end of the first Condition acts as a logical AND operator in conjunction with the second Condition; if either fail the Action is ignored.  Also the destination number expression "(\d+)" supports a variable length phone number.  The network_addr Condition is used because Voip.ms sends the ANI if available and not the DID as the destination_number so we never know what to expect in that field whereas with Voip.ms we always know what the inbound IP addy is based on which host server location we provisioned the DID with.  Depending on your implementation the destination_number condition may be optional.

    Outbound_Voip.xml
    <include>
        <extension name="Voip">
            <condition field="network_addr" expression="^XXX\.XXX\.XXX\.XXX$"/> 
            <condition field="destination_number" expression="(\d+)$">
                <action application="set" data="effective_caller_id_number=${inbound_caller_id_number}"/>
                <action application="set" data="effective_caller_id_name=${inbound_caller_id_name}"/>
                <action application="bridge" data="sofia/gateway/Voip/$1"/>
            </condition>
        </extension>
    </include>

    Brian Campbell's FreeSWITCH blog provides a simple path and solution to an evil and complicated task.  And much thanks to Marshall again for all the help he has provided the village idiot...

    Cheers.


    bit
    Filed under:
View as RSS news feed in XML