Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
bgColor#f8f8f8

Table of Contents
outlinetrue
stylenone

MyNetFone.com.au

Gateway config

Incoming and outgoing calls work. In conf/sip_profiles/outbound/ create a mynetfone.xml file with the following contents:

...

Update: Found this reference to FusionPBX and setting the Outbound Caller ID FreeSWITCH User mailimg list posting

Dialplan Examples

To get started, the following dial plans will suffice for capturing local and national calls. Please note that these XML snippets were taken from a FusionPBX system and some of the actions may not apply. Important bits are the 'condition field' expression and the bridge action. Refer: Wikipedia - Telephone Numbers in Australia

GTW: Please note that I built these from virtually no experience with Regular Expressions. I would appreciate feedback/suggestions for improvements to these!

Local/State numbers (Missing area/country codes)

NOTE: The bridge will have the Country Code and (in this example) the NSW Area Code appended.

...

Code Block
languagexml
 <extension name="MyNetFone-local_fixed_line" >
   <condition field="destination_number" expression="^([2-9]{1}[0-9]{7})$">
       <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
       <action application="set" data="call_direction=outbound"/>
       <action application="set" data="hangup_after_bridge=true"/>
       <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
       <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
       <action application="bridge" data="sofia/gateway/MNF-Primary/612$1"/>
   </condition>
</extension>

National numbers (Area codes supplied)

NOTE: Will the bridge will have the Country Code appended.

Code Block
languagexml
<extension name="MyNetFone-national_fixed_line" >
   <condition field="destination_number" expression="^(0|61|\+61)?([2?|3-9]{1}[0-9]{8})$">
       <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
       <action application="set" data="call_direction=outbound"/>
       <action application="set" data="hangup_after_bridge=true"/>
       <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
       <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
       <action application="bridge" data="sofia/gateway/MNF-Primary/61$2"/>
   </condition>
</extension> 

References

FreeSWITCH Wiki - Home PBX Example

...