Introduction

The Gigaset T500/T300 is based on asterisk and sometimes it is needed to change the incoming configuration of the SIP trunks, below are some examples how to change the dialplan.

Question

The incoming dialled number has extra "0" that needs to be removed.

The normal rule in the dialplan is:

exten => _.,3,Goto(Trunk-incoming-manuell,${EXTEN},1)

To remove the first digit you need to change the rule to:

exten => _.,3,Goto(Trunk-incoming-manuell,${EXTEN:1},1)

The ":1" removes the first digit, to remove the first 2 digits you need to change it to ":2"

Example:

  • Without change: 09742123456
  • With change: 9742123456

 

With the following change you can add numbers to the incoming dialled number:

The normal rule in the dialplan is:

exten => _.,3,Goto(Trunk-incoming-manuell,${EXTEN},1)

To remove the first digit you need to change the rule to:

exten => _.,3,Goto(Trunk-incoming-manuell,+49${EXTEN},1)

The "+49" adds the German country code to the incoming number.

Example:

  • Without change: 9742123456
  • With change: +499742123456