<p>Also use the dialplan application "set" 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, "Brian Foster" <<a href="mailto:bdfoster@endigotech.com">bdfoster@endigotech.com</a>> 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, "Nestor A Diaz" <<a href="mailto:nestor@tiendalinux.com" target="_blank">nestor@tiendalinux.com</a>> 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>
<extension name="local"><br>
<condition field="${toll_allow}" expression="local"/><br>
<condition field="destination_number" expression="^9(\d{7})$"><br>
<action application="set" data="effective_caller_id_number=12345678"/><br>
<action application="bridge" data="sofia/profile/$<a href="mailto:1@sipprovider.com" target="_blank">1@sipprovider.com</a>"/><br>
</condition><br>
</extension><br>
<br>
The above works, also if i define a gateway as the following:<br>
<br>
<include><br>
<gateway name="myprovider"><br>
<param name="from-user" value="12345678"/><br>
<param name="proxy" value="<a href="http://sipprovider.com" target="_blank">sipprovider.com</a>"/><br>
<param name="register" value="false"/><br>
<param name="ping" value="25"/><br>
</gateway><br>
</include><br>
<br>
and place the call using:<br>
<br>
<action application="bridge" data="sofia/gateway/myprovider/$1"/><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't work<br>
<br>
<action application="bridge"<br>
data="{sip_from_user=12345678}sofia/gateway/myprovider/$1"/><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>