PBXes » English » Feature Requests » modify Caller ID for incoming calls 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00 1 Votes - Average Rating: 5.00
Print Page | Recommend to Friend | Add Thread to Favorites
Post New Thread Post Reply
Author
Post « Previous Thread | Next Thread »
caf


Registration Date: 01.01.1970
Posts:

modify Caller ID for incoming calls Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information Go to the top of this page

Dear PBXes,
Dear all,

on my PBXes I have a Swiss (0041) and a German (0049) number, which are routed to one and the same final device.

If a person from Geneva (prefix within Switzerland 022...) calls my Swiss number, the callerID is displayed in the domestic Swiss format, which yields "022xxxxxxx".

If a person from Bonn (prefix within Germany 0228...) calls my German number, the callerID is displayed in the domestic German format, which yields "0228xxxxxx".

Effectively it´s impossible to tell from the number, whether the call comes in from Germany or Switzerland.

I already saw that it´s possible to prepend a number by channel. However, this doesn´t solve the problem: Simply adding "0041" in front of the Swiss national format would yield "0041 0 22xxxx". The "national" 0 has to be cut out, otherwise it´s not a correct international number which could (for example) be called back. Secondly, if a call comes in from a third country, the country-string would still be prepended. As such a call from the UK from "004420701234567" to the Swiss number would be changed into "0041004420701234567", which finally wouldn´t make sense anymore.

In my own Asterisk I solved this by a super-simple differentiation:

  • If callerID starts with "00" leave it untouched
  • If callerID starts with only one "0", cut the first zero, and prepend "0041" or "0049" according to channel


As a result I always saw a full "normal" international number on my display, no matter where the call came from.

Is there any way to achieve this result, without having to change into a "Pro" account?

Rgds, Christian

This post has been edited 2 time(s), it was last edited by caf on 04.07.2013 at 22:53.

04.07.2013 17:03 cafunke is offline Search for Posts by cafunke Add cafunke to your Buddy List
 
Post New Thread Post Reply
Go to:

Powered by Burning Board Lite 1.0.2 © 2001-2004 WoltLab GmbH
English Translation by Satelk