Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: kb-ohnemus on May 20, 2009, 06:52:13 PM

Title: Replace digits in route dial plan
Post by: kb-ohnemus 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.
Title: Re: Replace digits in route dial plan
Post by: SARK devs 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
Title: Re: Replace digits in route dial plan
Post by: kb-ohnemus 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.
Title: Re: Replace digits in route dial plan
Post by: kb-ohnemus 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