Direct Media for Audio and Video Setup

I would like to setup direct media between two extensions 701 and 702 for RTP audio and video streams.

I configured Direct media=yes for two extensions. I deleted features but still RTP does not go for p2p instead is relayed through Asterisk. This is what is written in LOG. Any ideas what is a problem ?

537[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:4] Set(“PJSIP/701-00000005”, “TECH=PJSIP”) in new stack

538[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:5] Set(“PJSIP/701-00000005”, “SIPHEADERKEYS=”) in new stack

539[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:6] While(“PJSIP/701-00000005”, “0”) in new stack

540[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] app_while.c: Jumping to priority 12

541[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] pbx.c: Executing [s@func-apply-sipheaders:13] Return(“PJSIP/701-00000005”, “”) in new stack

542[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] app_stack.c: Spawn extension (func-apply-sipheaders, s, 13) exited non-zero on ‘PJSIP/701-00000005’

543[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] app_stack.c: PJSIP/701-00000005 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=

544[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] app_dial.c: Called PJSIP/701/sip:701@10.8.25.146:5066

545[2025-09-08 13:45:33] VERBOSE[6355] netsock2.c: Using SIP RTP Audio TOS bits 184

546[2025-09-08 13:45:33] VERBOSE[6355] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.

547[2025-09-08 13:45:33] VERBOSE[6355] netsock2.c: Using SIP RTP Audio CoS mark 5

548[2025-09-08 13:45:33] VERBOSE[6355] netsock2.c: Using SIP RTP Video TOS bits 136

549[2025-09-08 13:45:33] VERBOSE[6355] netsock2.c: Using SIP RTP Video TOS bits 136 in TCLASS field.

550[2025-09-08 13:45:33] VERBOSE[6355] netsock2.c: Using SIP RTP Video CoS mark 4

551[2025-09-08 13:45:33] VERBOSE[6354][C-00000004] app_dial.c: PJSIP/701-00000005 is ringing

552[2025-09-08 13:45:35] VERBOSE[6354][C-00000004] app_dial.c: PJSIP/701-00000005 answered PJSIP/700-00000004

553[2025-09-08 13:45:35] WARNING[6371][C-00000004] features_config.c: Unknown DYNAMIC_FEATURES item ‘apprecord’ on channel PJSIP/701-00000005.

554[2025-09-08 13:45:35] VERBOSE[6371][C-00000004] bridge_channel.c: Channel PJSIP/701-00000005 joined ‘simple_bridge’ basic-bridge <2006666b-44c0-4339-9e0c-77db0b1d33fd>

555[2025-09-08 13:45:35] WARNING[6354][C-00000004] features_config.c: Unknown DYNAMIC_FEATURES item ‘apprecord’ on channel PJSIP/700-00000004.

556[2025-09-08 13:45:35] VERBOSE[6354][C-00000004] bridge_channel.c: Channel PJSIP/700-00000004 joined ‘simple_bridge’ basic-bridge <2006666b-44c0-4339-9e0c-77db0b1d33fd>

Direct media for video is not supported.

Also, this is either FreePBX, not pure Asterisk, or you have failed to provide complete logs of your custom dialplan.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.