<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000'><style>p { margin: 0; }</style><div style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10pt; color: rgb(0, 0, 0);"><style>p { margin: 0; }</style><div style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">Hi,<br><br>I am trying to get kamailio (or more specific rtpproxy) to play a wav file when a call is setup<br><br>In kamailio.cfg I have added the command in the onreply_route<br><br>rtpproxy_startrecording();<br>rtpproxy_stream2uas("/var/log/rtpproxy/message","-1");<br><br>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)<br><br>rtpproxy[2648]: DBUG:handle_command: received command "P-1 024a73d95bbe016014de647e700 /var/log/rtpproxy/behappy session 487095817;1 024a73d95bbe015f14de647e700;1"<br>rtpproxy[2648]: DBUG:doreply: sending reply "E6#012"<br>rtpproxy[2648]: DBUG:handle_command: received command "R 024a73d95bbe016014de647e700 487095817 024a73d95bbe015f14de647e700"<br>rtpproxy[2648]: DBUG:doreply: sending reply "0#012"<br><br>The "R" command is the startrecording command and that is indeed working perfect. (recording to /var/log/rtpproxy)<br>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 <br><br>from the manual : <br><p>
<tt>P[args] callid play_name codecs from_tag to_tag</tt>
</p>
<p>
Direction of the playback is defined by the order of the from_tag and to_tag parameters. <br></p><p><tt>R callid from_tag to_tag</tt></p><p><br></p><p><br></p><p><tt>I have used the command&nbsp; "&nbsp; 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&nbsp; (makeann comes with the rtpproxy source and is rather a bit shy with information to say the least ;) )</tt></p><p><br></p><p><tt><br></tt></p><p><tt>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.</tt></p><p><br></p><p><tt>Best regards<br></tt></p><p><br></p><p><tt><br></tt></p><p><br></p></div></div></div></body></html>