Context Not Found on Valid Domain

Status
Not open for further replies.

Amit Iyer

Member
Feb 6, 2018
56
11
8
29
Hello,

I am facing an unusal issue on Fresh FusionPBX install, I tried to re-install but receiving the same error, Whenever call the Incoming DID that is assigned in the FusionPBX i get the below error. I did not edit any XML files, this is a Fresh Install of Fusion.

Fusionpbx Version : 4.5.17
Switch Version : 1.10.5 (64bit)
Freeswitch Version: 1.10.5
Calling Number : +91931974XXXX
DID (Destination number) : 1833370XXXX
Domain : sub.domain.com - this is an actual domain, the extensions are getting registered without any issues.




[ERR] switch_xml.c:1761 Error[[error near line 153]: missing >]
[WARNING] mod_dialplan_xml.c:667 Context sub.domain.com not found



2020-09-13 17:41:13.369775 [NOTICE] switch_channel.c:1118 New Channel sofia/internal/+91931974XXXX@1.1.1.1 [18a36f0b-5727-45b1-a097-384071034d9e]
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_NEW (Cur 1 Tot 33)
2020-09-13 17:41:13.369775 [DEBUG] sofia.c:10280 sofia/internal/+91931974XXXX@1.1.1.1 receiving invite from 1.1.1.1:5060 version: 1.10.5 -release-17-25569c1631 64bit
2020-09-13 17:41:13.369775 [DEBUG] sofia.c:10374 verifying acl "domains" for ip/port 1.1.1.1:0.
2020-09-13 17:41:13.369775 [DEBUG] sofia.c:10403 IP 1.1.1.1 Approved by acl "domains[]". Access Granted.
2020-09-13 17:41:13.369775 [DEBUG] sofia.c:7326 Channel sofia/internal/+91931974XXXX@1.1.1.1 entering state [received][100]
2020-09-13 17:41:13.369775 [DEBUG] sofia.c:7336 Remote SDP:
v=0
o=FreeSWITCH 1599984143 1599984144 IN IP4 1.1.1.1
s=FreeSWITCH
c=IN IP4 1.1.1.1
t=0 0
m=audio 27530 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20

