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
begin:vcard
fn:intralanman
n:Chandler;Raymond
adr:;;630 Cooks Rd.;Farmville;VA;23901;United States
email;internet:[email protected]
tel;cell:+1.434.315.4132
x-mozilla-html:TRUE
version:2.1
end:vcard
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org