<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
Sorry! The 2nd "NOT WORK" example was meant to show setting
"effective_caller_id_number", not "origination_caller_id_number".
So the correct dialplan is as follows.<br>
<br>
<extension name="domestic.example.com"><br>
<condition field="${toll_allow}" expression="domestic"/><br>
<condition field="destination_number"
expression="^(\d{11})$"><br>
<action application="set"
data="origination_caller_id_number=11111111"/> <br>
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/><br>
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/><br>
<action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/><br>
<!--action application="bridge"
data="sofia/gateway/idt/$1"/--> <font color="#990000"><===
NOT WORK</font><br>
<!--action application="bridge"
data="[effective_caller_id_number=111111]sofia/gateway/idt/$1"/-->
<font color="#990000"><=== NOT WORK</font><br>
<action application="bridge"
data="[origination_caller_id_number=111111]sofia/gateway/idt/$1"/>
<font color="#990000"><=== WORKS!!</font><br>
</condition><br>
</extension><br>
<br>
Cheers.<br>
<br>
Jun<br>
<br>
On 12/29/2013 9:25 AM, Jun Sun wrote:<br>
</div>
<blockquote cite="mid:52C05B14.4090802@junsun.net" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
I have a very simple call plan to allow internal extension to call
external PSTN numbers. See below.<br>
<br>
<extension name="domestic.example.com"><br>
<condition field="${toll_allow}" expression="domestic"/><br>
<condition field="destination_number"
expression="^(\d{11})$"><br>
<action application="set"
data="origination_caller_id_number=11111111"/> <br>
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/><br>
<action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/><br>
<action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/><br>
<!--action application="bridge"
data="sofia/gateway/idt/$1"/--> <font color="#990000"><===
NOT WORK</font><br>
<!--action application="bridge"
data="[origination_caller_id_number=111111]sofia/gateway/idt/$1"/-->
<font color="#990000"><=== NOT WORK</font><br>
<action application="bridge"
data="[origination_caller_id_number=111111]sofia/gateway/idt/$1"/>
<font color="#990000"><=== WORKS!!</font><br>
</condition><br>
</extension><br>
<br>
There a couple of things strange here:<br>
<br>
1. I have to put origination_caller_id_number inside data field of
"bridge" application in order for the dialing out to happen. Why
putting it outside as channel variable does not work?<br>
<br>
2. Actually because bridge command is for leg-B, really it should
be "effective_caller_id_number" not
"origination_caller_id_number". Is that right?<br>
<br>
I'm using IDT express as SIP carrier. I don't know if they changed
something or I changed configuration in freeswitch. Now it seems I
have to set origination_caller_id_number if I want to use IDT for
outbound calls.<br>
<br>
I'd really appreciate your help.<br>
<br>
Cheers.<br>
<br>
Jun<br>
</blockquote>
<br>
</body>
</html>