[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
local_net=10.10.1.xxx/24
[4072]
type=aor
max_contacts=1
remove_existing=yes
default_expiration=172800
maximum_expiration=172800
[4072]
type=auth
auth_type=userpass
username=4072
password=xxxxxx
[4072]
type=endpoint
aors=4072
auth=4072
context=pushkit
disallow=all
allow=opus,alaw
allow=vp8,h264
direct_media=yes
direct_media_glare_mitigation=outgoing
direct_media_method=reinvite
[4071]
type=auth
auth_type=userpass
username=4071
password=xxxxx
[4071]
type=endpoint
aors=4071
auth=4071
context=pushkit
disallow=all
allow=opus,alaw
allow=vp8,h264
direct_media=yes
direct_media_glare_mitigation=outgoing
direct_media_method=reinvite
This is my direct media configuration when the call is established, and it didn’t send the re-invite to the SIP endpoints, and direct_media didn’t occur.
exten => _X.,1,NoOp(PJSIP/${EXTEN} has state ${DEVICE_STATE(PJSIP/${EXTEN})})
same => n,SET(callerNameFromHeader=${PJSIP_HEADER(read,From)})
same => n,SET(callerName=${CUT(callerNameFromHeader,\",2)})
same => n,NoOp(Caller Name of CALLERID: ${CALLERID(num)} is: ${callerName})
same => n,SET(CALLERID(name)=${callerName})
same => n,SET(caller=${CALLERID(num)})
same => n,SET(callee=${EXTEN})
same => n,SET(ringtime=28)
same => n,GotoIf($[${DEVICE_STATE(PJSIP/${EXTEN})}=NOT_INUSE]?callsuccess:callbusy)
same => n(callsuccess),Goto(State,1)
same => n(callbusy),Goto(State,3)
exten =>State,3,Busy(10)
exten =>State,n,Hangup()
exten => State,1,Dial(PJSIP/${callee},${ringtime})
exten => State,n,Goto(h,1)
exten => h,1,NoOp(Dial Status is ${DIALSTATUS})
exten => h,2,NoOp(Hangup cause is ${HANGUPCAUSE})
exten => h,3,Hangup()
Also this is my dialplan we are using but I didn’t know why could be able to see the Re-Invite and connecting the direct media from peer to peer and checked the all of documentation but i didn’t enable the dtmf also i could see the “bridge_native_rtp.so” also loaded in the asterisk