<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, I'm trying save in cdr_csv a gateway variable, but not work for me. This is the conf for sofia:<div><br></div><div><div><gateway name='XXXXX'></div><div><span style="font-size: 12pt;"> <variables></span></div><div> <variable name="gateway_id" value="3"/></div><div> </variables></div><div> </gateway></div></div><div><br></div><div>I'm trying to save variable from the dialplan with:</div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"><extension name="national" continue="true"></span></div><div><div><div> <condition field="destination_number" expression="^([98765]\d{8}|[23]\d{3})$" break="on-true"></div><div> <action application="set" data="exec_after_bridge_app=set gateway_id=\${sofia_gateway_data \${sip_gateway_name} var gateway_id}"/></div><div> <action application="bridge" data="sofia/gateway/${distributor(XXXX ${sofia(profile external gwlist down)})}/${destination_number}"/></div><div> </condition></div><div></extension></div></div><div><br></div><div>In console it seems to work, but not generate channel variable:</div></div><div><br></div><div><div>2016-01-11 14:45:57.802303 [DEBUG] switch_cpp.cpp:1103 sofia/external/xxxxx@xx.xx.xx.xx destroy/unlink session from object</div><div>EXECUTE sofia/external/965662225@78.136.81.1 set(exec_after_bridge_app=set gateway_id=${sofia_gateway_data ${sip_gateway_name} var gateway_id})</div><div>2016-01-11 14:45:57.802303 [DEBUG] mod_dptools.c:1498 SET sofia/external/xxxxx@xx.xx.xx.xx [exec_after_bridge_app]=[set gateway=]</div><div>EXECUTE sofia/external/965662225@78.136.81.1 bridge(sofia/gateway/XXXX/xxxxxx)</div><div>2016-01-11 14:45:57.802303 [DEBUG] switch_channel.c:1237 sofia/external/xxxxx@xx.xx.xx.xx EXPORTING[export_vars] [t38_passthru]=[true] to event</div><div>2016-01-11 14:45:57.802303 [DEBUG] switch_ivr_originate.c:2127 Parsing global variables</div><div>2016-01-11 14:45:57.802303 [NOTICE] switch_channel.c:1091 New Channel sofia/external/622073738 [56086a63-c6e9-4c11-b1a4-316165d3bc20]</div><div><b>2016-01-11 14:45:57.802303 [DEBUG] mod_sofia.c:4749 sofia/external/xxxxxx setting variable [gateway_id]=[1]</b></div></div><div><br></div><div><br></div><div>Is this possible?</div><div><br></div>                                            </div></body>
</html>