David Knell wrote:
Hi Ash,
It's the former. Here's a snippet from a dialplan of ours - this takes calls with a specific prefix from a specific IP address and forwards them to a particular carrier:
<extension name="sample"> <condition field="network_addr" expression="^10\.1\.1\.12$" />
i'd personally use the acl stuff here instead of manually putting regexes in a dialplan to match ip addresses.
<condition field="destination_number" expression="^301(.*)$"> <action application="set" data="bypass_media=true" /> <action application="set" data="effective_caller_id_name=$ {caller_id_number}" /> <action application="set" data="effective_caller_id_number=$ {caller_id_number}" /> <action application="bridge" data="sofia/gateway/att/$1"/>
and depending on what exactly you want your sbc to do, lcr here might work better for you. -Ray