How about you set the channel variable in the gateway definition for the outbound direction:<br><a href="http://wiki.freeswitch.org/wiki/Sofia.conf.xml#Variables">http://wiki.freeswitch.org/wiki/Sofia.conf.xml#Variables</a><br>
<br>That way it will be automatically set on all calls going through that gateway without you needing to change your dialplan.<br><br>-Steve<br><br><br><br><br><div class="gmail_quote">On 22 March 2011 07:49, Dmitry Bely <span dir="ltr"><<a href="mailto:dmitry.bely@gmail.com">dmitry.bely@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tue, Mar 22, 2011 at 8:02 AM, Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>> wrote:<br>
> How about set the caller id in vars.xml:<br>
> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/><br>
> Set it to the most common value and then you only have to do something in<br>
> bridges and originates that need a CID different from what you set in<br>
> vars.xml...<br>
<br>
</div>I have a number of gateways that require different CIDs. So there is<br>
no "most common" value. I have managed to make a proper dialplan but<br>
originate is still tedious... I just wonder if there is more clean way<br>
(something like caller-id-in-from gateway parameter)<br>
<div><div></div><div class="h5"><br>
> -MC<br>
><br>
> On Sat, Mar 19, 2011 at 4:27 AM, Dmitry Bely <<a href="mailto:dmitry.bely@gmail.com">dmitry.bely@gmail.com</a>> wrote:<br>
>><br>
>> My VoIP provider requires a specific caller ID set for an outbound<br>
>> call otherwise the call is rejected. Currently I set it just before<br>
>> bridge<br>
>><br>
>> <action application="set" data="effective_caller_id_name=..."/><br>
>> <action application="bridge" data="..."/><br>
>><br>
>> But it's tedious as there is a number of bridge commands in the<br>
>> dialplan and I still have to explicitly specify the caller id for<br>
>> "originate" command in the FreeSWITCH console. Is it possible to force<br>
>> an outbound caller id on a gateway basis?<br>
<br>
- Dmitry Bely<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
</div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>