[Freeswitch-users] altering callerid

Brian May brian at microcomaustralia.com.au
Sun Feb 21 20:37:10 PST 2010


On 22 February 2010 15:05, Russell Mosemann >>
>> http://wiki.freeswitch.org/wiki/Regular_Expression
>> http://wiki.freeswitch.org/wiki/Dialplan_XML
>
> And
>
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set

So would something like this work?

  <extension name="oztel_cid" continue="true">
    <condition field="destination_number" expression="^(12345678)$"/>
    <condition field="caller_id_number"
expression="^61([2-9]\d\d\d\d\d\d\d\d)$" break="on-true">
      <action application="set" data="effective_caller_id_number=0$1"/>
    </condition>
    <condition field="caller_id_number" expression="^(\d+)$" break="on-true">
      <action application="set" data="effective_caller_id_number=$1"/>
    </condition>
  </extension>
  <extension name="oztel_cid">
    <condition field="destination_number" expression="^(12345678)$">
      <action application="set" data="domain_name=$${domain}"/>
      <action application="transfer" data="2000 XML default"/>
    </condition>
  </extension>

-- 
Brian May <brian at microcomaustralia.com.au>




More information about the FreeSWITCH-users mailing list