Struggling with Wazo Configuration: Need Help with Outbound Calls (Could not create dialog to invalid URI 'Trunk_Name'. Is endpoint registered and reachable?)

Hey guys, I’m having a hard time setting up Wazo. It took me a good two days to get the inbound calls working, but now I’m trying to get the outbound calls up and running.

Just to you know, I managed to sign in users using their line credentials with alphanumeric usernames and passwords. But when I try to make an outbound call, I get some logs about congestion or something like that.

Anyway, I’m attaching the config of my outcall, contexts, extensions, and trunks below.

Can anyone help me out?

These are the logs when I try to make a call using the voip app (I’m using telephone for macOS)

Asterisk Logs

The personal values are replaced in the logs:

  • <my-personal-phonenumber> is a 10 digits number (Brazil)
  • <my-wazo-platform-ip> is the IP where I run Wazo platform
  • <line-user.name> is the username I created in the user line I have changed mine and it has a dot.
[2023-04-27 00:20:18.1279] <--- Received SIP request (1105 bytes) from UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.1279] INVITE sip:<my-personal-phonenumber>@<my-wazo-platform-ip>:5060 SIP/2.0
[2023-04-27 00:20:18.1279] Via: SIP/2.0/UDP 45.177.61.23:57194;rport;branch=z9hG4bKPjtgJdPoo9ueZA2qg0Ba9PYY0QlF4drnDl
[2023-04-27 00:20:18.1279] Max-Forwards: 70
[2023-04-27 00:20:18.1279] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.1279] To: sip:<my-personal-phonenumber>@<my-wazo-platform-ip>
[2023-04-27 00:20:18.1279] Contact: "Wes Guirra" <sip:<line-user.name>@45.177.61.23:57194;ob>
[2023-04-27 00:20:18.1279] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.1279] CSeq: 14210 INVITE
[2023-04-27 00:20:18.1280] Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2023-04-27 00:20:18.1280] Supported: replaces, 100rel, norefersub
[2023-04-27 00:20:18.1280] User-Agent: Telephone 1.6
[2023-04-27 00:20:18.1280] Content-Type: application/sdp
[2023-04-27 00:20:18.1280] Content-Length:   475
[2023-04-27 00:20:18.1280] 
[2023-04-27 00:20:18.1280] v=0
[2023-04-27 00:20:18.1280] o=- 3891543617 3891543617 IN IP4 45.177.61.23
[2023-04-27 00:20:18.1280] s=pjmedia
[2023-04-27 00:20:18.1280] b=AS:117
[2023-04-27 00:20:18.1280] t=0 0
[2023-04-27 00:20:18.1280] a=X-nat:0
[2023-04-27 00:20:18.1280] m=audio 4054 RTP/AVP 96 9 8 0 101 102
[2023-04-27 00:20:18.1280] c=IN IP4 45.177.61.23
[2023-04-27 00:20:18.1280] b=TIAS:96000
[2023-04-27 00:20:18.1280] a=rtcp:4055 IN IP4 10.0.0.108
[2023-04-27 00:20:18.1280] a=sendrecv
[2023-04-27 00:20:18.1280] a=rtpmap:96 opus/48000/2
[2023-04-27 00:20:18.1280] a=fmtp:96 useinbandfec=1
[2023-04-27 00:20:18.1280] a=rtpmap:9 G722/8000
[2023-04-27 00:20:18.1280] a=rtpmap:8 PCMA/8000
[2023-04-27 00:20:18.1280] a=rtpmap:0 PCMU/8000
[2023-04-27 00:20:18.1280] a=rtpmap:101 telephone-event/48000
[2023-04-27 00:20:18.1280] a=fmtp:101 0-16
[2023-04-27 00:20:18.1280] a=rtpmap:102 telephone-event/8000
[2023-04-27 00:20:18.1280] a=fmtp:102 0-16
[2023-04-27 00:20:18.1280] a=ssrc:1467029241 cname:4b0340f7429e3e9a
[2023-04-27 00:20:18.1280] 
[2023-04-27 00:20:18.1282] <--- Transmitting SIP response (565 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.1282] SIP/2.0 401 Unauthorized
[2023-04-27 00:20:18.1282] Via: SIP/2.0/UDP 45.177.61.23:57194;rport=57194;received=45.177.61.23;branch=z9hG4bKPjtgJdPoo9ueZA2qg0Ba9PYY0QlF4drnDl
[2023-04-27 00:20:18.1282] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.1282] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.1282] To: <sip:<my-personal-phonenumber>@<my-wazo-platform-ip>>;tag=z9hG4bKPjtgJdPoo9ueZA2qg0Ba9PYY0QlF4drnDl
[2023-04-27 00:20:18.1282] CSeq: 14210 INVITE
[2023-04-27 00:20:18.1282] WWW-Authenticate: Digest realm="asterisk",nonce="1682554818/9a2558b59519cc0303b1d73308482963",opaque="285f3cf45e91422e",algorithm=MD5,qop="auth"
[2023-04-27 00:20:18.1282] Server: Wazo PBX
[2023-04-27 00:20:18.1283] Content-Length:  0
[2023-04-27 00:20:18.1283] 
[2023-04-27 00:20:18.1283] 
[2023-04-27 00:20:18.2836] <--- Received SIP request (408 bytes) from UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.2836] ACK sip:<my-personal-phonenumber>@<my-wazo-platform-ip>:5060 SIP/2.0
[2023-04-27 00:20:18.2836] Via: SIP/2.0/UDP 45.177.61.23:57194;rport;branch=z9hG4bKPjtgJdPoo9ueZA2qg0Ba9PYY0QlF4drnDl
[2023-04-27 00:20:18.2836] Max-Forwards: 70
[2023-04-27 00:20:18.2836] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.2836] To: sip:<my-personal-phonenumber>@<my-wazo-platform-ip>;tag=z9hG4bKPjtgJdPoo9ueZA2qg0Ba9PYY0QlF4drnDl
[2023-04-27 00:20:18.2837] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.2837] CSeq: 14210 ACK
[2023-04-27 00:20:18.2837] Content-Length:  0
[2023-04-27 00:20:18.2837] 
[2023-04-27 00:20:18.2837] 
[2023-04-27 00:20:18.2852] <--- Received SIP request (1416 bytes) from UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.2852] INVITE sip:<my-personal-phonenumber>@<my-wazo-platform-ip>:5060 SIP/2.0
[2023-04-27 00:20:18.2852] Via: SIP/2.0/UDP 45.177.61.23:57194;rport;branch=z9hG4bKPjZvoc2wazRdfMXwrvNEjrWgkDpyKk16-L
[2023-04-27 00:20:18.2852] Max-Forwards: 70
[2023-04-27 00:20:18.2852] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.2852] To: sip:<my-personal-phonenumber>@<my-wazo-platform-ip>
[2023-04-27 00:20:18.2852] Contact: "Wes Guirra" <sip:<line-user.name>@45.177.61.23:57194;ob>
[2023-04-27 00:20:18.2852] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.2853] CSeq: 14211 INVITE
[2023-04-27 00:20:18.2853] Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2023-04-27 00:20:18.2853] Supported: replaces, 100rel, norefersub
[2023-04-27 00:20:18.2853] User-Agent: Telephone 1.6
[2023-04-27 00:20:18.2853] Authorization: Digest username="<line-user.name>", realm="asterisk", nonce="1682554818/9a2558b59519cc0303b1d73308482963", uri="sip:<my-personal-phonenumber>@<my-wazo-platform-ip>:5060", response="59179dd24fc8049f12e5cba0ce81cdc2", algorithm=MD5, cnonce="opeo5kqIfN7hFssacOsQ9ud7eDhHJQrI", opaque="285f3cf45e91422e", qop=auth, nc=00000001
[2023-04-27 00:20:18.2853] Content-Type: application/sdp
[2023-04-27 00:20:18.2853] Content-Length:   475
[2023-04-27 00:20:18.2853] 
[2023-04-27 00:20:18.2853] v=0
[2023-04-27 00:20:18.2853] o=- 3891543617 3891543617 IN IP4 45.177.61.23
[2023-04-27 00:20:18.2853] s=pjmedia
[2023-04-27 00:20:18.2853] b=AS:117
[2023-04-27 00:20:18.2853] t=0 0
[2023-04-27 00:20:18.2853] a=X-nat:0
[2023-04-27 00:20:18.2853] m=audio 4054 RTP/AVP 96 9 8 0 101 102
[2023-04-27 00:20:18.2853] c=IN IP4 45.177.61.23
[2023-04-27 00:20:18.2853] b=TIAS:96000
[2023-04-27 00:20:18.2853] a=rtcp:4055 IN IP4 10.0.0.108
[2023-04-27 00:20:18.2853] a=sendrecv
[2023-04-27 00:20:18.2853] a=rtpmap:96 opus/48000/2
[2023-04-27 00:20:18.2853] a=fmtp:96 useinbandfec=1
[2023-04-27 00:20:18.2853] a=rtpmap:9 G722/8000
[2023-04-27 00:20:18.2853] a=rtpmap:8 PCMA/8000
[2023-04-27 00:20:18.2853] a=rtpmap:0 PCMU/8000
[2023-04-27 00:20:18.2853] a=rtpmap:101 telephone-event/48000
[2023-04-27 00:20:18.2853] a=fmtp:101 0-16
[2023-04-27 00:20:18.2853] a=rtpmap:102 telephone-event/8000
[2023-04-27 00:20:18.2853] a=fmtp:102 0-16
[2023-04-27 00:20:18.2854] a=ssrc:1467029241 cname:4b0340f7429e3e9a
[2023-04-27 00:20:18.2854] 
[2023-04-27 00:20:18.2855] <--- Transmitting SIP response (367 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.2855] SIP/2.0 100 Trying
[2023-04-27 00:20:18.2855] Via: SIP/2.0/UDP 45.177.61.23:57194;rport=57194;received=45.177.61.23;branch=z9hG4bKPjZvoc2wazRdfMXwrvNEjrWgkDpyKk16-L
[2023-04-27 00:20:18.2855] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.2855] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.2855] To: <sip:<my-personal-phonenumber>@<my-wazo-platform-ip>>
[2023-04-27 00:20:18.2855] CSeq: 14211 INVITE
[2023-04-27 00:20:18.2855] Server: Wazo PBX
[2023-04-27 00:20:18.2855] Content-Length:  0
[2023-04-27 00:20:18.2855] 
[2023-04-27 00:20:18.2855] 
[2023-04-27 00:20:18.2947]     -- Executing [<my-personal-phonenumber>@Endeken_Internal:1] Set("PJSIP/<line-user.name>-00000049", "__XIVO_BASE_CONTEXT=Endeken_Internal") in new stack
[2023-04-27 00:20:18.2947]     -- Executing [<my-personal-phonenumber>@Endeken_Internal:2] Set("PJSIP/<line-user.name>-00000049", "__XIVO_BASE_EXTEN=<my-personal-phonenumber>") in new stack
[2023-04-27 00:20:18.2947]     -- Executing [<my-personal-phonenumber>@Endeken_Internal:3] Gosub("PJSIP/<line-user.name>-00000049", "contextlib,entry-exten-context,1") in new stack
[2023-04-27 00:20:18.2951]     -- Executing [entry-exten-context@contextlib:1] NoOp("PJSIP/<line-user.name>-00000049", "Saving entry context/exten") in new stack
[2023-04-27 00:20:18.3039]     -- Executing [entry-exten-context@contextlib:2] GotoIf("PJSIP/<line-user.name>-00000049", "0?return:") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [entry-exten-context@contextlib:3] Set("PJSIP/<line-user.name>-00000049", "__WAZO_ENTRY_CONTEXT=Endeken_Internal") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [entry-exten-context@contextlib:4] Set("PJSIP/<line-user.name>-00000049", "__WAZO_ENTRY_EXTEN=<my-personal-phonenumber>") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [entry-exten-context@contextlib:5] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [<my-personal-phonenumber>@Endeken_Internal:4] Gosub("PJSIP/<line-user.name>-00000049", "outcall,s,1(2,)") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:1] Set("PJSIP/<line-user.name>-00000049", "XIVO_DSTID=2") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:2] Set("PJSIP/<line-user.name>-00000049", "XIVO_PRESUBR_GLOBAL_NAME=OUTCALL") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:3] Set("PJSIP/<line-user.name>-00000049", "XIVO_SRCNUM=101") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:4] Set("PJSIP/<line-user.name>-00000049", "XIVO_DSTNUM=<my-personal-phonenumber>") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:5] Set("PJSIP/<line-user.name>-00000049", "XIVO_CONTEXT=Endeken_Internal") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:6] Set("PJSIP/<line-user.name>-00000049", "WAZO_CHANNEL_DIRECTION=to-wazo") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:7] Set("PJSIP/<line-user.name>-00000049", "__WAZO_CALL_DIRECTION=outbound") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:8] Gosub("PJSIP/<line-user.name>-00000049", "originate-caller-id,s,1") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@originate-caller-id:1] GotoIf("PJSIP/<line-user.name>-00000049", "0?:name") in new stack
[2023-04-27 00:20:18.3040]     -- Goto (originate-caller-id,s,3)
[2023-04-27 00:20:18.3040]     -- Executing [s@originate-caller-id:3] GotoIf("PJSIP/<line-user.name>-00000049", "0?:fix") in new stack
[2023-04-27 00:20:18.3040]     -- Goto (originate-caller-id,s,5)
[2023-04-27 00:20:18.3040]     -- Executing [s@originate-caller-id:5] GotoIf("PJSIP/<line-user.name>-00000049", "?:end") in new stack
[2023-04-27 00:20:18.3040]     -- Goto (originate-caller-id,s,9)
[2023-04-27 00:20:18.3040]     -- Executing [s@originate-caller-id:9] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.3040]     -- Executing [s@outcall:9] AGI("PJSIP/<line-user.name>-00000049", "agi://localhost/outgoing_user_set_features") in new stack
[2023-04-27 00:20:18.3435]  agi://localhost/outgoing_user_set_features: res ['8abaa5ed-7838-47e4-8cc9-0fa6fab52c24', None, None]
[2023-04-27 00:20:18.3595]  agi://localhost/outgoing_user_set_features: AGI handler 'outgoing_user_set_features' successfully executed
[2023-04-27 00:20:18.3654]     -- <PJSIP/<line-user.name>-00000049>AGI Script agi://localhost/outgoing_user_set_features completed, returning 0
[2023-04-27 00:20:18.3654]     -- Executing [s@outcall:10] Gosub("PJSIP/<line-user.name>-00000049", "wazo-setup-userevent-dial-echo,s,1") in new stack
[2023-04-27 00:20:18.3655]     -- Executing [s@wazo-setup-userevent-dial-echo:1] GotoIf("PJSIP/<line-user.name>-00000049", "0?:return") in new stack
[2023-04-27 00:20:18.3655]     -- Goto (wazo-setup-userevent-dial-echo,s,3)
[2023-04-27 00:20:18.3655]     -- Executing [s@wazo-setup-userevent-dial-echo:3] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.3655]     -- Executing [s@outcall:11] Gosub("PJSIP/<line-user.name>-00000049", "xivo-subroutine,s,1()") in new stack
[2023-04-27 00:20:18.3655]     -- Executing [s@xivo-subroutine:1] GotoIf("PJSIP/<line-user.name>-00000049", "?:nosubroutine") in new stack
[2023-04-27 00:20:18.3655]     -- Goto (xivo-subroutine,s,4)
[2023-04-27 00:20:18.3655]     -- Executing [s@xivo-subroutine:4] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.3655]     -- Executing [s@outcall:12] Gosub("PJSIP/<line-user.name>-00000049", "xivo-user_rights_check,s,1") in new stack
[2023-04-27 00:20:18.3655]     -- Executing [s@xivo-user_rights_check:1] AGI("PJSIP/<line-user.name>-00000049", "agi://localhost/user_set_call_rights") in new stack
[2023-04-27 00:20:18.3889]  agi://localhost/user_set_call_rights: AGI handler 'user_set_call_rights' successfully executed
[2023-04-27 00:20:18.3907]     -- <PJSIP/<line-user.name>-00000049>AGI Script agi://localhost/user_set_call_rights completed, returning 0
[2023-04-27 00:20:18.3907]     -- Executing [s@xivo-user_rights_check:2] GotoIf("PJSIP/<line-user.name>-00000049", "ALLOW?:error,1") in new stack
[2023-04-27 00:20:18.3907]     -- Executing [s@xivo-user_rights_check:3] GotoIf("PJSIP/<line-user.name>-00000049", "1?allow,1") in new stack
[2023-04-27 00:20:18.3907]     -- Goto (xivo-user_rights_check,allow,1)
[2023-04-27 00:20:18.3907]     -- Executing [allow@xivo-user_rights_check:1] NoOp("PJSIP/<line-user.name>-00000049", "User allowed to make call") in new stack
[2023-04-27 00:20:18.3907]     -- Executing [allow@xivo-user_rights_check:2] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.3907]     -- Executing [s@outcall:13] AGI("PJSIP/<line-user.name>-00000049", "agi://localhost/check_schedule") in new stack
[2023-04-27 00:20:18.4209]  agi://localhost/check_schedule: AGI handler 'check_schedule' successfully executed
[2023-04-27 00:20:18.4219]     -- <PJSIP/<line-user.name>-00000049>AGI Script agi://localhost/check_schedule completed, returning 0
[2023-04-27 00:20:18.4220]     -- Executing [s@outcall:14] GotoIf("PJSIP/<line-user.name>-00000049", "0?CLOSED,1") in new stack
[2023-04-27 00:20:18.4220]     -- Executing [s@outcall:15] AGI("PJSIP/<line-user.name>-00000049", "agi://localhost/record_caller") in new stack
[2023-04-27 00:20:18.4490]  agi://localhost/record_caller: AGI handler 'record_caller' successfully executed
[2023-04-27 00:20:18.4522]     -- <PJSIP/<line-user.name>-00000049>AGI Script agi://localhost/record_caller completed, returning 0
[2023-04-27 00:20:18.4522]     -- Executing [s@outcall:16] GotoIf("PJSIP/<line-user.name>-00000049", "PJSIP?:error,1") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [s@outcall:17] Set("PJSIP/<line-user.name>-00000049", "TRUNKINDEX=0") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [s@outcall:18] Goto("PJSIP/<line-user.name>-00000049", "dial,1") in new stack
[2023-04-27 00:20:18.4522]     -- Goto (outcall,dial,1)
[2023-04-27 00:20:18.4522]     -- Executing [dial@outcall:1] Set("PJSIP/<line-user.name>-00000049", "INTERFACE=PJSIP") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [dial@outcall:2] Set("PJSIP/<line-user.name>-00000049", "TRUNKEXTEN=<my-personal-phonenumber>@Endeken_Trunk") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [dial@outcall:3] Set("PJSIP/<line-user.name>-00000049", "TRUNKSUFFIX=") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [dial@outcall:4] Gosub("PJSIP/<line-user.name>-00000049", "xivo-global-subroutine,s,1") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [s@xivo-global-subroutine:1] GotoIf("PJSIP/<line-user.name>-00000049", "1?:return") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [s@xivo-global-subroutine:2] GotoIf("PJSIP/<line-user.name>-00000049", "OUTCALL?:return") in new stack
[2023-04-27 00:20:18.4522]     -- Executing [s@xivo-global-subroutine:3] GotoIf("PJSIP/<line-user.name>-00000049", "xivo-subrgbl-outcall?:return") in new stack
[2023-04-27 00:20:18.4682]     -- Executing [s@xivo-global-subroutine:4] GotoIf("PJSIP/<line-user.name>-00000049", "0?:return") in new stack
[2023-04-27 00:20:18.4682]     -- Goto (xivo-global-subroutine,s,6)
[2023-04-27 00:20:18.4682]     -- Executing [s@xivo-global-subroutine:6] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.4682]     -- Executing [dial@outcall:5] CELGenUserEvent("PJSIP/<line-user.name>-00000049", "XIVO_OUTCALL") in new stack
[2023-04-27 00:20:18.4682]     -- Executing [dial@outcall:6] Set("PJSIP/<line-user.name>-00000049", "CONNECTEDLINE(num,i)=<my-personal-phonenumber>") in new stack
[2023-04-27 00:20:18.4682]     -- Executing [dial@outcall:7] Gosub("PJSIP/<line-user.name>-00000049", "wazo-schedule-pre-dial-hooks,s,1") in new stack
[2023-04-27 00:20:18.4682]     -- Executing [s@wazo-schedule-pre-dial-hooks:1] AGI("PJSIP/<line-user.name>-00000049", "agi://localhost/ignore_b_option") in new stack
[2023-04-27 00:20:18.4927]  agi://localhost/ignore_b_option: AGI handler 'ignore_b_option' successfully executed
[2023-04-27 00:20:18.4955]     -- <PJSIP/<line-user.name>-00000049>AGI Script agi://localhost/ignore_b_option completed, returning 0
[2023-04-27 00:20:18.4955]     -- Executing [s@wazo-schedule-pre-dial-hooks:2] GotoIf("PJSIP/<line-user.name>-00000049", "?:done") in new stack
[2023-04-27 00:20:18.4955]     -- Goto (wazo-schedule-pre-dial-hooks,s,4)
[2023-04-27 00:20:18.4955]     -- Executing [s@wazo-schedule-pre-dial-hooks:4] Return("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.4955]     -- Executing [dial@outcall:8] Dial("PJSIP/<line-user.name>-00000049", "PJSIP/<my-personal-phonenumber>@Endeken_Trunk,60,o(<my-personal-phonenumber>)") in new stack
[2023-04-27 00:20:18.4955] ERROR[13706]: res_pjsip.c:852 ast_sip_create_dialog_uac: Endpoint 'Endeken_Trunk': Could not create dialog to invalid URI 'Endeken_Trunk'.  Is endpoint registered and reachable?
[2023-04-27 00:20:18.4955] ERROR[13706]: chan_pjsip.c:2681 request: Failed to create outgoing session to endpoint 'Endeken_Trunk'
[2023-04-27 00:20:18.4956] NOTICE[19905][C-0000003a]: app_dial.c:2707 dial_exec_full: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
[2023-04-27 00:20:18.4976]   == Everyone is busy/congested at this time (1:0/0/1)
[2023-04-27 00:20:18.4977]     -- Executing [dial@outcall:9] Goto("PJSIP/<line-user.name>-00000049", "CHANUNAVAIL,1") in new stack
[2023-04-27 00:20:18.4977]     -- Goto (outcall,CHANUNAVAIL,1)
[2023-04-27 00:20:18.4977]     -- Executing [CHANUNAVAIL@outcall:1] Goto("PJSIP/<line-user.name>-00000049", "redial,1") in new stack
[2023-04-27 00:20:18.4977]     -- Goto (outcall,redial,1)
[2023-04-27 00:20:18.4977]     -- Executing [redial@outcall:1] Set("PJSIP/<line-user.name>-00000049", "TRUNKINDEX=1") in new stack
[2023-04-27 00:20:18.4977]     -- Executing [redial@outcall:2] GotoIf("PJSIP/<line-user.name>-00000049", "?dial,1") in new stack
[2023-04-27 00:20:18.4977]     -- Executing [redial@outcall:3] Playback("PJSIP/<line-user.name>-00000049", "congestion-call") in new stack
[2023-04-27 00:20:18.4978]        > 0x7f5cc40a1260 -- Strict RTP learning after remote address set to: 45.177.61.23:4054
[2023-04-27 00:20:18.4978] <--- Transmitting SIP response (865 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.4978] SIP/2.0 200 OK
[2023-04-27 00:20:18.4978] Via: SIP/2.0/UDP 45.177.61.23:57194;rport=57194;received=45.177.61.23;branch=z9hG4bKPjZvoc2wazRdfMXwrvNEjrWgkDpyKk16-L
[2023-04-27 00:20:18.4978] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.4978] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.4978] To: <sip:<my-personal-phonenumber>@<my-wazo-platform-ip>>;tag=24976b81-6f03-4834-963f-ad6395d0840a
[2023-04-27 00:20:18.4978] CSeq: 14211 INVITE
[2023-04-27 00:20:18.4978] Server: Wazo PBX
[2023-04-27 00:20:18.4978] Contact: <sip:172.26.3.20:5060>
[2023-04-27 00:20:18.4978] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[2023-04-27 00:20:18.4978] Supported: 100rel, timer, replaces, norefersub
[2023-04-27 00:20:18.4978] Content-Type: application/sdp
[2023-04-27 00:20:18.4978] Content-Length:   235
[2023-04-27 00:20:18.4978] 
[2023-04-27 00:20:18.4978] v=0
[2023-04-27 00:20:18.4978] o=- 3891543617 3891543619 IN IP4 172.26.3.20
[2023-04-27 00:20:18.4978] s=Asterisk
[2023-04-27 00:20:18.4978] c=IN IP4 172.26.3.20
[2023-04-27 00:20:18.4978] t=0 0
[2023-04-27 00:20:18.4978] m=audio 14896 RTP/AVP 0 102
[2023-04-27 00:20:18.4978] a=rtpmap:0 PCMU/8000
[2023-04-27 00:20:18.4979] a=rtpmap:102 telephone-event/8000
[2023-04-27 00:20:18.4979] a=fmtp:102 0-16
[2023-04-27 00:20:18.4979] a=ptime:20
[2023-04-27 00:20:18.4979] a=maxptime:150
[2023-04-27 00:20:18.4979] a=sendrecv
[2023-04-27 00:20:18.4979] 
[2023-04-27 00:20:18.9973] <--- Transmitting SIP response (865 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:18.9973] SIP/2.0 200 OK
[2023-04-27 00:20:18.9973] Via: SIP/2.0/UDP 45.177.61.23:57194;rport=57194;received=45.177.61.23;branch=z9hG4bKPjZvoc2wazRdfMXwrvNEjrWgkDpyKk16-L
[2023-04-27 00:20:18.9973] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:18.9973] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:18.9973] To: <sip:<my-personal-phonenumber>@<my-wazo-platform-ip>>;tag=24976b81-6f03-4834-963f-ad6395d0840a
[2023-04-27 00:20:18.9973] CSeq: 14211 INVITE
[2023-04-27 00:20:18.9973] Server: Wazo PBX
[2023-04-27 00:20:18.9973] Contact: <sip:172.26.3.20:5060>
[2023-04-27 00:20:18.9973] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[2023-04-27 00:20:18.9973] Supported: 100rel, timer, replaces, norefersub
[2023-04-27 00:20:18.9973] Content-Type: application/sdp
[2023-04-27 00:20:18.9973] Content-Length:   235
[2023-04-27 00:20:18.9973] 
[2023-04-27 00:20:18.9973] v=0
[2023-04-27 00:20:18.9973] o=- 3891543617 3891543619 IN IP4 172.26.3.20
[2023-04-27 00:20:18.9973] s=Asterisk
[2023-04-27 00:20:18.9973] c=IN IP4 172.26.3.20
[2023-04-27 00:20:18.9973] t=0 0
[2023-04-27 00:20:18.9973] m=audio 14896 RTP/AVP 0 102
[2023-04-27 00:20:18.9973] a=rtpmap:0 PCMU/8000
[2023-04-27 00:20:18.9973] a=rtpmap:102 telephone-event/8000
[2023-04-27 00:20:18.9973] a=fmtp:102 0-16
[2023-04-27 00:20:18.9973] a=ptime:20
[2023-04-27 00:20:18.9974] a=maxptime:150
[2023-04-27 00:20:18.9974] a=sendrecv
[2023-04-27 00:20:18.9974] 
[2023-04-27 00:20:18.9981] WARNING[19905][C-0000003a]: file.c:824 ast_openstream_full: File congestion-call does not exist in any format
[2023-04-27 00:20:18.9981] WARNING[19905][C-0000003a]: file.c:1303 ast_streamfile: Unable to open congestion-call (format (ulaw)): No such file or directory
[2023-04-27 00:20:18.9981] WARNING[19905][C-0000003a]: app_playback.c:512 playback_exec: Playback failed on PJSIP/<line-user.name>-00000049 for congestion-call
[2023-04-27 00:20:18.9993]     -- Executing [redial@outcall:4] Hangup("PJSIP/<line-user.name>-00000049", "") in new stack
[2023-04-27 00:20:18.9993]   == Spawn extension (outcall, redial, 4) exited non-zero on 'PJSIP/<line-user.name>-00000049'
[2023-04-27 00:20:19.9693] <--- Transmitting SIP request (437 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:19.9693] OPTIONS sip:<line-user.name>@45.177.61.23:57194;ob SIP/2.0
[2023-04-27 00:20:19.9693] Via: SIP/2.0/UDP 172.26.3.20:5060;rport;branch=z9hG4bKPjb73d8529-8f0c-46f2-95c0-cffdbc273e95
[2023-04-27 00:20:19.9693] From: <sip:<line-user.name>@172.26.3.20>;tag=18aa0359-0815-4cdd-8490-7a5bc6384ca5
[2023-04-27 00:20:19.9693] To: <sip:<line-user.name>@45.177.61.23;ob>
[2023-04-27 00:20:19.9693] Contact: <sip:<line-user.name>@172.26.3.20:5060>
[2023-04-27 00:20:19.9693] Call-ID: cfc92915-393c-44f1-b594-2d81aea2ff59
[2023-04-27 00:20:19.9693] CSeq: 56335 OPTIONS
[2023-04-27 00:20:19.9693] Max-Forwards: 70
[2023-04-27 00:20:19.9693] User-Agent: Wazo PBX
[2023-04-27 00:20:19.9693] Content-Length:  0
[2023-04-27 00:20:19.9694] 
[2023-04-27 00:20:19.9694] 
[2023-04-27 00:20:19.9976] <--- Transmitting SIP response (865 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:19.9976] SIP/2.0 200 OK
[2023-04-27 00:20:19.9976] Via: SIP/2.0/UDP 45.177.61.23:57194;rport=57194;received=45.177.61.23;branch=z9hG4bKPjZvoc2wazRdfMXwrvNEjrWgkDpyKk16-L
[2023-04-27 00:20:19.9976] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:19.9976] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:19.9976] To: <sip:<my-personal-phonenumber>@<my-wazo-platform-ip>>;tag=24976b81-6f03-4834-963f-ad6395d0840a
[2023-04-27 00:20:19.9976] CSeq: 14211 INVITE
[2023-04-27 00:20:19.9976] Server: Wazo PBX
[2023-04-27 00:20:19.9976] Contact: <sip:172.26.3.20:5060>
[2023-04-27 00:20:19.9976] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[2023-04-27 00:20:19.9976] Supported: 100rel, timer, replaces, norefersub
[2023-04-27 00:20:19.9976] Content-Type: application/sdp
[2023-04-27 00:20:19.9976] Content-Length:   235
[2023-04-27 00:20:19.9976] 
[2023-04-27 00:20:19.9976] v=0
[2023-04-27 00:20:19.9976] o=- 3891543617 3891543619 IN IP4 172.26.3.20
[2023-04-27 00:20:19.9976] s=Asterisk
[2023-04-27 00:20:19.9976] c=IN IP4 172.26.3.20
[2023-04-27 00:20:19.9976] t=0 0
[2023-04-27 00:20:19.9976] m=audio 14896 RTP/AVP 0 102
[2023-04-27 00:20:19.9976] a=rtpmap:0 PCMU/8000
[2023-04-27 00:20:19.9976] a=rtpmap:102 telephone-event/8000
[2023-04-27 00:20:19.9977] a=fmtp:102 0-16
[2023-04-27 00:20:19.9977] a=ptime:20
[2023-04-27 00:20:19.9977] a=maxptime:150
[2023-04-27 00:20:19.9977] a=sendrecv
[2023-04-27 00:20:19.9977] 
[2023-04-27 00:20:20.1237] <--- Received SIP response (792 bytes) from UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:20.1237] SIP/2.0 200 OK
[2023-04-27 00:20:20.1237] Via: SIP/2.0/UDP 172.26.3.20:5060;rport=5060;received=<my-wazo-platform-ip>;branch=z9hG4bKPjb73d8529-8f0c-46f2-95c0-cffdbc273e95
[2023-04-27 00:20:20.1237] Call-ID: cfc92915-393c-44f1-b594-2d81aea2ff59
[2023-04-27 00:20:20.1237] From: <sip:<line-user.name>@172.26.3.20>;tag=18aa0359-0815-4cdd-8490-7a5bc6384ca5
[2023-04-27 00:20:20.1237] To: <sip:<line-user.name>@45.177.61.23;ob>;tag=z9hG4bKPjb73d8529-8f0c-46f2-95c0-cffdbc273e95
[2023-04-27 00:20:20.1237] CSeq: 56335 OPTIONS
[2023-04-27 00:20:20.1237] Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
[2023-04-27 00:20:20.1237] Accept: application/sdp, application/pidf+xml, application/xpidf+xml, application/simple-message-summary, message/sipfrag;version=2.0, application/im-iscomposing+xml, text/plain
[2023-04-27 00:20:20.1237] Supported: replaces, 100rel, timer, norefersub
[2023-04-27 00:20:20.1237] Allow-Events: presence, message-summary, refer
[2023-04-27 00:20:20.1237] User-Agent: Telephone 1.6
[2023-04-27 00:20:20.1237] Content-Length:  0
[2023-04-27 00:20:20.1237] 
[2023-04-27 00:20:20.1237] 
[2023-04-27 00:20:21.9969] <--- Transmitting SIP response (865 bytes) to UDP:45.177.61.23:57194 --->
[2023-04-27 00:20:21.9969] SIP/2.0 200 OK
[2023-04-27 00:20:21.9969] Via: SIP/2.0/UDP 45.177.61.23:57194;rport=57194;received=45.177.61.23;branch=z9hG4bKPjZvoc2wazRdfMXwrvNEjrWgkDpyKk16-L
[2023-04-27 00:20:21.9969] Call-ID: 4upWjmPktb-8kI62JBMEtFuAtIR2mA2y
[2023-04-27 00:20:21.9969] From: "Wes Guirra" <sip:<line-user.name>@<my-wazo-platform-ip>>;tag=AiOctCkzYQFkADEyaYmQNBmfQBTeLAGe
[2023-04-27 00:20:21.9969] To: <sip:<my-personal-phonenumber>@<my-wazo-platform-ip>>;tag=24976b81-6f03-4834-963f-ad6395d0840a
[2023-04-27 00:20:21.9969] CSeq: 14211 INVITE
[2023-04-27 00:20:21.9969] Server: Wazo PBX
[2023-04-27 00:20:21.9969] Contact: <sip:172.26.3.20:5060>
[2023-04-27 00:20:21.9969] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[2023-04-27 00:20:21.9970] Supported: 100rel, timer, replaces, norefersub
[2023-04-27 00:20:21.9970] Content-Type: application/sdp
[2023-04-27 00:20:21.9970] Content-Length:   235
[2023-04-27 00:20:21.9970] 
[2023-04-27 00:20:21.9970] v=0
[2023-04-27 00:20:21.9970] o=- 3891543617 3891543619 IN IP4 172.26.3.20
[2023-04-27 00:20:21.9970] s=Asterisk
[2023-04-27 00:20:21.9970] c=IN IP4 172.26.3.20
[2023-04-27 00:20:21.9970] t=0 0
[2023-04-27 00:20:21.9970] m=audio 14896 RTP/AVP 0 102
[2023-04-27 00:20:21.9970] a=rtpmap:0 PCMU/8000
[2023-04-27 00:20:21.9970] a=rtpmap:102 telephone-event/8000
[2023-04-27 00:20:21.9970] a=fmtp:102 0-16
[2023-04-27 00:20:21.9970] a=ptime:20
[2023-04-27 00:20:21.9970] a=maxptime:150
[2023-04-27 00:20:21.9970] a=sendrecv
[2023-04-27 00:20:21.9970] 
[2023-04-27 00:20:22.1850]   == Manager 'xivo_munin_user' logged off from 127.0.0.1
[2023-04-27 00:20:22.4398]   == Manager 'xivo_munin_user' logged on from 127.0.0.1

