Inbound routes not working Fusionpbx

Status
Not open for further replies.

Rufus

New Member
Jan 31, 2020
6
0
1
34
Hello,

I have set up an inbound route but it only works when not-found is enabled and does not route to any other destination please help so am force to use not-found in setting it up. I also realized when i add ivr it doesnt work but works with ring groups.
Below is my inbound route hat doesnt work and the other that works

1581928629674.png

Above is for the toll free not working


Below is for the not-found that works

1581928802885.png
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
Your context is correct, it needs to be public for most inbound routes. Normally you would want to set the domain field to the name of the domain that the extension/ivr/ring group is in, not Global. Looking at your transfer action, I would guess your domain should be 192.168.0.71?

You should not be using not-found, it's purpose was to trigger fail2ban for unknown destinations, i.e. bogus calls.
 
  • Like
Reactions: Rufus

Rufus

New Member
Jan 31, 2020
6
0
1
34
@Adrian Fretwell I changed the not found to a log and set a destination but when testing am getting this error log([inbound routes] 404 not found when testing calls. Is it a DID issue? the log is below the attachements.
1582101533860.png

I also set a destination 1582101636799.png


Dialplan: sofia/external/724816442@10.221.6.218 parsing [public->caller-details] continue=true
Dialplan: sofia/external/724816442@10.221.6.218 Regex (PASS) [caller-details] () =~ // break=never
Dialplan: sofia/external/724816442@10.221.6.218 Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 export(call_direction=inbound)
2020-02-19 11:34:02.967021 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/external/724816442@10.221.6.218 Action set(caller_destination=${sip_to_user}) INLINE
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 set(caller_destination=+254709603000)
2020-02-19 11:34:02.967021 [DEBUG] mod_dptools.c:1672 SET sofia/external/724816442@10.221.6.218 [caller_destination]=[+254709603000]
Dialplan: sofia/external/724816442@10.221.6.218 Action set(caller_id_name=${caller_id_name}) INLINE
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 set(caller_id_name=724816442)
2020-02-19 11:34:02.967021 [DEBUG] mod_dptools.c:1672 SET sofia/external/724816442@10.221.6.218 [caller_id_name]=[724816442]
Dialplan: sofia/external/724816442@10.221.6.218 Action set(caller_id_number=${caller_id_number})
Dialplan: sofia/external/724816442@10.221.6.218 parsing [public->0800723723] continue=false
Dialplan: sofia/external/724816442@10.221.6.218 Regex (FAIL) [0800723723] destination_number(+254709603000) =~ /^(0800723723)$/ break=on-false
Dialplan: sofia/external/724816442@10.221.6.218 parsing [public->254709603019] continue=false
Dialplan: sofia/external/724816442@10.221.6.218 Regex (FAIL) [254709603019] destination_number(+254709603000) =~ /^(254709603019)$/ break=on-false
Dialplan: sofia/external/724816442@10.221.6.218 parsing [public->0709603019] continue=false
Dialplan: sofia/external/724816442@10.221.6.218 Regex (FAIL) [0709603019] destination_number(+254709603000) =~ /^(0709603019)$/ break=on-false
Dialplan: sofia/external/724816442@10.221.6.218 parsing [public->0709603000] continue=false
Dialplan: sofia/external/724816442@10.221.6.218 Regex (FAIL) [0709603000] destination_number(+254709603000) =~ /^(0709603000)$/ break=on-false
Dialplan: sofia/external/724816442@10.221.6.218 parsing [public->not-found] continue=false
Dialplan: sofia/external/724816442@10.221.6.218 Regex (PASS) [not-found] () =~ // break=on-false
Dialplan: sofia/external/724816442@10.221.6.218 Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 export(call_direction=inbound)
2020-02-19 11:34:02.967021 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/external/724816442@10.221.6.218 Action set(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 set(call_direction=inbound)
2020-02-19 11:34:02.967021 [DEBUG] mod_dptools.c:1672 SET sofia/external/724816442@10.221.6.218 [call_direction]=[inbound]
Dialplan: sofia/external/724816442@10.221.6.218 Action log([inbound routes] 404 not found ${sip_network_ip})
2020-02-19 11:34:02.967021 [DEBUG] switch_core_state_machine.c:287 (sofia/external/724816442@10.221.6.218) State Change CS_ROUTING -> CS_EXECUTE
2020-02-19 11:34:02.967021 [DEBUG] switch_core_state_machine.c:644 (sofia/external/724816442@10.221.6.218) State ROUTING going to sleep
2020-02-19 11:34:02.967021 [DEBUG] switch_core_state_machine.c:585 (sofia/external/724816442@10.221.6.218) Running State Change CS_EXECUTE (Cur 1 Tot 40)
2020-02-19 11:34:02.967021 [DEBUG] switch_core_state_machine.c:651 (sofia/external/724816442@10.221.6.218) State EXECUTE
2020-02-19 11:34:02.967021 [DEBUG] mod_sofia.c:209 sofia/external/724816442@10.221.6.218 SOFIA EXECUTE
2020-02-19 11:34:02.967021 [DEBUG] switch_core_state_machine.c:329 sofia/external/724816442@10.221.6.218 Standard EXECUTE
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 set(caller_id_number=724816442)
2020-02-19 11:34:02.967021 [DEBUG] mod_dptools.c:1672 SET sofia/external/724816442@10.221.6.218 [caller_id_number]=[724816442]
EXECUTE [depth=0] sofia/external/724816442@10.221.6.218 log([inbound routes] 404 not found 10.66.57.75)



please help
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,498
413
83
It is not matching because your destination number is +254709603000. You only appear to have inbound routes set up to match:
0800723723
254709603019
0709603019
0709603000

I assume from the +25 your are in Burundi. You could strip or match the +(plus) but I do not know what the norm is for dealing with inbound numbers in your country, especially if you are forwarding call back out again.

Also have a look at https://docs.fusionpbx.com/en/latest/advanced/number_translations.html
 
Status
Not open for further replies.