2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:3839 Set Codec sofia/internal/+91931974XXXX@1.1.1.1 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2020-09-13 17:41:13.369775 [DEBUG] switch_core_codec.c:111 sofia/internal/+91931974XXXX@1.1.1.1 Original read codec set to PCMU:0
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
2020-09-13 17:41:13.369775 [DEBUG] switch_core_media.c:5911 sofia/internal/+91931974XXXX@1.1.1.1 Set 2833 dtmf send payload to 101 recv payload to 101
2020-09-13 17:41:13.369775 [DEBUG] sofia.c:7760 (sofia/internal/+91931974XXXX@1.1.1.1) State Change CS_NEW -> CS_INIT
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:604 (sofia/internal/+91931974XXXX@1.1.1.1) State NEW
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_INIT (Cur 1 Tot 33)
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:628 (sofia/internal/+91931974XXXX@1.1.1.1) State INIT
2020-09-13 17:41:13.369775 [DEBUG] mod_sofia.c:93 sofia/internal/+91931974XXXX@1.1.1.1 SOFIA INIT
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:40 sofia/internal/+91931974XXXX@1.1.1.1 Standard INIT
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/+91931974XXXX@1.1.1.1) State Change CS_INIT -> CS_ROUTING
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:628 (sofia/internal/+91931974XXXX@1.1.1.1) State INIT going to sleep
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_ROUTING (Cur 1 Tot 33)
2020-09-13 17:41:13.369775 [DEBUG] switch_channel.c:2332 (sofia/internal/+91931974XXXX@1.1.1.1) Callstate Change DOWN -> RINGING
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:644 (sofia/internal/+91931974XXXX@1.1.1.1) State ROUTING
2020-09-13 17:41:13.369775 [DEBUG] mod_sofia.c:154 sofia/internal/+91931974XXXX@1.1.1.1 SOFIA ROUTING
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:236 sofia/internal/+91931974XXXX@1.1.1.1 Standard ROUTING
2020-09-13 17:41:13.369775 [INFO] mod_dialplan_xml.c:637 Processing +91931974XXXX <+91931974XXXX>->1833370XXXX in context public
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 parsing [public->caller-details] continue=true
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Regex (PASS) [caller-details] () =~ // break=never
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 export(call_direction=inbound)
2020-09-13 17:41:13.369775 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(caller_destination=${sip_to_user}) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(caller_destination=1833370XXXX)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [caller_destination]=[1833370XXXX]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(caller_id_name=${caller_id_name}) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(caller_id_name=+91931974XXXX)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [caller_id_name]=[+91931974XXXX]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(caller_id_number=${caller_id_number})
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 parsing [public->18555272753] continue=false
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Regex (FAIL) [18555272753] destination_number(1833370XXXX) =~ /^(1855527XXXX)$/ break=on-false
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 parsing [public->18662160304] continue=false
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Regex (FAIL) [18662160304] destination_number(1833370XXXX) =~ /^(1866216XXXX)$/ break=on-false
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 parsing [public->18882275723] continue=false
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Regex (PASS) [1833370XXXX] destination_number(1833370XXXX) =~ /^(1833370XXXX)$/ break=on-false
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 export(call_direction=inbound)
2020-09-13 17:41:13.369775 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(domain_uuid=566b8efb-7db3-4921-a56d-e4a9ffa43196) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(domain_uuid=566b8efb-7db3-4921-a56d-e4a9ffa43196)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [domain_uuid]=[566b8efb-7db3-4921-a56d-e4a9ffa43196]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(domain_name=sub.domain.com) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(domain_name=sub.domain.com)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [domain_name]=[sub.domain.com]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(hangup_after_bridge=true) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(hangup_after_bridge=true)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [hangup_after_bridge]=[true]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action set(continue_on_fail=true) INLINE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(continue_on_fail=true)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [continue_on_fail]=[true]
Dialplan: sofia/internal/+91931974XXXX@1.1.1.1 Action transfer(1000 XML sub.domain.com)
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:287 (sofia/internal/+91931974XXXX@1.1.1.1) State Change CS_ROUTING -> CS_EXECUTE
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:644 (sofia/internal/+91931974XXXX@1.1.1.1) State ROUTING going to sleep
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_EXECUTE (Cur 1 Tot 33)
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:651 (sofia/internal/+91931974XXXX@1.1.1.1) State EXECUTE
2020-09-13 17:41:13.369775 [DEBUG] mod_sofia.c:209 sofia/internal/+91931974XXXX@1.1.1.1 SOFIA EXECUTE
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:329 sofia/internal/+91931974XXXX@1.1.1.1 Standard EXECUTE
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 set(caller_id_number=+91931974XXXX)
2020-09-13 17:41:13.369775 [DEBUG] mod_dptools.c:1672 SET sofia/internal/+91931974XXXX@1.1.1.1 [caller_id_number]=[+91931974XXXX]
EXECUTE [depth=0] sofia/internal/+91931974XXXX@1.1.1.1 transfer(1000 XML sub.domain.com)
2020-09-13 17:41:13.369775 [DEBUG] switch_ivr.c:2243 (sofia/internal/+91931974XXXX@1.1.1.1) State Change CS_EXECUTE -> CS_ROUTING
2020-09-13 17:41:13.369775 [NOTICE] switch_ivr.c:2250 Transfer sofia/internal/+91931974XXXX@1.1.1.1 to XML[1000@sub.domain.com]
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:651 (sofia/internal/+91931974XXXX@1.1.1.1) State EXECUTE going to sleep
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_ROUTING (Cur 1 Tot 33)
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:644 (sofia/internal/+91931974XXXX@1.1.1.1) State ROUTING
2020-09-13 17:41:13.369775 [DEBUG] mod_sofia.c:145 Call appears to be already acknowledged
2020-09-13 17:41:13.369775 [DEBUG] mod_sofia.c:154 sofia/internal/+91931974XXXX@1.1.1.1 SOFIA ROUTING
2020-09-13 17:41:13.369775 [DEBUG] switch_core_state_machine.c:236 sofia/internal/+91931974XXXX@1.1.1.1 Standard ROUTING
2020-09-13 17:41:13.369775 [INFO] mod_dialplan_xml.c:637 Processing +91931974XXXX <+91931974XXXX>->1000 in context sub.domain.com
2020-09-13 17:41:13.389734 [ERR] switch_xml.c:1761 Error[[error near line 153]: missing >]
2020-09-13 17:41:13.389734 [WARNING] mod_dialplan_xml.c:667 Context sub.domain.com not found
[/B]
2020-09-13 17:41:13.389734 [INFO] switch_core_state_machine.c:312 No Route, Aborting
2020-09-13 17:41:13.389734 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/internal/+91931974XXXX@1.1.1.1 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:644 (sofia/internal/+91931974XXXX@1.1.1.1) State ROUTING going to sleep
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_HANGUP (Cur 1 Tot 33)
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:848 (sofia/internal/+91931974XXXX@1.1.1.1) Callstate Change RINGING -> HANGUP
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/+91931974XXXX@1.1.1.1) State HANGUP
2020-09-13 17:41:13.389734 [DEBUG] mod_sofia.c:453 Channel sofia/internal/+91931974XXXX@1.1.1.1 hanging up, cause: NO_ROUTE_DESTINATION
2020-09-13 17:41:13.389734 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:60 sofia/internal/+91931974XXXX@1.1.1.1 Standard HANGUP, cause: NO_ROUTE_DESTINATION
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/+91931974XXXX@1.1.1.1) State HANGUP going to sleep
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:620 (sofia/internal/+91931974XXXX@1.1.1.1) State Change CS_HANGUP -> CS_REPORTING
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:585 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_REPORTING (Cur 1 Tot 33)
2020-09-13 17:41:13.389734 [DEBUG] switch_core_state_machine.c:936 (sofia/internal/+91931974XXXX@1.1.1.1) State REPORTING
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:174 sofia/internal/+91931974XXXX@1.1.1.1 Standard REPORTING, cause: NO_ROUTE_DESTINATION
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:936 (sofia/internal/+91931974XXXX@1.1.1.1) State REPORTING going to sleep
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:611 (sofia/internal/+91931974XXXX@1.1.1.1) State Change CS_REPORTING -> CS_DESTROY
2020-09-13 17:41:13.429731 [DEBUG] switch_core_session.c:1726 Session 33 (sofia/internal/+91931974XXXX@1.1.1.1) Locked, Waiting on external entities
2020-09-13 17:41:13.429731 [NOTICE] switch_core_session.c:1744 Session 33 (sofia/internal/+91931974XXXX@1.1.1.1) Ended
2020-09-13 17:41:13.429731 [NOTICE] switch_core_session.c:1748 Close Channel sofia/internal/+91931974XXXX@1.1.1.1 [CS_DESTROY]
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:739 (sofia/internal/+91931974XXXX@1.1.1.1) Running State Change CS_DESTROY (Cur 0 Tot 33)
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:749 (sofia/internal/+91931974XXXX@1.1.1.1) State DESTROY
2020-09-13 17:41:13.429731 [DEBUG] mod_sofia.c:364 sofia/internal/+91931974XXXX@1.1.1.1 SOFIA DESTROY
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:181 sofia/internal/+91931974XXXX@1.1.1.1 Standard DESTROY
2020-09-13 17:41:13.429731 [DEBUG] switch_core_state_machine.c:749 (sofia/internal/+91931974XXXX@1.1.1.1) State DESTROY going to sleep
 
