Outbound caller id for a specific gateway?
My VoIP provider requires a specific caller ID set for an outbound call otherwise the call is rejected. Currently I set it just before bridge <action application="set" data="effective_caller_id_name=..."/> <action application="bridge" data="..."/> But it's tedious as there is a number of bridge commands in the dialplan and I still have to explicitly specify the caller id for "originate" command in the FreeSWITCH console. Is it possible to force an outbound caller id on a gateway basis? - Dmitry Bely
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... -MC On Sat, Mar 19, 2011 at 4:27 AM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
My VoIP provider requires a specific caller ID set for an outbound call otherwise the call is rejected. Currently I set it just before bridge
<action application="set" data="effective_caller_id_name=..."/> <action application="bridge" data="..."/>
But it's tedious as there is a number of bridge commands in the dialplan and I still have to explicitly specify the caller id for "originate" command in the FreeSWITCH console. Is it possible to force an outbound caller id on a gateway basis?
- Dmitry Bely
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tue, Mar 22, 2011 at 8:02 AM, Michael Collins <msc@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)
-MC
On Sat, Mar 19, 2011 at 4:27 AM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
My VoIP provider requires a specific caller ID set for an outbound call otherwise the call is rejected. Currently I set it just before bridge
<action application="set" data="effective_caller_id_name=..."/> <action application="bridge" data="..."/>
But it's tedious as there is a number of bridge commands in the dialplan and I still have to explicitly specify the caller id for "originate" command in the FreeSWITCH console. Is it possible to force an outbound caller id on a gateway basis?
- Dmitry Bely
On Tue, Mar 22, 2011 at 2:49 AM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
On Tue, Mar 22, 2011 at 8:02 AM, Michael Collins <msc@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
How about you set the channel variable in the gateway definition for the outbound direction: http://wiki.freeswitch.org/wiki/Sofia.conf.xml#Variables That way it will be automatically set on all calls going through that gateway without you needing to change your dialplan. -Steve On 22 March 2011 07:49, Dmitry Bely <dmitry.bely@gmail.com> wrote:
On Tue, Mar 22, 2011 at 8:02 AM, Michael Collins <msc@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)
-MC
On Sat, Mar 19, 2011 at 4:27 AM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
My VoIP provider requires a specific caller ID set for an outbound call otherwise the call is rejected. Currently I set it just before bridge
<action application="set" data="effective_caller_id_name=..."/> <action application="bridge" data="..."/>
But it's tedious as there is a number of bridge commands in the dialplan and I still have to explicitly specify the caller id for "originate" command in the FreeSWITCH console. Is it possible to force an outbound caller id on a gateway basis?
- Dmitry Bely
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Wow, that's really helpful, I'm going to try it for setting specific codecs (absolute_codec_string). On Wed, Apr 20, 2011 at 4:14 AM, Steven Ayre <steveayre@gmail.com> wrote:
How about you set the channel variable in the gateway definition for the outbound direction: http://wiki.freeswitch.org/wiki/Sofia.conf.xml#Variables
That way it will be automatically set on all calls going through that gateway without you needing to change your dialplan.
-Steve
On 22 March 2011 07:49, Dmitry Bely <dmitry.bely@gmail.com> wrote:
On Tue, Mar 22, 2011 at 8:02 AM, Michael Collins <msc@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)
-MC
On Sat, Mar 19, 2011 at 4:27 AM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
My VoIP provider requires a specific caller ID set for an outbound call otherwise the call is rejected. Currently I set it just before bridge
<action application="set" data="effective_caller_id_name=..."/> <action application="bridge" data="..."/>
But it's tedious as there is a number of bridge commands in the dialplan and I still have to explicitly specify the caller id for "originate" command in the FreeSWITCH console. Is it possible to force an outbound caller id on a gateway basis?
- Dmitry Bely
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Dmitry Bely
-
Michael Collins
-
Nicolas Brenner
-
Rupa Schomaker
-
Steven Ayre