<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>&lt;gateway name='XXXXX'&gt;</div><div><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;variables&gt;</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;variable name="gateway_id" &nbsp;value="3"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/variables&gt;</div><div>&nbsp;&lt;/gateway&gt;</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;">&lt;extension name="national" continue="true"&gt;</span></div><div><div><div>&nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^([98765]\d{8}|[23]\d{3})$" break="on-true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="exec_after_bridge_app=set gateway_id=\${sofia_gateway_data \${sip_gateway_name} var gateway_id}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" data="sofia/gateway/${distributor(XXXX ${sofia(profile external gwlist down)})}/${destination_number}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div><div>&lt;/extension&gt;</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&nbsp;[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&nbsp;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>