I want to record only audio inside agi but it record both wav and h263 format:
<PJSIP/kamailio_sip-00000028>AGI Rx << RECORD FILE “/home/tgui/files/voicemail-greeting/121_temp” “wav” “#” 60000 0 BEEP s=3
– <PJSIP/kamailio_sip-00000028> Playing ‘beep.alaw’ (language ‘fa’)
<PJSIP/kamailio_sip-00000028>AGI Tx >> 200 result=35 (dtmf) endpos=33760
[root@Asterisk voicemail-greeting]# ll
total 384
-rw-r–r-- 1 asterisk asterisk 200255 Sep 2 13:12 121_temp.h263
-rw-r–r-- 1 asterisk asterisk 39724 Sep 2 13:12 121_temp.wav
jcolp
2
There is no ability currently to disable that.
I mange to do it with changing PJSIP_MEDIA_OFFER
but I don’t know is there any better approach?
<PJSIP/kamailio_sip-00000005>AGI Rx << GET VARIABLE “PJSIP_MEDIA_OFFER(video)”
<PJSIP/kamailio_sip-00000005>AGI Tx >> 200 result=1 (h263,h263p,h264)
<PJSIP/kamailio_sip-00000005>AGI Rx << SET VARIABLE “PJSIP_MEDIA_OFFER(video)” “!all”
<PJSIP/kamailio_sip-00000005>AGI Tx >> 200 result=1
<PJSIP/kamailio_sip-00000005>AGI Rx << SET VARIABLE “PJSIP_SEND_SESSION_REFRESH()” “invite”
<PJSIP/kamailio_sip-00000005>AGI Tx >> 200 result=1
<PJSIP/kamailio_sip-00000005>AGI Rx << RECORD FILE “/home/tgui/files/voicemail-greeting/121_temp” “wav” “#” 60000 0 BEEP s=3
– <PJSIP/kamailio_sip-00000005> Playing ‘beep.alaw’ (language ‘fa’)
<PJSIP/kamailio_sip-00000005>AGI Tx >> 200 result=35 (dtmf) endpos=30880
<PJSIP/kamailio_sip-00000005>AGI Rx << SET VARIABLE “PJSIP_MEDIA_OFFER(video)” “h263,h263p,h264”
<PJSIP/kamailio_sip-00000005>AGI Tx >> 200 result=1
<PJSIP/kamailio_sip-00000005>AGI Rx << SET VARIABLE “PJSIP_SEND_SESSION_REFRESH()” “invite”
<PJSIP/kamailio_sip-00000005>AGI Tx >> 200 result=1
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.