Mobile-Twinning app

Status
Not open for further replies.

sdavison

New Member
Feb 9, 2021
3
0
1
47
Has anyone been able to use this? Im bit confused on the instruction given, installed app, forward call to number I have on mobile-twinning app but not sure what else needs to be done, such as a dialplan. Any info would be appreciated.
 

mydigitalself

Member
Oct 20, 2019
71
7
8
It works great and my clients regularly use it.

Set a followme or forward to a mobile DID. Then on the phone put a DSSKey that's *662

Call comes in, gets forwarded to a cell, and then press *662 to grab it back to the desk phone.
 
  • Like
Reactions: KonradSC

gflow

Active Member
Aug 25, 2019
261
28
28
You can also do it the other way around as well. You are on call on your deskphone you can call a destination that you have configured to point to *662 and it will pull the call from your deskphone to mobile.
 

s2svoip

Member
Dec 9, 2019
252
7
18
44
Had not heard of this, I gave this a try but @mydigitalself can you confirm what you did with

Go to Dialplan -> Destinations. Map a Destination to the mobile-twinning dialplan number. (*662) (spells MOB for "mobile")

1614732005758.png
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,384
364
83
Do you really need the inbound route if you have copied the 390_mobile_twinning.xml file to your /var/www/fusionpbx/app/dialplans/resources/switch/conf/dialplan directory?
 

sdavison

New Member
Feb 9, 2021
3
0
1
47
Mine did not work without creating an inbound rule even though the 390_mobile_twinning.xml file was copied to that path.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,384
364
83
Mine did not work without creating an inbound rule even though the 390_mobile_twinning.xml file was copied to that path.
Yes,
I have realised that the upgrade instructions do not include Add Defaults - there may be a good reason, but I have put in a pull request with an update. App Defaults (amongst other things) reads the xml files in /var/www/fusionpbx/app/dialplans/resources/switch/conf/dialplan and makes sure they get picked up into the dialplan.

I also noticed that 390_mobile_twinning.xml did not have the order="390" attribute in the extension tag.

Once I had run App Defaults, with the modified xml file to include the order, mobile-twinning appears in the Dialplan Manager:

Screenshot from 2021-03-06 20-59-26.png
 
Last edited:
  • Like
Reactions: s2svoip

s2svoip

Member
Dec 9, 2019
252
7
18
44
Yes,
I have realised that the upgrade instructions do not include Add Defaults - there may be a good reason, but I have put in a pull request with an update. App Defaults (amongst other things) reads the xml files in /var/www/fusionpbx/app/dialplans/resources/switch/conf/dialplan and makes sure they get picked up into the dialplan.

I also noticed that 390_mobile_twinning.xml did not have the order="390" attribute in the extension tag.

Once I had run App Defaults, with the modified xml file to include the order, mobile-twinning appears in the Dialplan Manager:

View attachment 2097
boom, this got it working for me, changed the order and did app defaults, cheers Adrian!
 

s2svoip

Member
Dec 9, 2019
252
7
18
44
Wondering how to best implement this feature, I have used an Avaya IP office system before with twinning and you can just push a BLF to turn it on / off. then if turned on both your deskphone and twinned (mobile) will ring, you can then push the twin BLF to pick up the call on your desk phone or xfer to your mobile by just pushing it. to achieve this functionality would have to do a combo of enabling/disabling a ring group so both ring on incoming call and also *662 if in call to pull it back to the deskphone, then call forward to push it back to mobile. a bit beyond me, but interested what others think
 

ad5ou

Active Member
Jun 12, 2018
884
195
43
We set it up with "follow-me" instead of a ring group. Most of our users keep the follow-me turned on all the time so the only button requirement is when they want to "pull the call back to desk set" You could add a second button for "*21" to turn follow me on/off also.

It isn't quite as elegant as the Avaya single button option, but at least adds the main "twinning" function that is missing otherwise.
 

s2svoip

Member
Dec 9, 2019
252
7
18
44
good shout @ad5ou cheers, yeah the avaya handsets have dual BLF lights which is pretty neet, twin is green for on, then red/green when call is active. but your setup sounds like the most sense.
 

marijan

New Member
Apr 13, 2021
7
0
1
49
Hello,

Please somebody help how I can have more than 10 digits mobile number?
My country mobile numbers are 00389xxxxxxxx

Thanks
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,384
364
83
It is a while since I looked at the code for this, so I can't remember all the details but a good start would be to edit:
/var/www/fusionpbx/app/mobile-twinning/mobile_twinning_edit.php
and change the if statement shown in the code segment below:


Code:
        //check for a valid 10 digit mobile number
            if (strlen($mobile_twinning_number) != 10)  {
                if (strlen($mobile_twinning_number) != 0) {
                    $msg .= $text['message-warning'].$text['message-invalid_mobile_twinning_number']."<br>\n";
                }
            }
 

marijan

New Member
Apr 13, 2021
7
0
1
49
It is a while since I looked at the code for this, so I can't remember all the details but a good start would be to edit:
/var/www/fusionpbx/app/mobile-twinning/mobile_twinning_edit.php
and change the if statement shown in the code segment below:


Code:
        //check for a valid 10 digit mobile number
            if (strlen($mobile_twinning_number) != 10)  {
                if (strlen($mobile_twinning_number) != 0) {
                    $msg .= $text['message-warning'].$text['message-invalid_mobile_twinning_number']."<br>\n";
                }
            }
Thanks a lot Adrian
 

marijan

New Member
Apr 13, 2021
7
0
1
49
Dear Adrian,

Thanks again, it works.

I edited also /var/www/fusionpbx/app/mobile-twinning/mobile_twinning.php line 154 just for showing on Application/Mobile Twining modified digits from /var/www/fusionpbx/app/mobile-twinning/mobile_twinning_edit.php

/var/www/fusionpbx/app/mobile-twinning/mobile_twinning_edit.php line 91:
if (strlen($mobile_twinning_number) != 10) {
changed to
if (strlen($mobile_twinning_number) != 13) {

/var/www/fusionpbx/app/mobile-twinning/mobile_twinning.php line 154:
echo " <td valign='top' class='".$row_style[$c]."'>".format_phone(substr($row['mobile_twinning_number'],-10))."</td>\n";
changed to:
echo " <td valign='top' class='".$row_style[$c]."'>".format_phone(substr($row['mobile_twinning_number'],-13))."</td>\n";
 

mak_make

Member
Aug 27, 2018
50
0
6
41
HI,

I have installed the Mobile-twinning and did the setup correctly. but when I dial *662 to I am getting Normal clearing. Any ideas how to fix it?
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,384
364
83
Any ideas how to fix it?
No, not really, because you have told us very little about your system.

If *662 is failing, then maybe the mobile-twinning dialplan (390_mobile_twinning.xml) did not get set up correctly. If you look in the dialplan manager do you see a dialplan called mobile-twinning?
 
Status
Not open for further replies.