SOLVED Problems with outbound routes

Status
Not open for further replies.

matt

Member
Oct 30, 2017
36
1
8
47
Hello everybody,

On my FusionPBX outbound routes are not working.

Call ends with 404 - No route destination

I have set up a gateway and I made an outbound route - but the rule never appears in the log...
 

Attachments

  • Screenshot-2017-11-8 FusionPBX.png
    Screenshot-2017-11-8 FusionPBX.png
    57.9 KB · Views: 211
  • Screenshot-2017-11-8 Wählplan - FusionPBX.png
    Screenshot-2017-11-8 Wählplan - FusionPBX.png
    52.4 KB · Views: 203
  • Screenshot-2017-11-8 FusionPBX(1).png
    Screenshot-2017-11-8 FusionPBX(1).png
    69.5 KB · Views: 195

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,045
566
113
As Boris says, somehow you have managed to get your calls landing in the public context, have you changed any access control lists by and chance?
 

matt

Member
Oct 30, 2017
36
1
8
47
yes... i changed them...

192.168.1.0/24 is the local network
172.30.82.0/24 is a network with registered extensions - connected via a lan-lan connection
192.168.1.115 is the domain of the pbx
 

Attachments

  • Screenshot-2017-11-8 FusionPBX(3).png
    Screenshot-2017-11-8 FusionPBX(3).png
    10.1 KB · Views: 175

Boris Kovalenko

New Member
Nov 8, 2017
11
2
3
47
See, your outbound route (\d{7}) is in the context 192.168.1.115 while call is placed in the context "public"
 

Boris Kovalenko

New Member
Nov 8, 2017
11
2
3
47
To not break the ideolody and not to twist your and our minds: the context "public" is for external calls only. Place there external gateways and inbound routes only. And place your registered extensions and outbound routes in the context of domain (192.168.115 in your case).
 

matt

Member
Oct 30, 2017
36
1
8
47
I´m afraid the ACLs are not proper configured... i tried it till the calls from the ISDN Gateway worked - but now all calls are in public context...
 

Boris Kovalenko

New Member
Nov 8, 2017
11
2
3
47
Matt, ok, calls are. But routes aren't? On your second screenshot the route sipcall.7d is in context 192.168.1.115
 

matt

Member
Oct 30, 2017
36
1
8
47
after i changed the context of the route to public it worked - but that can´t be the proper way
 

Boris Kovalenko

New Member
Nov 8, 2017
11
2
3
47
The proper way is to place your registered extensions (61 in your case) in context 192.168.1.115 (see the field context on extension configuration page).
 

matt

Member
Oct 30, 2017
36
1
8
47
they are in the context 192.168.1.115...

if i take out the allow 192.168.1.0/24 from ACL Domain and use just 192.168.1.116 (IP of the ISDN Gateway) i get:

2017-11-08 16:39:14.729221 [DEBUG] sofia.c:9873 sofia/internal/0676841032500@192.168.1.115 receiving invite from 192.168.1.116:5060 version: 1.6.19 -36-7a77e0b 64bit
2017-11-08 16:39:14.729221 [DEBUG] sofia.c:10044 IP 192.168.1.116 Rejected by acl "domains". Falling back to Digest auth.
2017-11-08 16:39:14.729221 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'internal' for [60@192.168.1.115] from ip 192.168.1.116
2017-11-08 16:39:14.729221 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/0676841032500@192.168.1.115) State NEW
2017-11-08 16:39:14.729221 [DEBUG] sofia.c:2334 detaching session cabb2f05-4f4b-4589-9d6d-11677c0900dd
2017-11-08 16:39:14.749243 [DEBUG] sofia.c:2442 Re-attaching to session cabb2f05-4f4b-4589-9d6d-11677c0900dd
2017-11-08 16:39:14.749243 [DEBUG] sofia.c:9873 sofia/internal/0676841032500@192.168.1.115 receiving invite from 192.168.1.116:5060 version: 1.6.19 -36-7a77e0b 64bit
2017-11-08 16:39:14.749243 [DEBUG] sofia.c:10044 IP 192.168.1.116 Rejected by acl "domains". Falling back to Digest auth.
2017-11-08 16:39:14.769248 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fbdfc0479c0 Connected.
2017-11-08 16:39:14.769248 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fbdfc0479c0 released.
2017-11-08 16:39:14.769248 [WARNING] sofia_reg.c:2906 Can't find user [berofix@192.168.1.115] from 192.168.1.116
You must define a domain called '192.168.1.115' in your directory and add a user with the id="berofix" attribute
and you must configure your device to use the proper domain in it's authentication credentials.
2017-11-08 16:39:14.769248 [WARNING] sofia_reg.c:1737 SIP auth failure (INVITE) on sofia profile 'internal' for [60@192.168.1.115] from ip 192.168.1.116
2017-11-08 16:39:14.769248 [NOTICE] sofia.c:2332 Hangup sofia/internal/0676841032500@192.168.1.115 [CS_NEW] [CALL_REJECTED]
 

matt

Member
Oct 30, 2017
36
1
8
47
SOLVED:

ACL Domains: CIDR 192.168.1.116/32 instead of 192.168.1.0/24

now everything is in the right context...
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,045
566
113
The ONLY thing that you should add to the domains acl is carriers, nothing else.
 
Status
Not open for further replies.