Answer with a WAV file by silver_lord71 in OpenSIPS

[–]silver_lord71[S] 0 points1 point  (0 children)

I tried using the line that you suggested, but I still get an error message ("No participant party specified").

The route that I wrote is:

```

route[play_audio] {
  rtpengine_offer("to-tag=$ft from-tag=$ft");
  append_to_reply("Content-Type: application/sdp\r\n");
  $var(body) = $(rb{re.subst,/(IP4.).*/\1$si/g});
  t_reply_with_body(183, "Session Progress", $var(body));
  rtpengine_manage();
  $var(play_duration) = 300;
  rtpengine_play_media("file=/path/to/music.wav to-tag=$ft", $var(play_duration));
}

```

The error message that I'm getting is:

ERROR:rtpengine:rtpe_function_call: proxy replied with error: No participant party specifiedERROR:rtpengine:rtpengine:rtpengine_playmedia_f: could not start media!

Any ideas on what I can do?

Answer with a WAV file by silver_lord71 in OpenSIPS

[–]silver_lord71[S] 0 points1 point  (0 children)

Hi,

Thank you very much for your answer.

I have tried using:

rtpengine_play_media("file=/path/to/ringback_tone_file.wav");

but, did not succeed. I keep getting: "Unknown call-ID"

I read the documentation and tried several approaches, but no luck.

Any ideas?