arnaudcoquelet / fusionpbx

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

Feature Request: Option for "alternative mobiel number in extensions" #902

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

A customer recently wanted a way to call an alternative number for extensions 
like a speed dial for that persons mobile.  I ended up using the 
"emergency_caller_id_number" field and we put everyones mobile number in that, 
then created a dialplan with the following important bits

action  set speed_dial=${user_data $1@some.domain.is.here var 
emergency_caller_id_number}             35  
action  set call_direction=outbound             40  
action  set hangup_after_bridge=true                45  
action  set continue_on_fail=true               50  
action  set effective_caller_id_name=${outbound_caller_id_name}             55  
action  set effective_caller_id_number=${outbound_caller_id_number}             60  
action  bridge  sofia/external-blah/${speed_dial}@x.x.x.x               75  

So the customer can just dial *ext and it will call the alternative number

I am hoping an extra field can be added to extensions like "alternative_number" 
and then a dialplan that will call the alternative number, I can see depending 
on extension numbering system this could overlap with other plans, but as long 
as it  set as something easy to remember *11ext or such that would be fine.

Just thinking this might be useful for other people as an inbuilt feature, 
maybe a few others can chime in on what they think.

Original issue reported on code.google.com by natecons...@gmail.com on 1 Apr 2015 at 11:11

GoogleCodeExporter commented 9 years ago
Sorry it missed the first line of dialplan..

condition   destination_number   ^\*(\d{2,7})       5

Original comment by natecons...@gmail.com on 1 Apr 2015 at 11:12