VM forwarding with Visual VM not working aastra-xml 2.2.1

bsullyman
Posts: 4
Member Since:
2009-06-10

I have 65 extensions on a Trixbox CE. I'm running aastra-xml-scripts 2.2.1 with Patch 1.

When using the Forward function of Visual VM, the display only shows 15 names at a time (not a problem) so I have to scroll through many lists. I have two errors related to this functionality:

1. When I Select an extension from a secondary list to which to forward a message I receive the "Page Load Error, Cannot display" message.

2. If I have to scroll through more than 3 pages of names I get the "Page Load Error, Cannot display" message.

Any help on this would be awesome!



aastra1
Posts: 287
Member Since:
2006-11-06
We will have a look at it

Hi bsullyman,

Just to make sure that we have all the elements to reproduce your problems, can you confirm that the phone you are using is a 480i/480iCT running 1.4.2 or 1.4.3?

We will have a look and probably produce a patch2 which will include some other fixes.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



bsullyman
Posts: 4
Member Since:
2009-06-10
Awesome

Aastra1,

Yes, we're using the 480i with 1.4.3.23

Thanks TONS!



aastra1
Posts: 287
Member Since:
2006-11-06
OK found it

This is pretty interesting bug... when you use the forward feature the XML object returned by the script is very close to the 5K limit size so sometimes by just selecting a user you go over this limit. The 2.x phones have a 10K limit so it is not an issue there even if we display twice the number of items.

Here is a quick fix
in /var/www/html/aastra/vmail.php
Replace around line 665

if(Aastra_is_icons_supported())
    {
    if($value['select']) $object->addEntry($value['name'],$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key,$msg,1);
    else $object->addEntry($value['name'],$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key,$msg,2);
    }
else
    {
    if($value['select']) $object->addEntry('['.$value['name'].']',$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key,$msg);
    else $object->addEntry($value['name'],$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key,$msg);
    }

by

if(Aastra_is_icons_supported())
    {
    if($value['select']) $object->addEntry($value['name'],$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key,'',1);
    else $object->addEntry($value['name'],$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key,'',2);
    }
else
    {
    if($value['select']) $object->addEntry('['.$value['name'].']',$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key);
    else $object->addEntry($value['name'],$XML_SERVER.'&folder='.$folder.'&action=dselect&msg='.$msg.'&dpage='.$dpage.'&dindex='.$key);
    }

That should do the trick, we will work on a more optimized fix for 2.3.0.

Another option is to reduce the number of elements per page.

Around line 111

Replace

if(Aastra_is_softkeys_supported())$MaxLines=AASTRA_MAXLINES;

by

if(Aastra_is_softkeys_supported())$MaxLines=AASTRA_MAXLINES-5;

Let us know if this fixes your problems or not.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



bsullyman
Posts: 4
Member Since:
2009-06-10
SOLVED

Aastra1,

Both of the issues I described in my original post have been corrected by this fix. I replaced the 10 lines around line 665. I did not reduce the number of elements per page.

I'm extremely impressed by how quickly this issue was addressed. Thank you VERY MUCH.

I plan to use 9480i and 57i phones from here on out BTW!

All the best to you!



aastra1
Posts: 287
Member Since:
2006-11-06
You are welcome!

As I said this was an intriguing bug but actually easy to reproduce and fix!

Always happy to help.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.