Multi Tenant not working

Status
Not open for further replies.

bassem.elsayed

New Member
Jan 4, 2019
19
1
3
We definded domian domain.com and all internal calls within domain.com working well.
when we defined subdomain.domain.com, internal calls not working with 404 not found error.
below log shows that not all dialplan rules are executed (only 10 rules) although all rules are definded by default (Dialplan Manager) within domain subdomain.domain.com and also context subdomain.domain.com

Log:
2019-05-15 19:57:54.590321 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001@subdomain.domain.com [67db0ba2-af32-4ec7-9f40-8c23ed16fa58]
2019-05-15 19:57:54.590321 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_NEW (Cur 1 Tot 31)
2019-05-15 19:57:54.590321 [DEBUG] sofia.c:10092 sofia/internal/1001@subdomain.domain.com receiving invite from xx.xx.xx.xx:5060 version: 1.8.5 -6-31281a0bf1 64bit
2019-05-15 19:57:54.590321 [DEBUG] sofia.c:10263 IP xx.xx.xx.xx Rejected by acl "domains". Falling back to Digest auth.
2019-05-15 19:57:54.590321 [WARNING] sofia_reg.c:1798 SIP auth challenge (INVITE) on sofia profile 'internal' for [1002@subdomain.domain.com] from ip xx.xx.xx.xx
2019-05-15 19:57:54.590321 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/1001@subdomain.domain.com) State NEW
2019-05-15 19:57:54.590321 [DEBUG] sofia.c:2413 detaching session 67db0ba2-af32-4ec7-9f40-8c23ed16fa58
2019-05-15 19:58:04.630319 [WARNING] switch_core_state_machine.c:687 67db0ba2-af32-4ec7-9f40-8c23ed16fa58 sofia/internal/1001@subdomain.domain.com Abandoned
2019-05-15 19:58:04.630319 [NOTICE] switch_core_state_machine.c:690 Hangup sofia/internal/1001@subdomain.domain.com [CS_NEW] [WRONG_CALL_STATE]
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_HANGUP (Cur 1 Tot 31)
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/1001@subdomain.domain.com) Callstate Change DOWN -> HANGUP
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/1001@subdomain.domain.com) State HANGUP
2019-05-15 19:58:04.630319 [DEBUG] mod_sofia.c:449 Channel sofia/internal/1001@subdomain.domain.com hanging up, cause: WRONG_CALL_STATE
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:60 sofia/internal/1001@subdomain.domain.com Standard HANGUP, cause: WRONG_CALL_STATE
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/1001@subdomain.domain.com) State HANGUP going to sleep
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/1001@subdomain.domain.com) State Change CS_HANGUP -> CS_REPORTING
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_REPORTING (Cur 1 Tot 31)
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/1001@subdomain.domain.com) State REPORTING
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:174 sofia/internal/1001@subdomain.domain.com Standard REPORTING, cause: WRONG_CALL_STATE
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/1001@subdomain.domain.com) State REPORTING going to sleep
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/1001@subdomain.domain.com) State Change CS_REPORTING -> CS_DESTROY
2019-05-15 19:58:04.630319 [DEBUG] switch_core_session.c:1715 Session 31 (sofia/internal/1001@subdomain.domain.com) Locked, Waiting on external entities
2019-05-15 19:58:04.630319 [NOTICE] switch_core_session.c:1733 Session 31 (sofia/internal/1001@subdomain.domain.com) Ended
2019-05-15 19:58:04.630319 [NOTICE] switch_core_session.c:1737 Close Channel sofia/internal/1001@subdomain.domain.com [CS_DESTROY]
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:738 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_DESTROY (Cur 0 Tot 31)
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/1001@subdomain.domain.com) State DESTROY
2019-05-15 19:58:04.630319 [DEBUG] mod_sofia.c:354 sofia/internal/1001@subdomain.domain.com SOFIA DESTROY
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:181 sofia/internal/1001@subdomain.domain.com Standard DESTROY
2019-05-15 19:58:04.630319 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/1001@subdomain.domain.com) State DESTROY going to sleep
2019-05-15 19:58:10.670319 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001@subdomain.domain.com [d0494822-5038-4701-b656-21d4d6c47062]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_NEW (Cur 1 Tot 32)
2019-05-15 19:58:10.670319 [DEBUG] sofia.c:10092 sofia/internal/1001@subdomain.domain.com receiving invite from xx.xx.xx.xx:5060 version: 1.8.5 -6-31281a0bf1 64bit
2019-05-15 19:58:10.670319 [DEBUG] sofia.c:10263 IP xx.xx.xx.xx Rejected by acl "domains". Falling back to Digest auth.
2019-05-15 19:58:10.670319 [DEBUG] sofia.c:11400 Setting NAT mode based on via received
2019-05-15 19:58:10.670319 [DEBUG] sofia.c:7291 Channel sofia/internal/1001@subdomain.domain.com entering state [received][100]
2019-05-15 19:58:10.670319 [DEBUG] sofia.c:7301 Remote SDP:
v=0
o=1001 785 1361 IN IP4 192.168.1.7
s=Talk
c=IN IP4 192.168.1.7
t=0 0
a=ice-pwd:4b1e69fa62ffea49bcc82eea
a=ice-ufrag:572eabf9
a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
m=audio 7202 RTP/AVPF 96 97 98 0 8 9 18 101 99 100
c=IN IP4 xx.xx.xx.xx
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:97 speex/16000
a=fmtp:97 vbr=on
a=rtpmap:98 speex/8000
a=fmtp:98 vbr=on
a=fmtp:18 annexb=yes
a=rtpmap:101 telephone-event/48000
a=rtpmap:99 telephone-event/16000
a=rtpmap:100 telephone-event/8000
a=candidate:1 1 UDP 2130706303 10.8.0.6 7202 typ host
a=candidate:1 2 UDP 2130706302 10.8.0.6 7203 typ host
a=candidate:2 1 UDP 1694498687 xx.xx.xx.xx 7202 typ srflx raddr 10.8.0.6 rport 7202
a=candidate:2 2 UDP 1694498686 xx.xx.xx.xx 7203 typ srflx raddr 10.8.0.6 rport 7203
a=rtcp-fb:* trr-int 1000
a=rtcp-fb:* ccm tmmbr

