Koozali.org: home of the SME Server

Replace digits in route dial plan

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Replace digits in route dial plan
« on: May 20, 2009, 06:52:13 PM »
Hi,

I have a question that seems to concern asterisk in general, but I seem unable to google with the correct keywords.

I have a lot of numbers in my phone book which are in the format +4978261234. My route dial plan looks like _0. _00. so I can't dial these numbers. What I am trying to do is to replace +49 by 00, but I couldn't find the documentation for this neither by google nor in my asterisk book, sorry.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Replace digits in route dial plan
« Reply #1 on: May 20, 2009, 07:34:06 PM »
No problem.

You can't do it in the route but you CAN do it in the trunk or the hunt Group.  In the field "Transformation Mask" you can put +49:0049. 

Sorted

Best

S

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Re: Replace digits in route dial plan
« Reply #2 on: May 20, 2009, 09:34:43 PM »
Hm, all of my sip phones say unsuccesfull immidiately after dialling and in the asterisk CLI I get no reaction at all.

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Re: Replace digits in route dial plan
« Reply #3 on: June 10, 2009, 08:54:44 PM »
I checked this again using a softphone and wireshark. If I dial +491718037314 the softphone sends  sip:+491718037314@server2.kb-ohnemus.int. The + is not valid in an URL, so the SME-server says 404 not found even before passing it to asterisk. The bad thing is the phone with the numbers stored in the +format cannot do any character replacement.

Clueless
Manuel