<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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>
</body>
</html>