2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4303 Look for Relay Candidates as last resort
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4309 sofia/internal/1001@subdomain.domain.com no suitable candidates found.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4303 Look for Relay Candidates as last resort
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4309 sofia/internal/1001@subdomain.domain.com no suitable candidates found.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4303 Look for Relay Candidates as last resort
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4309 sofia/internal/1001@subdomain.domain.com no suitable candidates found.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [opus:96:48000:20:0:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [opus:96:48000:20:0:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [opus:96:48000:20:0:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [speex:97:16000:20:0:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [speex:97:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [speex:97:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [speex:98:8000:20:0:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [speex:98:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [speex:98:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5533 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5478 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5394 Set telephone-event payload to 101@48000
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:3781 Set Codec sofia/internal/1001@subdomain.domain.com PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2019-05-15 19:58:10.670319 [DEBUG] switch_core_codec.c:111 sofia/internal/1001@subdomain.domain.com Original read codec set to PCMU:0
2019-05-15 19:58:10.670319 [WARNING] switch_core_media.c:4181 NO candidate ACL defined, Defaulting to wan.auto
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4211 Save audio Candidate cid: 1 proto: UDP type: host addr: 10.8.0.6:7202
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4211 Save audio Candidate cid: 2 proto: UDP type: host addr: 10.8.0.6:7203
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4211 Save audio Candidate cid: 1 proto: UDP type: srflx addr: xx.xx.xx.xx:7202
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4211 Save audio Candidate cid: 2 proto: UDP type: srflx addr: xx.xx.xx.xx:7203
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4265 Choose rtp candidate, index 1, xx.xx.xx.xx:7202
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4031 sofia/internal/1001@subdomain.domain.com choosing family v4
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4256 Searching for rtcp candidate.
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4265 Choose rtcp candidate, index 1, xx.xx.xx.xx:7203
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4031 sofia/internal/1001@subdomain.domain.com choosing family v4
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4328 setting remote audio ice addr to index 1 xx.xx.xx.xx:7202 based on candidate
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:4363 Setting remote rtcp audio addr to xx.xx.xx.xx:7203 based on candidate
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5737 Set telephone-event payload to 100@8000
2019-05-15 19:58:10.670319 [DEBUG] switch_core_media.c:5795 sofia/internal/1001@subdomain.domain.com Set 2833 dtmf send payload to 100 recv payload to 100
2019-05-15 19:58:10.670319 [DEBUG] sofia.c:7716 (sofia/internal/1001@subdomain.domain.com) State Change CS_NEW -> CS_INIT
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:603 (sofia/internal/1001@subdomain.domain.com) State NEW
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_INIT (Cur 1 Tot 32)
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/1001@subdomain.domain.com) State INIT
2019-05-15 19:58:10.670319 [DEBUG] mod_sofia.c:93 sofia/internal/1001@subdomain.domain.com SOFIA INIT
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:40 sofia/internal/1001@subdomain.domain.com Standard INIT
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/1001@subdomain.domain.com) State Change CS_INIT -> CS_ROUTING
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/1001@subdomain.domain.com) State INIT going to sleep
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_ROUTING (Cur 1 Tot 32)
2019-05-15 19:58:10.670319 [DEBUG] switch_channel.c:2249 (sofia/internal/1001@subdomain.domain.com) Callstate Change DOWN -> RINGING
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/1001@subdomain.domain.com) State ROUTING
2019-05-15 19:58:10.670319 [DEBUG] mod_sofia.c:154 sofia/internal/1001@subdomain.domain.com SOFIA ROUTING
2019-05-15 19:58:10.670319 [DEBUG] switch_core_state_machine.c:236 sofia/internal/1001@subdomain.domain.com Standard ROUTING
2019-05-15 19:58:10.670319 [INFO] mod_dialplan_xml.c:637 Processing 1001 <1001>->1002 in context subdomain.domain.com
Dialplan: sofia/internal/1001@subdomain.domain.com parsing [subdomain.domain.com->intercept-ext-polycom] continue=false
Dialplan: sofia/internal/1001@subdomain.domain.com Regex (FAIL) [intercept-ext-polycom] destination_number(1002) =~ /^\*97(\d+)$/ break=on-false
Dialplan: sofia/internal/1001@subdomain.domain.com parsing [subdomain.domain.com->call forward all] continue=false
Dialplan: sofia/internal/1001@subdomain.domain.com Regex (FAIL) [call forward all] ${user_exists}() =~ /true/ break=on-false
Dialplan: sofia/internal/1001@subdomain.domain.com parsing [subdomain.domain.com->talking clock date and time] continue=true
Dialplan: sofia/internal/1001@subdomain.domain.com Regex (FAIL) [talking clock date and time] destination_number(1002) =~ /^\*9172$/ break=on-false
Dialplan: sofia/internal/1001@subdomain.domain.com parsing [subdomain.domain.com->talking clock time] continue=true
Dialplan: sofia/internal/1001@subdomain.domain.com Regex (FAIL) [talking clock time] destination_number(1002) =~ /^\*9170$/ break=on-false
Dialplan: sofia/internal/1001@subdomain.domain.com parsing [subdomain.domain.com->talking clock date] continue=true
Dialplan: sofia/internal/1001@subdomain.domain.com Regex (FAIL) [talking clock date] destination_number(1002) =~ /^\*9171$/ break=on-false
2019-05-15 19:58:10.690326 [INFO] switch_core_state_machine.c:311 No Route, Aborting
2019-05-15 19:58:10.690326 [NOTICE] switch_core_state_machine.c:312 Hangup sofia/internal/1001@subdomain.domain.com [CS_ROUTING] [NO_ROUTE_DESTINATION]
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/1001@subdomain.domain.com) State ROUTING going to sleep
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_HANGUP (Cur 1 Tot 32)
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:847 (sofia/internal/1001@subdomain.domain.com) Callstate Change RINGING -> HANGUP
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/1001@subdomain.domain.com) State HANGUP
2019-05-15 19:58:10.690326 [DEBUG] mod_sofia.c:449 Channel sofia/internal/1001@subdomain.domain.com hanging up, cause: NO_ROUTE_DESTINATION
2019-05-15 19:58:10.690326 [DEBUG] mod_sofia.c:589 Responding to INVITE with: 404
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:60 sofia/internal/1001@subdomain.domain.com Standard HANGUP, cause: NO_ROUTE_DESTINATION
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:849 (sofia/internal/1001@subdomain.domain.com) State HANGUP going to sleep
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/1001@subdomain.domain.com) State Change CS_HANGUP -> CS_REPORTING
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_REPORTING (Cur 1 Tot 32)
2019-05-15 19:58:10.690326 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/1001@subdomain.domain.com) State REPORTING
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:174 sofia/internal/1001@subdomain.domain.com Standard REPORTING, cause: NO_ROUTE_DESTINATION
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:935 (sofia/internal/1001@subdomain.domain.com) State REPORTING going to sleep
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/1001@subdomain.domain.com) State Change CS_REPORTING -> CS_DESTROY
2019-05-15 19:58:10.710319 [DEBUG] switch_core_session.c:1715 Session 32 (sofia/internal/1001@subdomain.domain.com) Locked, Waiting on external entities
2019-05-15 19:58:10.710319 [NOTICE] switch_core_session.c:1733 Session 32 (sofia/internal/1001@subdomain.domain.com) Ended
2019-05-15 19:58:10.710319 [NOTICE] switch_core_session.c:1737 Close Channel sofia/internal/1001@subdomain.domain.com [CS_DESTROY]
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:738 (sofia/internal/1001@subdomain.domain.com) Running State Change CS_DESTROY (Cur 0 Tot 32)
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/1001@subdomain.domain.com) State DESTROY
2019-05-15 19:58:10.710319 [DEBUG] mod_sofia.c:354 sofia/internal/1001@subdomain.domain.com SOFIA DESTROY
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:181 sofia/internal/1001@subdomain.domain.com Standard DESTROY
2019-05-15 19:58:10.710319 [DEBUG] switch_core_state_machine.c:748 (sofia/internal/1001@subdomain.domain.com) State DESTROY going to sleep
 

