<p>Also use the dialplan application &quot;set&quot; to set that before you do the actual bridge not with the bridge (personal preference).</p>
<div class="gmail_quote">On Apr 9, 2012 4:55 PM, &quot;Brian Foster&quot; &lt;<a href="mailto:bdfoster@endigotech.com">bdfoster@endigotech.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>When you set the variable or param in the gateway configuration it overrides variables set elsewhere in the call. Try removing the variable in the gateway configuration and setting that in the dialplan before bridging the call.</p>


<p>-BDF</p>
<div class="gmail_quote">On Apr 9, 2012 3:05 PM, &quot;Nestor A Diaz&quot; &lt;<a href="mailto:nestor@tiendalinux.com" target="_blank">nestor@tiendalinux.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Guys,<br>
<br>
I want to know if is possible to change the sip_from_user at the dialplan.<br>
<br>
My current pstn sip provider needs the caller id to be set to one of the<br>
numbers assigned to me, this way i can place the call using the<br>
following options at the dialplan:<br>
<br>
&lt;extension name=&quot;local&quot;&gt;<br>
&lt;condition field=&quot;${toll_allow}&quot; expression=&quot;local&quot;/&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^9(\d{7})$&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=12345678&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;sofia/profile/$<a href="mailto:1@sipprovider.com" target="_blank">1@sipprovider.com</a>&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
The above works, also if i define a gateway as the following:<br>
<br>
&lt;include&gt;<br>
&lt;gateway name=&quot;myprovider&quot;&gt;<br>
&lt;param name=&quot;from-user&quot; value=&quot;12345678&quot;/&gt;<br>
&lt;param name=&quot;proxy&quot; value=&quot;<a href="http://sipprovider.com" target="_blank">sipprovider.com</a>&quot;/&gt;<br>
&lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;<br>
&lt;param name=&quot;ping&quot; value=&quot;25&quot;/&gt;<br>
&lt;/gateway&gt;<br>
&lt;/include&gt;<br>
<br>
and place the call using:<br>
<br>
&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/myprovider/$1&quot;/&gt;<br>
<br>
the above woks too, but i am tied to the from_user i have defined.<br>
<br>
So i wanted to use be able to change the from_user dinamically according<br>
to my needs at the dialplan level, is that possible ? i have tried the<br>
following but it doesn&#39;t work<br>
<br>
&lt;action application=&quot;bridge&quot;<br>
data=&quot;{sip_from_user=12345678}sofia/gateway/myprovider/$1&quot;/&gt;<br>
<br>
Any suggestions ? or is not possible to define a gateway and change some<br>
of its parameters in the dialplan ? i just want to use the ping<br>
functionality and have something more organized.<br>
<br>
Slds.<br>
<br>
--<br>
Nestor A. Diaz<br>
Ingeniero de Sistemas<br>
Tel. <a href="tel:%2B57%201-485-3020%20x%20211" value="+5714853020" target="_blank">+57 1-485-3020 x 211</a><br>
Cel. <a href="tel:%2B57%20316-227-3593" value="+573162273593" target="_blank">+57 316-227-3593</a><br>
Tel. SIP: <a href="mailto:sip%3A211@tiendalinux.com" target="_blank">sip:211@tiendalinux.com</a><br>
Email/MSN: <a href="mailto:nestor@tiendalinux.com" target="_blank">nestor@tiendalinux.com</a><br>
<a href="http://www.tiendalinux.com/" target="_blank">http://www.tiendalinux.com/</a><br>
Bogota, Colombia<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div>
</blockquote></div>