Still working on the SIP trace, but noted something else - I am running the ‘noanswer’ subroutine so that the call is not connected while ringing the extensions, but only on connection. If the regular extensions pick up, no problem - but if the mobile extension answers there is no audio in either direction.
If, however, I remove the noanswer subroutine so that the trunk is connected to the session while ringing, if the mobile extension answers there is audio in both directions. There are some old posts on this issue and people setting the fax flag - which effectively does the same thing, connects the trunk and starts the call while ringing the extensions.
Here is a log where all 3 numbers are ringing and the mobile phone answers and receives no audio and disconnects:
[Oct 8 22:22:51] -- Executing [dial@outcall:7] Dial("Local/**mobile_number**@default-00000053;2", "PJSIP/**mobile_number**@flowroute,,o(**mobile_number**)") in new stack
[Oct 8 22:22:51] -- Called PJSIP/**mobile_number**@flowroute
[Oct 8 22:22:51] -- Local/715@default-00000051;1 connected line has changed. Saving it until answer for PJSIP/flowroute-0000005d
[Oct 8 22:22:53] > 0x7f5c4009d6d0 -- Strict RTP learning after remote address set to: 23.29.23.43:26640
[Oct 8 22:22:53] -- PJSIP/flowroute-00000060 is making progress passing it to Local/**mobile_number**@default-00000053;2
[Oct 8 22:22:53] -- Local/**mobile_number**@default-00000053;1 is making progress passing it to Local/715@default-00000051;2
[Oct 8 22:22:53] -- PJSIP/flowroute-00000060 is making progress passing it to Local/**mobile_number**@default-00000053;2
[Oct 8 22:22:53] -- Local/**mobile_number**@default-00000053;1 is making progress passing it to Local/715@default-00000051;2
[Oct 8 22:22:54] == Everyone is busy/congested at this time (1:1/0/0)
[Oct 8 22:22:54] -- Executing [15f5345f-d33b-4259-be4b-1140cc48e2e0@usersharedlines:3] Hangup("Local/15f5345f-d33b-4259-be4b-1140cc48e2e0@usersharedlines-00000052;2", "") in new stack
[Oct 8 22:22:54] == Spawn extension (usersharedlines, 15f5345f-d33b-4259-be4b-1140cc48e2e0, 3) exited non-zero on 'Local/15f5345f-d33b-4259-be4b-1140cc48e2e0@usersharedlines-00000052;2'
[Oct 8 22:22:54] -- Nobody picked up in 3000 ms
[Oct 8 22:22:54] -- PJSIP/flowroute-00000060 is ringing
[Oct 8 22:22:54] -- Local/**mobile_number**@default-00000053;1 is ringing
[Oct 8 22:22:54] -- PJSIP/flowroute-00000060 is ringing
[Oct 8 22:22:54] -- Local/715@default-00000051;1 is ringing
wazo*CLI> pjsip set logger on
PJSIP Logging enabled
...
[Oct 8 22:23:03] <--- Received SIP response (778 bytes) from UDP:147.75.65.194:5060 --->
[Oct 8 22:23:03] SIP/2.0 200 OK
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:**inbound_number**@**wazo_server**>;tag=85bb724b-f278-4b44-a14d-31c654d37f9e
[Oct 8 22:23:03] To: <sip:**mobile_number**@us-east-nj.sip.flowroute.com>;tag=gK0b9eba8a
[Oct 8 22:23:03] Via: SIP/2.0/UDP **wazo_server**:5060;received=**wazo_publicip**;rport=5060;branch=z9hG4bKPjd2f8501d-07ef-4ed7-b4eb-4d0ec5ca6d06
[Oct 8 22:23:03] Call-ID: a0b2ffd0-c020-4fd9-8b65-44a2a6e1b72e
[Oct 8 22:23:03] CSeq: 2160 INVITE
[Oct 8 22:23:03] Record-Route: <sip:34.208.30.89:5060;lr>
[Oct 8 22:23:03] Record-Route: <sip:147.75.65.194:5060;lr>
[Oct 8 22:23:03] Contact: <sip:+**mobile_number**@23.29.23.36:5060>
[Oct 8 22:23:03] Session-Expires: 600;refresher=uas
[Oct 8 22:23:03] Content-Length: 170
[Oct 8 22:23:03] Content-Type: application/sdp
[Oct 8 22:23:03] Supported: timer
[Oct 8 22:23:03]
[Oct 8 22:23:03] v=0
[Oct 8 22:23:03] o=- 17130 5945 IN IP4 23.29.23.43
[Oct 8 22:23:03] s=-
[Oct 8 22:23:03] c=IN IP4 23.29.23.43
[Oct 8 22:23:03] t=0 0
[Oct 8 22:23:03] m=audio 26640 RTP/AVP 0 101
[Oct 8 22:23:03] a=rtpmap:101 telephone-event/8000
[Oct 8 22:23:03] a=fmtp:101 0-15
[Oct 8 22:23:03] a=maxptime:20
[Oct 8 22:23:03]
[Oct 8 22:23:03] <--- Transmitting SIP request (502 bytes) to UDP:147.75.65.194:5060 --->
[Oct 8 22:23:03] ACK sip:+**mobile_number**@23.29.23.36:5060 SIP/2.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP **wazo_server**:5060;rport;branch=z9hG4bKPj8d9fe9f4-c653-413e-8243-c286765a7b19
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:**inbound_number**@**wazo_server**>;tag=85bb724b-f278-4b44-a14d-31c654d37f9e
[Oct 8 22:23:03] To: <sip:**mobile_number**@us-east-nj.sip.flowroute.com>;tag=gK0b9eba8a
[Oct 8 22:23:03] Call-ID: a0b2ffd0-c020-4fd9-8b65-44a2a6e1b72e
[Oct 8 22:23:03] CSeq: 2160 ACK
[Oct 8 22:23:03] Route: <sip:147.75.65.194:5060;lr>
[Oct 8 22:23:03] Route: <sip:34.208.30.89:5060;lr>
[Oct 8 22:23:03] Max-Forwards: 70
[Oct 8 22:23:03] User-Agent: Wazo PBX
[Oct 8 22:23:03] Content-Length: 0
[Oct 8 22:23:03]
[Oct 8 22:23:03]
[Oct 8 22:23:03] -- PJSIP/flowroute-00000060 answered Local/**mobile_number**@default-00000053;2
[Oct 8 22:23:03] -- Local/**mobile_number**@default-00000053;1 answered Local/715@default-00000051;2
[Oct 8 22:23:03] -- Channel PJSIP/flowroute-00000060 joined 'simple_bridge' basic-bridge <91bfc8e7-0d65-421b-b0c9-8ac7293bf203>
[Oct 8 22:23:03] -- Local/715@default-00000051;1 answered PJSIP/flowroute-0000005d
[Oct 8 22:23:03] -- Channel Local/**mobile_number**@default-00000053;2 joined 'simple_bridge' basic-bridge <91bfc8e7-0d65-421b-b0c9-8ac7293bf203>
[Oct 8 22:23:03] -- Channel Local/**mobile_number**@default-00000053;1 joined 'simple_bridge' basic-bridge <045258c7-e735-422c-be2a-868f2a2c1aae>
[Oct 8 22:23:03] == Spawn extension (usersharedlines, 48a1abce-470c-4aa3-a3d0-deb476b30320, 2) exited non-zero on 'Local/48a1abce-470c-4aa3-a3d0-deb476b30320@usersharedlines-00000050;2'
[Oct 8 22:23:03] <--- Transmitting SIP request (482 bytes) to UDP:192.168.20.36:5060 --->
[Oct 8 22:23:03] CANCEL sip:9dqckhfv@192.168.20.36:5060 SIP/2.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP **wazo_server**:5060;rport;branch=z9hG4bKPj1b469b15-8f73-4ec8-a8d9-61c09954c6b6
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:**inbound_number**@**wazo_server**>;tag=9ada384d-47fd-4e30-a187-42428fbd525f
[Oct 8 22:23:03] To: <sip:9dqckhfv@192.168.20.36>
[Oct 8 22:23:03] Call-ID: a1ef3aed-7e47-42c0-8545-f099fdc7fd4a
[Oct 8 22:23:03] CSeq: 31309 CANCEL
[Oct 8 22:23:03] Reason: SIP;cause=200;text="Call completed elsewhere"
[Oct 8 22:23:03] Reason: Q.850;cause=26
[Oct 8 22:23:03] Max-Forwards: 70
[Oct 8 22:23:03] User-Agent: Wazo PBX
[Oct 8 22:23:03] Content-Length: 0
[Oct 8 22:23:03]
[Oct 8 22:23:03]
[Oct 8 22:23:03] -- Channel Local/715@default-00000051;2 joined 'simple_bridge' basic-bridge <045258c7-e735-422c-be2a-868f2a2c1aae>
[Oct 8 22:23:03] > 0x7f5c3402cdd0 -- Strict RTP learning after remote address set to: 23.29.21.90:33862
[Oct 8 22:23:03] <--- Transmitting SIP response (1203 bytes) to UDP:147.75.65.194:5060 --->
[Oct 8 22:23:03] SIP/2.0 200 OK
[Oct 8 22:23:03] Via: SIP/2.0/UDP 147.75.65.194;rport=5060;received=147.75.65.194;branch=z9hG4bK7402.998c8d1f0249596c2d6eb6666a7d687d.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP 54.71.6.127:5060;branch=z9hG4bK7402.5f070bcbb98785efe3b4a1dc42408c82.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP 35.173.62.45:5060;branch=z9hG4bK7402.65b4732b1aec66a86fab9982de550fe7.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP 23.29.21.86:5060;branch=z9hG4bK07Bb6ac7b169f8e1613
[Oct 8 22:23:03] Record-Route: <sip:147.75.65.194;lr>
[Oct 8 22:23:03] Record-Route: <sip:35.173.62.45;lr>
[Oct 8 22:23:03] Call-ID: 856100557_124991049@23.29.21.86
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:+**inbound_number**@fl.gg>;tag=gK073ea07e
[Oct 8 22:23:03] To: <sip:**wazo_trunk**@fl.gg>;tag=4b6c02b8-db7b-472d-b21a-80966b7a35e4
[Oct 8 22:23:03] CSeq: 13902 INVITE
[Oct 8 22:23:03] Server: Wazo PBX
[Oct 8 22:23:03] Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
[Oct 8 22:23:03] Contact: <sip:**wazo_server**:5060>
[Oct 8 22:23:03] Supported: 100rel, timer, replaces, norefersub
[Oct 8 22:23:03] Session-Expires: 1800;refresher=uac
[Oct 8 22:23:03] Require: timer
[Oct 8 22:23:03] Content-Type: application/sdp
[Oct 8 22:23:03] Content-Length: 226
[Oct 8 22:23:03]
[Oct 8 22:23:03] v=0
[Oct 8 22:23:03] o=- 24258 9155 IN IP4 **wazo_server**
[Oct 8 22:23:03] s=Asterisk
[Oct 8 22:23:03] c=IN IP4 **wazo_server**
[Oct 8 22:23:03] t=0 0
[Oct 8 22:23:03] m=audio 19274 RTP/AVP 0 101
[Oct 8 22:23:03] a=rtpmap:0 PCMU/8000
[Oct 8 22:23:03] a=rtpmap:101 telephone-event/8000
[Oct 8 22:23:03] a=fmtp:101 0-16
[Oct 8 22:23:03] a=ptime:20
[Oct 8 22:23:03] a=maxptime:150
[Oct 8 22:23:03] a=sendrecv
[Oct 8 22:23:03]
[Oct 8 22:23:03] -- Channel Local/715@default-00000051;1 joined 'simple_bridge' basic-bridge <a68a7da7-2649-4a0e-a0fe-92500563e171>
[Oct 8 22:23:03] -- Channel PJSIP/flowroute-0000005d joined 'simple_bridge' basic-bridge <a68a7da7-2649-4a0e-a0fe-92500563e171>
[Oct 8 22:23:03] <--- Received SIP response (396 bytes) from UDP:192.168.20.36:5060 --->
[Oct 8 22:23:03] SIP/2.0 487 Request Terminated
[Oct 8 22:23:03] To: <sip:9dqckhfv@192.168.20.36>;tag=b816c4d9cba5b109i0
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:**inbound_number**@**wazo_server**>;tag=9ada384d-47fd-4e30-a187-42428fbd525f
[Oct 8 22:23:03] Call-ID: a1ef3aed-7e47-42c0-8545-f099fdc7fd4a
[Oct 8 22:23:03] CSeq: 31309 INVITE
[Oct 8 22:23:03] Via: SIP/2.0/UDP **wazo_server**:5060;branch=z9hG4bKPj1b469b15-8f73-4ec8-a8d9-61c09954c6b6
[Oct 8 22:23:03] Server: Cisco/SPA112-1.4.0(001)
[Oct 8 22:23:03] Content-Length: 0
[Oct 8 22:23:03]
[Oct 8 22:23:03]
[Oct 8 22:23:03] <--- Transmitting SIP request (420 bytes) to UDP:192.168.20.36:5060 --->
[Oct 8 22:23:03] ACK sip:9dqckhfv@192.168.20.36:5060 SIP/2.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP **wazo_server**:5060;rport;branch=z9hG4bKPj1b469b15-8f73-4ec8-a8d9-61c09954c6b6
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:**inbound_number**@**wazo_server**>;tag=9ada384d-47fd-4e30-a187-42428fbd525f
[Oct 8 22:23:03] To: <sip:9dqckhfv@192.168.20.36>;tag=b816c4d9cba5b109i0
[Oct 8 22:23:03] Call-ID: a1ef3aed-7e47-42c0-8545-f099fdc7fd4a
[Oct 8 22:23:03] CSeq: 31309 ACK
[Oct 8 22:23:03] Max-Forwards: 70
[Oct 8 22:23:03] User-Agent: Wazo PBX
[Oct 8 22:23:03] Content-Length: 0
[Oct 8 22:23:03]
[Oct 8 22:23:03]
[Oct 8 22:23:03] <--- Received SIP response (380 bytes) from UDP:192.168.20.36:5060 --->
[Oct 8 22:23:03] SIP/2.0 200 OK
[Oct 8 22:23:03] To: <sip:9dqckhfv@192.168.20.36>;tag=b816c4d9cba5b109i0
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:**inbound_number**@**wazo_server**>;tag=9ada384d-47fd-4e30-a187-42428fbd525f
[Oct 8 22:23:03] Call-ID: a1ef3aed-7e47-42c0-8545-f099fdc7fd4a
[Oct 8 22:23:03] CSeq: 31309 CANCEL
[Oct 8 22:23:03] Via: SIP/2.0/UDP **wazo_server**:5060;branch=z9hG4bKPj1b469b15-8f73-4ec8-a8d9-61c09954c6b6
[Oct 8 22:23:03] Server: Cisco/SPA112-1.4.0(001)
[Oct 8 22:23:03] Content-Length: 0
[Oct 8 22:23:03]
[Oct 8 22:23:03]
[Oct 8 22:23:03] <--- Received SIP request (589 bytes) from UDP:147.75.65.194:5060 --->
[Oct 8 22:23:03] ACK sip:**wazo_server**:5060 SIP/2.0
[Oct 8 22:23:03] Record-Route: <sip:147.75.65.194;lr>
[Oct 8 22:23:03] Max-Forwards: 67
[Oct 8 22:23:03] Record-Route: <sip:35.173.62.45;lr>
[Oct 8 22:23:03] From: "**inbound_callerid**" <sip:+**inbound_number**@fl.gg>;tag=gK073ea07e
[Oct 8 22:23:03] To: <sip:**wazo_trunk**@fl.gg>;tag=4b6c02b8-db7b-472d-b21a-80966b7a35e4
[Oct 8 22:23:03] Via: SIP/2.0/UDP 147.75.65.194;branch=z9hG4bK7402.869d2dd3a9b13d9a2d6f783c30b4a6da.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP 35.173.62.45:5060;branch=z9hG4bK7402.64bd5fdf829ece19b59387b268e93e81.0
[Oct 8 22:23:03] Via: SIP/2.0/UDP 23.29.21.86:5060;branch=z9hG4bK07Bb6c60ee399de5bfb
[Oct 8 22:23:03] Call-ID: 856100557_124991049@23.29.21.86
[Oct 8 22:23:03] CSeq: 13902 ACK
[Oct 8 22:23:03] Content-Length: 0
[Oct 8 22:23:03]
[Oct 8 22:23:03]
...
[Oct 8 22:23:09]
wazo*CLI> pjsip set logger off
PJSIP Logging disabled
[Oct 8 22:23:13] -- Channel PJSIP/flowroute-00000060 left 'simple_bridge' basic-bridge <91bfc8e7-0d65-421b-b0c9-8ac7293bf203>
[Oct 8 22:23:13] -- Channel Local/**mobile_number**@default-00000053;2 left 'simple_bridge' basic-bridge <91bfc8e7-0d65-421b-b0c9-8ac7293bf203>
[Oct 8 22:23:13] == Spawn extension (outcall, dial, 7) exited non-zero on 'Local/**mobile_number**@default-00000053;2'
[Oct 8 22:23:13] -- Channel Local/**mobile_number**@default-00000053;1 left 'simple_bridge' basic-bridge <045258c7-e735-422c-be2a-868f2a2c1aae>
[Oct 8 22:23:13] -- Channel Local/715@default-00000051;2 left 'simple_bridge' basic-bridge <045258c7-e735-422c-be2a-868f2a2c1aae>
[Oct 8 22:23:13] == Spawn extension (user, dial_from_group, 1) exited non-zero on 'Local/715@default-00000051;2'
[Oct 8 22:23:13] -- Channel Local/715@default-00000051;1 left 'simple_bridge' basic-bridge <a68a7da7-2649-4a0e-a0fe-92500563e171>
[Oct 8 22:23:13] -- Channel PJSIP/flowroute-0000005d left 'simple_bridge' basic-bridge <a68a7da7-2649-4a0e-a0fe-92500563e171>
[Oct 8 22:23:13] == Spawn extension (group, s, 20) exited non-zero on 'PJSIP/flowroute-0000005d'
wazo*CLI>