Jeff.H

New Member
Oct 5, 2018
11
2
3
Just taking a stab here, but would it be because you are using a subdomain and a regular domain? Have you tried making them both subdomains?
 
  • Like
Reactions: netcomcyprus

bassem.elsayed

New Member
Jan 4, 2019
19
1
3
i have multi domains in the format of subdomain1.domain.com, subdomain2.domain.com , etc....
only internal calls of extensions defined under domain.com are working well.
the nternal calls of extensions defined under any subdomain.domain.com are not working executing only few rules of dialplan (check log)
 

leean

New Member
Apr 11, 2019
17
1
3
52
vietvan.net
I setup my system in multi tenants with separated domains on dns provider and point to my FS
eg: domainX.com , domainY.com and domainZ.com
on outbound call i just make the transfer dialplan to the tenant i want calling to, do the same with the remote tenant for two-way call ( or one way only if you want)

here is the transfer dialplan in XML
<extension name="tranfer-to-remote" continue="false" uuid="117f3b68-82a0-XXXXXXXXXXXXXXX1">
<condition field="${user_exists}" expression="false"/>
<condition field="destination_number" expression="^(1XX[0-9])$">
<action application="set" data="sip_h_X-accountcode=${accountcode}"/>
<action application="export" data="call_direction=outbound"/>
<action application="unset" data="call_timeout"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
<action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="ignore_display_updates=true"/>
<action application="set" data="callee_id_number=$1"/>
<action application="set" data="domain_name=the_dns_of_your_tenent_call_to"/>
<action application="set" data="continue_on_fail=true"/>
<action application="transfer" data="$1 XML ${domain_name}"/>
</condition>
</extension>


on Fusion GUI its is look like ( See attach picture)

Hope this help

BTW: i still have an issue of calling inter-tenants if the remote EXT is not registered or dont answer the call, then the call get the failed instead of go to the voicemail of that EXT, maybe some one here can help to point out the reason why.
 

Attachments

  • multi-tenent.jpg
    multi-tenent.jpg
    156.2 KB · Views: 25
Last edited:

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,038
556
113
Its probably because you have a domain domain.com as stated by someone else earlier.

You should have had from the outset something like:

client1.domain.com
client2.domain.com

etc,etc
 
  • Like
Reactions: netcomcyprus

bassem.elsayed

New Member
Jan 4, 2019
19
1
3
I figured out the issue. fusionpbx has a bug for handling huge number of domains. while creating new domain, it is not created correctly and has missing dialplans. after tracing, i found that the create domain invoke create/update dialplans (calling app defaults) for all domains!!! causing DB out of memory error.
 
  • Like
Reactions: JamesBorne
Status
Not open for further replies.