You can setting variables in a user directory entry (&lt;variable&gt; entries in &lt;variables&gt; section). Examples are on the Wiki.<div><br></div><div>They&#39;ll be set for incoming calls and would affect the behaviour.</div>

<div><br></div><div>If you&#39;re wanting to set them on the outbound channels based on destination, I&#39;d suggest configuring the destinations as sofia gateways. In the gateway definitions you can set variables to be set on incoming/outgoing/both calls via that gateway... setting outbound variables there should affect the bleg. Again, examples on the wiki.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On 26 November 2012 14:58, sparklezou <span dir="ltr">&lt;<a href="mailto:sparklezou@163.com" target="_blank">sparklezou@163.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>







<div style="LINE-HEIGHT:1.3;BORDER-RIGHT-WIDTH:0px;MARGIN:12px;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;BORDER-LEFT-WIDTH:0px" marginheight="0" marginwidth="0"><u></u>
<div><font color="#000000" size="3" face="Times">Hi Mod_spandsp 
developers,</font></div>
<div><font color="#000000" size="3" face="Times"></font> </div>
<div><font color="#000000" size="3" face="Times">Is it possible to develop Mod_spandsp 
like &quot;Mod_voicemail&quot;?</font></div>
<div><font color="#000000" size="3" face="Times"></font> </div>
<div><font color="#000000" size="3" face="Times">I means, set all of the related 
parameters in the user configure file. such as  
&quot;vm-enabled&quot;, &quot;vm-mailto&quot;, &quot;vm-mailfrom&quot;, and so on. Also the mail 
sender configuration, such as SMTP.</font></div>
<div><font color="#000000" size="3" face="Times"></font> </div>
<div><font color="#000000" size="3" face="Times">Something seemd the same, send &quot;voice 
message&quot; via eamil. Send &quot;fax file&quot; via email.</font></div>
<div><font color="#000000" size="3" face="Times"></font> </div>
<div><font color="#000000" size="3" face="Times">Thanks!</font></div>
<div><font color="#000000" size="3" face="Times"></font> </div>
<div align="left"><font color="#c0c0c0" face="Verdana">2012-11-26</font></div><font face="Verdana">
<hr style="WIDTH:122px;min-height:2px" align="left" size="2"><span class="HOEnZb"><font color="#888888">
</font></span></font><span class="HOEnZb"><font color="#888888">
<div><font color="#c0c0c0" face="Verdana"><span>sparklezou</span></font></div><u></u></font></span></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>