Internal calls are not working

Status
Not open for further replies.

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
There is your problem:

[Easybell_Bjoern.d] destination_number(1001) =~ /^(\d+)$/ break=on-false

Looks like you have an outbound route that says match ANY number and so the outbound route is catching calls to your extension.
 

MrGlasspoole

Member
Nov 11, 2017
31
0
6
46
Ok. That again is something from the old installation where i had this in
etc\freeswitch\dialplan\default\01_easybell_bjoern_outbound.xml

Code:
<include>
  <extension name="easybell-bjoern-outbound">
    <condition field="destination_number" expression="^(\d+)$">
      <action application="bridge" data="sofia/gateway/easybell-bjoern/$1"/>
    </condition>
  </extension>
</include>

Hm, the shortest numbers in Germany are 3 digits.
With city prefix it is 6 digits.
But if you call somebody in your own city you normally don't dial the prefix.

So what is right from the expressions i can select:
^(\d{3})$ or ^(\d{6})$

With that old installation i just manipulated the xml files with examples i found.
I wonder the old one did not have this behavior.

Edit:
Ok, the expressions above also don't work.
I realized that internal also stopped working again.
If i set the outbound routes to false (disable them) then internal works again and also calling from outside starts working.
 
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
You know your countries dialplan, Do all the 3 digit numbers start the same? Try ^(\d{6})$
 

MrGlasspoole

Member
Nov 11, 2017
31
0
6
46
But that expression means only numbers with 6 digits go out, doesn't it?

If i use that expression i can call from outside. But if i try to call my cellphone (11 digits) it does not work.
Also cellphones start always different (for example 0171, 0175, 0174, 01570...)

The thing is it can be anything of that:
1. 589
2. 069 589
3. +49 69 589
4. 0049 69 589

Is that not the same in other countries?
I live in Frankfurt and if i call somebody who also lives here i it is enough to dial 1.
But i also can dial 2. (with city prefix) or 3. and 4. with country prefix.

But there are also cities with 5 digits (06071).
Or lets say i want to call somebody in Ireland. That would be +353 or 00353 just for the country.

So just a expression by digits is not something that would work?
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
The easiest way I would say to handle that in that case is to do what many companies do and dial a prefix for an outside line.

So then you could have ^9(.*)$

That way you want to dial ANY external number, you simply prefix with 9
 

MrGlasspoole

Member
Nov 11, 2017
31
0
6
46
I never thought about phone numbers but just did read and it's kind of complicated.

Wikipedia: "German telephone numbers have no fixed length for area code and subscriber number (an open numbering plan)."

In Germany we have the trunk prefix VAZ "0".
That tells the phone to call outside and connect to the telephone exchange for long distance.
Looks like in the US most of the time it is "9".
With the phones here in Germany that is/was build into the phones and if you do not dial the city prefix
that always starts with "0" you are connected to the city telephone exchange.
That's the reason something like just 3267 works in the same city.

With VoIP it still works because the provider does automatically but your city prefix in front of the dialed number.
But it only works if you are calling from the city where your phone is registered. If you move to another city and plug it in there it would not work.
I just found out you can get the 032 prefix so you don't need to change your number if you move.

Then there is the international VAZ "00" and you are conected to the foreign countries telephone exchange.

"+" in front of the number instead of 00 is just for cellphones.
Wikipedia: When making a call, the system then automatically converts the plus sign to the correct international prefix, depending on where the phone
is being used, which enables callers to use the same stored number when calling from either their own country or any other.

The idea was a expression that calls outside if a number starts with "0".
But i guess the problem will be the same (outbound routes catching calls to my extension) because incoming calls also start with "0"?

I wonder it did work in the old installation o_O
 
Status
Not open for further replies.