INVALID_GATEWAY during making connection between two FUSIONPBX instance

Status
Not open for further replies.

RezaNoei

New Member
Feb 2, 2022
1
0
1
30
Hi,

I'm running two instance of fusion pbx (version 4.2.2) in docker environment using this setup:


Code:
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                                                                NAMES

f74993f6c32a        harbor.resaa.net/hub/fusionpbx   "/bin/sh -c /start.sh"   50 minutes ago      Up 50 minutes       0.0.0.0:81->80/tcp, 0.0.0.0:5061->5060/tcp, 0.0.0.0:5061->5060/udp   fusionpbx1

34a85a1a6164        harbor.resaa.net/hub/fusionpbx   "/bin/sh -c /start.sh"   3 hours ago         Up 3 hours          0.0.0.0:82->80/tcp, 0.0.0.0:5062->5060/tcp, 0.0.0.0:5062->5060/udp   fusionpbx2

first instance which named 'fusionpbx1' is running on **internal ip address '172.17.0.2'
second instance which named 'fusionpbx2' is running on internal ip address '172.17.0.3'
(** if you run 'docker exec -it' on each container using ifconfig you will get these ip addresses, by the way im calling these 'internal container ip')

we have tried to bridge a call from 'fusionpbx1' to 'fusionpbx2'

we setup an extension on fusionpbx1:

1644498660595.png

and on the 'fusionpbx2' we had the other extension:
1644499157220.png

and for the next step we defined our gateway this way:

1644498926849.png

rest of the values are the same default values.

next thing we did was to define new dialplan in dialplan manager page:

1644499234404.png

what we expected to see was a call started from extension 100 to the destination 200 routed to the second fusionpbx instance.

but we got INVALID_GATEWAY in log window.


7a45d795-2b97-4cfb-a9fa-be151782bead Dialplan: sofia/internal/100@172.16.95.9:81 Action bridge(sofia/gateway/reza_gateway/200)
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/100@172.16.95.9:81) State Change CS_ROUTING -> CS_EXECUTE
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/100@172.16.95.9:81) State ROUTING going to sleep
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/100@172.16.95.9:81) Running State Change CS_EXECUTE
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/100@172.16.95.9:81) State EXECUTE
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] mod_sofia.c:198 sofia/internal/100@172.16.95.9:81 SOFIA EXECUTE
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:328 sofia/internal/100@172.16.95.9:81 Standard EXECUTE
7a45d795-2b97-4cfb-a9fa-be151782bead EXECUTE sofia/internal/100@172.16.95.9:81 bridge(sofia/gateway/reza_gateway/200)
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_ivr_originate.c:2138 Parsing global variables
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [ERR] mod_sofia.c:4437 Invalid Gateway reza_gateway
259e6279-96d5-4734-961b-20540d8a7988 2022-02-10 13:09:24.907608 [NOTICE] mod_sofia.c:4852 Close Channel N/A [CS_NEW]
259e6279-96d5-4734-961b-20540d8a7988 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:741 () Running State Change CS_DESTROY
259e6279-96d5-4734-961b-20540d8a7988 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:751 (N/A) State DESTROY
259e6279-96d5-4734-961b-20540d8a7988 2022-02-10 13:09:24.907608 [DEBUG] mod_sofia.c:343 N/A SOFIA DESTROY
259e6279-96d5-4734-961b-20540d8a7988 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:751 (N/A) State DESTROY going to sleep
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [NOTICE] switch_ivr_originate.c:2841 Cannot create outgoing channel of type [sofia] cause: [INVALID_GATEWAY]
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_ivr_originate.c:3829 Originate Resulted in Error Cause: 608 [INVALID_GATEWAY]
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [INFO] mod_dptools.c:3401 Originate Failed. Cause: INVALID_GATEWAY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [NOTICE] switch_channel.c:4820 Hangup sofia/internal/100@172.16.95.9:81 [CS_EXECUTE] [INVALID_GATEWAY]
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_session.c:2797 sofia/internal/100@172.16.95.9:81 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/100@172.16.95.9:81) State EXECUTE going to sleep
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/100@172.16.95.9:81) Running State Change CS_HANGUP
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/100@172.16.95.9:81) Callstate Change RINGING -> HANGUP
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/100@172.16.95.9:81) State HANGUP
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] mod_sofia.c:438 Channel sofia/internal/100@172.16.95.9:81 hanging up, cause: INVALID_GATEWAY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 484
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:60 sofia/internal/100@172.16.95.9:81 Standard HANGUP, cause: INVALID_GATEWAY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/100@172.16.95.9:81) State HANGUP going to sleep
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/100@172.16.95.9:81) State Change CS_HANGUP -> CS_REPORTING
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/100@172.16.95.9:81) Running State Change CS_REPORTING
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:24.907608 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/100@172.16.95.9:81) State REPORTING
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:174 sofia/internal/100@172.16.95.9:81 Standard REPORTING, cause: INVALID_GATEWAY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/100@172.16.95.9:81) State REPORTING going to sleep
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/100@172.16.95.9:81) State Change CS_REPORTING -> CS_DESTROY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_session.c:1647 Session 9 (sofia/internal/100@172.16.95.9:81) Locked, Waiting on external entities
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [NOTICE] switch_core_session.c:1665 Session 9 (sofia/internal/100@172.16.95.9:81) Ended
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [NOTICE] switch_core_session.c:1669 Close Channel sofia/internal/100@172.16.95.9:81 [CS_DESTROY]
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/100@172.16.95.9:81) Running State Change CS_DESTROY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/100@172.16.95.9:81) State DESTROY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] mod_sofia.c:343 sofia/internal/100@172.16.95.9:81 SOFIA DESTROY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:181 sofia/internal/100@172.16.95.9:81 Standard DESTROY
7a45d795-2b97-4cfb-a9fa-be151782bead 2022-02-10 13:09:25.007690 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/100@172.16.95.9:81) State DESTROY going to sleep
 
Status
Not open for further replies.