Hi,
I am trying to get kamailio (or more specific rtpproxy) to play a wav file when a call is
setup
In kamailio.cfg I have added the command in the onreply_route
rtpproxy_startrecording();
rtpproxy_stream2uas("/var/log/rtpproxy/message","-1");
I am sure the command is executed and given from kamailio to rtpproxy because in syslog I
see following output (using dbug output of rtpproxy)
rtpproxy[2648]: DBUG:handle_command: received command "P-1
024a73d95bbe016014de647e700 /var/log/rtpproxy/behappy session 487095817;1
024a73d95bbe015f14de647e700;1"
rtpproxy[2648]: DBUG:doreply: sending reply "E6#012"
rtpproxy[2648]: DBUG:handle_command: received command "R 024a73d95bbe016014de647e700
487095817 024a73d95bbe015f14de647e700"
rtpproxy[2648]: DBUG:doreply: sending reply "0#012"
The "R" command is the startrecording command and that is indeed working
perfect. (recording to /var/log/rtpproxy)
The "P" command is the "Playing or stream2uas" command. Seems that the
message rtpproxy gets differs a bit from the one I found in the rtpproxy manual
from the manual :
P[args] callid play_name codecs from_tag to_tag
Direction of the playback is defined by the order of the from_tag and to_tag parameters.
R callid from_tag to_tag
I have used the command " makeann behappy.wav behappy" to convert a wavfile. It
gave me a .0 and .a file which I have placed in the /var/log/rtpproxy directory (makeann
comes with the rtpproxy source and is rather a bit shy with information to say the least
;) )
There is not too much information or examples found about this so I was hoping maybe
somebody on this list could help me in finding out why i'm not getting more
information in syslog and why i'm not hearing the audiofile.
Best regards