[Freeswitch-users] Outbound caller id for a specific gateway?

Rupa Schomaker rupa at rupa.com
Wed Apr 20 00:31:13 MSD 2011


On Tue, Mar 22, 2011 at 2:49 AM, Dmitry Bely <dmitry.bely at gmail.com> wrote:
> On Tue, Mar 22, 2011 at 8:02 AM, Michael Collins <msc at freeswitch.org> wrote:
>> How about set the caller id in vars.xml:
>> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
>> Set it to the most common value and then you only have to do something in
>> bridges and originates that need a CID different from what you set in
>> vars.xml...
>
> I have a number of gateways that require different CIDs. So there is
> no "most common" value. I have managed to make a proper dialplan but
> originate is still tedious... I just wonder if there is more clean way
> (something like caller-id-in-from gateway parameter)

mod_lcr can manipulate your CID on a per route (gateway) basis.  It
may be overkill for just playing with CID but at some point you are
going to want to conditionally route based on rates and ... well, then
you already have mod_lcr setup and configured. :)


-- 
-Rupa



More information about the FreeSWITCH-users mailing list