I have a Cisco 8865 phone that I have connected to FreePBX and registered successfully. All the features that I need work, except for one quirk that I’d like to fix. When I place an outbound call to an outbound SIP trunk with the shutter closed, the phone still seems to negotiate video with FreePBX/Asterisk, even though the SIP trunk doesn’t have any video codecs enabled (ulaw only). Consequently, the call drops after 30 seconds if I keep the shutter closed even though it’s only an audio SIP trunk because “Disconnecting channel ‘PJSIP/xxxxxxxx’ for lack of video RTP activity in 32 seconds” If I place a call with the camera shutter open, the call stays online indefinitely on a SIP outbound trunk. I’d like to be able to drop the video connection when placing an outbound sip trunk call.
I’ve looked around at a few different posts and came up with adding the following to extensions_custom.conf, but this doesn’t do it. I also attempted to use Set(“__SIP_CODEC”), but I think that is only for chan_sip, so it didn’t work.
Am I going at this the right way or do I need to explore something else? Disabling the video codecs on the phone’s extension configuration does work, but then I lose video calling between extensions, which is something I want to keep.
[macro-dialout-trunk-predial-hook]
exten => s,1,NoOp(Run Dialout Trunk Predial Hook)
exten => s,n,Set(PJSIP_MEDIA_OFFER(video)=!all)
exten => s,n,Set(PJSIP_MEDIA_OFFER(audio)=ulaw)
exten => s,n,NoOp(Video Offer: ${PJSIP_MEDIA_OFFER(video)})
exten => s,n,NoOp(Audio Offer: ${PJSIP_MEDIA_OFFER(audio)})
exten => s,n,Return()
Edit: FreePBX 17.0.19.27 is the version I’m running.