[SR-Users] how to play ring tune when callee decline s

Daniel Tryba d.tryba at pocos.nl
Mon Sep 18 12:05:46 CEST 2017


On Mon, Sep 18, 2017 at 03:37:22PM +0800, 赵国杰 wrote:
>      I want the caller to play a short audio(like "the number your are calling is busy") when the callee declines the call. How can i do that?

You need to check for the status codes in a failure route and then
somehow generate audio somewhere, which is out of the scope of kamailio
(maybe rtpproxy can do this, otherwise use something like asterisk):

failure_route[MANAGE_FAILURE] {
if (t_check_status("486"))
{
  $du=null;
  $ru="busymessage at asterisk.example.org";
  route(RELAY);
  exit;
}



More information about the sr-users mailing list