Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Operator » Grandstream dialplan
  •  
innovativecs

Messages: 9
Karma: 0
Send a private message to this user
Hi,
How do I change the dial plan for a Grandstream phone? I found the template override and this section:

<!-- Account {$i+1} - Call Settings -->
<!-- Dial Plan. -->
{printMultiple($i, "P290_P459_P559_P659_P1859", $DIALPLAN)}
<!-- Auto Answer. 0 - No, 1 - Yes, 2 - Enable Intercom/Paging. Default value is 0 -->
{printMultiple($i, "P90_P425_P525_P625_P1725_P1825", 2)}
<!-- Allow Auto Answer by Call-Info. 0 - No, 1 - Yes. Default is 0 -->
{printMultiple($i, "P298_P438_P538_P638_P1738_P1838", 1)}

Where do I put my custom dial plan?
Thanks!
  •  
Filip Jenicek (Kerio)

Messages: 1050
Karma: 76
Send a private message to this user
Hi,

the variable $DIALPLAN is a string which holds the generated dialplan. If you need to use a custom dialplan, overwrite the variable by using "<_at_>$DIALPLAN='...';". The printMultiple function prints a P-variable specified by the index. Please refer to the grandstream manual to understand the P-values.

Filip
  •  
TEFICO

Messages: 34
Karma: 0
Send a private message to this user
Hi,

I'm trying to override DIALPLAN varible with this command:

@ $DIALPLAN = '{xx | 112 | 091 | <=9>xxx+ | \+x+ | *x+ | *xx*x+}';

{printMultiple($i, "P290_P459_P559_P659_P1759_P1859", $DIALPLAN)}

After resync phones the Dialplan is the same default generated by Operator " {0[0-9*#][0-9*#]|1[0-9*#]+|2[0-9*#]|3[0-9*#]|5[0-9*#]|7[0-9* #][0-9*#]|8[0-9*#]+|9[0-9*#]+} "

To test the template I write:
@ $DIALPLAN = '{xx | 112 | 091 | <=9>xxx+ | \+x+ | *x+ | *xx*x+}';
@ var_dump($DIALPLAN);
{printMultiple($i, "P290_P459_P559_P659_P1759_P1859", $DIALPLAN)}

and the output (download configuration) is ok.



What am I doing wrong?

Thanks
  •  
Filip Jenicek (Kerio)

Messages: 1050
Karma: 76
Send a private message to this user
Hi,

perhaps the dialplan is invalid and the phone refuses to update its configuration. Try it with a simple dialplan, for example: {printMultiple($i, "P290_P459_P559_P659_P1759_P1859", '{xx}')}

Filip
  •  
TEFICO

Messages: 34
Karma: 0
Send a private message to this user
I've tried that simply plan but it does not work: the dialplan does not change in the phone.


Note: Sorry, yes it works.

I will investigate the reason the other doesn't. The plan is right, I can set it manually through phone web interface and do calls ok.

[Updated on: Fri, 07 October 2016 15:08]

  •  
TEFICO

Messages: 34
Karma: 0
Send a private message to this user
Now I see!!!

The problem was '<' and '>' characters, they must be escaped with &lt; and &gt;

Previous Topic: 2.1.0 RC1 Call Routing
Next Topic: Backup causes an error
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Dec 03 22:48:53 CET 2016

Total time taken to generate the page: 0.01051 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.