arnaudcoquelet / fusionpbx

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

Call Forward via Loopback endpoint #804

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem description also posted by me as comment to fixed issue:
https://code.google.com/p/fusionpbx/issues/detail?id=726

Found another problem with call_forward.lua and call_forward.php when these 
generates dial_string for extension and we want forward call to mobile number 
via loopback.
We need place certain domain_name after "forward_all_destination" - otherwise 
we will get error:

[CS_ROUTING] [NO_ROUTE_DESTINATION]

Wiki: https://wiki.freeswitch.org/wiki/Loopback_endpoint

In my case the problem appears when we trying reach agent of call center with 
CF settings - and no problem when we simple dialing user extension from another 
local extension.

Original from call_forward.lua (uses for changing CF settings from dialplan):

        dial_string = dial_string .. "loopback/"..forward_all_destination;

Change to:

        dial_string = dial_string .. "loopback/"..forward_all_destination"/"..domain_name;

Original from call_forward.pfp (uses for editing CF settings from GUI):

        $dial_string .= "loopback/".$this->forward_all_destination;

Change to:

        $dial_string .= "loopback/".$this->forward_all_destination."/".$_SESSION['domain_name'];

Original issue reported on code.google.com by blessen...@gmail.com on 6 Jan 2015 at 11:37

GoogleCodeExporter commented 9 years ago
You must be running some outdated code, call forward includes the domain name 
without any changes.

Original comment by nysoluti...@gmail.com on 6 Jan 2015 at 1:59

GoogleCodeExporter commented 9 years ago
Updated just today from GUI.

Version:    3.7.1
Operating System:   Linux fusionpbx 2.6.32-31-pve #1 SMP Thu Jul 24 06:44:16 
CEST 2014 x86_64 GNU/Linux
Uptime:     16:06:10 up 54 days, 20:09, 1 user, load average: 0.01, 0.05, 0.07
Date:   Tue, 06 Jan 2015 16:06:10 +0200 

Original comment by blessen...@gmail.com on 6 Jan 2015 at 2:07

GoogleCodeExporter commented 9 years ago
In revision r8031 you now have the choice to use Bridge or Loopback for Call 
forward.

Original comment by ewsamu...@gmail.com on 22 Mar 2015 at 1:55