How to set CID Name Prefix to inbound routes?

910 views
Skip to first unread message

Ali Nebi

unread,
May 9, 2012, 12:09:48 PM5/9/12
to 2600hz...@googlegroups.com
Hello,

I'm new in using bluebox and freeswitch (i'm using freepbx yet) and I'm looking for a feature that is available in FreePBX. It is called 'CID Name Prefix' option available in Inbound Routes inside FreePBX. This option allow to specify a prefix that will be added to Caller ID Name like 'Sales: Djon Frak' where 'Sales: ' is the prefix. I see that BlueBox miss this feature and I'm trying to figure out how to get this working. After several tests I saw that I can define for numbers that I wish to have prefixes inside /usr/local/freeswitch/conf/dialplan/bluebox_dialplan.xml following lines: 

<action application="export" data="effective_caller_id_name=CE-${caller_id_name}"/>
<action application="export" data="effective_caller_id_number=CE-${caller_id_number}"/>

These 2 add prefix that I wish to see in calls to the number where I have defined them. The problem now is that when I do changes in numbers on BlueBox administration, then my additional lines are removed.

So I have 3 questions.

1. How to tell BlueBox to set those 2 lines for the number so in changes not be overrided and to be in dial plan xml file?

2. Is there an easy way this functionality to be added to bluebox?

3. Do you know another way to get this functionality in BlueBox?

I'm waiting for your reply.

Regards,
Ali

Darren Schreiber

unread,
May 11, 2012, 10:47:00 AM5/11/12
to 2600hz...@googlegroups.com
Hi Ali,
You'd need to add this to the XML manually in the dialplan – we don't yet support prefixing in bluebox. Sorry :-(

That said, you can work around the removal of your changes simply by creating a separate extension block that matches the same phone number you want to do this on.

I.e.:

<extension name="my_custom_changes" continue="true">
<condition field="destination_number" expression="^1234567890$">
<action application="export" data="effective_caller_id_name=CE-${caller_id_name}"/>
<action application="export" data="effective_caller_id_number=CE-${caller_id_number}"/>
</condition>
</extension>

…. other bluebox dialplan entries

<extension name="my_custom_changes" continue="true" bluebox_id="123">
<condition field="destination_number" expression="^1234567890$">
<action application="bridge" and other standard stuff>
</condition>
</extension>

You would add the top block (at the top of the dialplan) and we would leave it alone. Then you can continue using the interface as normal.

--
Darren Schreiber
CEO / Co-Founder


 visit: www.2600hz.com
 tel: 415-886-7901
Reply all
Reply to author
Forward
0 new messages