The online community for Microsoft Speech Server developers
Welcome to GotSpeech.NET Sign in | Help
in Search
CBrekeke Software

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 for both DIDs and outbound termination.

        <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"/

    *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 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 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.

        <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"/>

    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...


    Filed under:
View as RSS news feed in XML