Just to complement, I have a FreePBX server which I’m using the same information and can make outbound calls, I want to migrate to wazo, to be able to record calls, and because I found it more intuitive at first.

Please can someone help me?

@quintana if not you can reirect to someone?

Hello, looks like an issue with your trunk. It seems is not connected correctly.
Have you add an aor for your trunk?

Hi @quintana,

Understood, I don’t know what I need to fill at AOR on Trunk config, it’s currently empty.

[EDIT]
Thanks @quintana adding the option contact with the value sip:<trunk-ip> fixed it, now I can make outcalls.

One thing that is happening now, is that from my user I can make call, the other person user also can make calls, but the call is muted, I have already checked the hardware everything is okay, I can’t figure out what’s happening with her user.

Don’t know if it matters but I’m seeing these logs:

[2023-04-27 17:37:15.9946] WARNING[12240]: res_pjsip_outbound_registration.c:1043 schedule_retry: Temporal response '401' received from 'sip:179.108.84.136' on registration attempt to 'sip:<phone>@179.108.84.136', retrying in '20'
[2023-04-27 17:37:36.1246] ERROR[12240]: res_pjsip_outbound_authenticator_digest.c:450 digest_create_request_with_auth: Host: '179.108.84.136:5060': There were no auth ids available
[2023-04-27 17:37:36.1246] WARNING[12240]: res_pjsip_outbound_registration.c:1299 handle_registration_response: Failed to create authenticated REGISTER request to server 'sip:179.108.84.136' from client 'sip:<phone>@179.108.84.136'
[2023-04-27 17:37:36.1246] WARNING[12240]: res_pjsip_outbound_registration.c:1043 schedule_retry: Temporal response '401' received from 'sip:179.108.84.136' on registration attempt to 'sip:<phone>@179.108.84.136', retrying in '20'

I tried to remove the server_uri, client_uri from Registration tab, but it seems that when I do it the configuration starts to be invalid

This is probably a nat issue. When you say muted, it’s probably there is not audio between your users. Would be great to check your SDP. If you don’t know sngrep please install it and check you invite.
For the Nat configuration check out documentation.

It’s specific to one user, I tried with mine, and it’s working, just this particular user, when she makes a call, the call stay muted, another thing that is very strange is that call is during only 31 seconds then drops.

Without sip capture it’s complicated to answer ;-).

Sorry I didn’t get, sip capture is a kind of log? how can I get this?

Install sngrep and check some tuto, it’s a really nice tool.