Last edited:

Incubugs

Member
Apr 7, 2018
175
10
18
49
Check your access controls , the fusionpbx team changed how they work a few updates ago i had the same issue, ensure you put the full cidr in there from your isp
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,038
556
113
This looks nothing to do with ACL:

Code:
ERR] switch_xml.c:1761 Error[[error near line 153]: missing >]

Looks like there maybe a syntax error in a file.
 

Amit Iyer

Member
Feb 6, 2018
56
11
8
29
there are no changes in the file. everything is done on Fusionpbx GUI, also other numbers on the same domain are working, this is happening on new DID numbers. and new Domain old numbers are working fine.

Can you please let me know which file I need to check if there is an issue on the file ?
 

Amit Iyer

Member
Feb 6, 2018
56
11
8
29
Check your access controls , the fusionpbx team changed how they work a few updates ago i had the same issue, ensure you put the full cidr in there from your isp
The ACL has been changed, I added the full cidr with /32 but still not working, old numbers from the same incoming servers are working fine.
 

Incubugs

Member
Apr 7, 2018
175
10
18
49
are the new inbound number presenting the same way ? ie national number or sip user etc, you need to include a sip trace and let us know what the actual number is so you can compare it to what's being received by the system.
 

hfoster

Active Member
Jan 28, 2019
674
80
28
34
I've got a feeling you may have a dodgy character somewhere in the extensions, or possibly something else like a ring group on the subdomain. When it tries to read the 'xml' for the subdomain context so it can bridge it to 1000 it bombs out. In particular, the following characters:

" ' < > &
 
Status
Not open for further replies.