karlma / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Set caller id for follow me #909

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've received a number of strange requests where people just want the phone 
number that the follow me is set on to display as the caller id whenever 
receiving a call from that follow me. I had to manually do this in a dial plan 
but was wondering if you would consider adding it as a optional feature to the 
followme module

This is how I set it currently 

<extension name="Bandwidth2.10-11d" >
   <condition field="destination_number" expression="^\+?1?(\d{10})$" >
       <action application="set" data="sip_h_X-accountcode=${accountcode}" />
       <action application="set" data="sip_h_X-Tag=" />
       <action application="set" data="call_direction=outbound" />
       <action application="set" data="hangup_after_bridge=true" />
       <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}" />
<!--       <action application="set" 
data="effective_caller_id_number=${outbound_caller_id_number}" /> -->
       <action application="set" data="effective_caller_id_number=4195164486" />
       <action application="set" data="inherit_codec=true" />
       <action application="set" data="continue_on_fail=true" />
       <action application="bridge" data="sofia/gateway/b07ba60e-eb53-499a-b9dd-fe2b82338183/$1" />
   </condition>
</extension>

Original issue reported on code.google.com by scristop...@gmail.com on 9 Apr 2015 at 11:58

GoogleCodeExporter commented 9 years ago
This of course sets the outbound callerid for all calls to that DID -- I'm sure 
there is a more elegant way to do this but I am just not sure what it is.

Original comment by scristop...@gmail.com on 10 Apr 2015 at 12:21

GoogleCodeExporter commented 9 years ago
I believe this functionality already exists.  Enable it with the 
follow_me_cid_set permission on the desired group, and you'll see some new 
select boxes available on the Follow Me app (see attached screen capture).

Original comment by sevenate on 10 Apr 2015 at 3:00

Attachments:

GoogleCodeExporter commented 9 years ago
And, likewise, there are additional permissions to allow setting the Caller ID 
Name and Number prefix (follow_me_cid_name_prefix & 
follow_me_cid_number_prefix).  Additional fields will be displayed accordingly.

Original comment by sevenate on 10 Apr 2015 at 3:03

GoogleCodeExporter commented 9 years ago
Hey thanks, I didnt realize those options where in there. Works like a charm!

Original comment by scristop...@gmail.com on 10 Apr 2015 at 4:40