Hello Sammy,
     Yes, I want the kamailio to play ring-back music immediately after it 
receive the INVITE.  My plan is to append a branch to freeswitch and let 
freeswitch to play the music. The problem is append_branch() does not work in 
the following context:


if(is_method("INVITE")) {
                append_branch("sip:prompt-tone@freeswitch");
                xlog("append branch");
                t_newtran();
                $http_req(hdr) = "Content-Type: application/json";
                $http_req(body) = $_s({"cmuid": "$var(cmuid)"});
                http_async_query("http://127.0.0.1:8080";, "HTTP_REPLY");
}


if I remove the last 4 lines everything works fine. Otherwise, no forked INVITE 
will be sent to freeswitch. Unfortunately, I need the http_async_query to find 
the proper callee. Any suggestions?


Thanks

At 2017-11-30 23:49:59, "SamyGo" <[email protected]> wrote:

Hi,
While Brandon is right, you can do absolutely do that but w/o any SDP or 
progress media in there. I'd ask why you want to do that! If you want to feed 
some ring-back music I'd advise you to append a branch to a media-server like 
asterisk and then let that do it for you.


So here's one way of doing that.

if(is_method("INVITE")){
         append_branch("sip:[email protected]:5060");
...
}


where IP is of asterisk and dialplan is configured to provider Progress() with 
media. 


Again, it depends on why you want it?


Regards,
Sammy


On Wed, Nov 29, 2017 at 11:13 PM, Brandon Armstead <[email protected]> wrote:

if(is_method(“INVITE”)){ .....


sl_send_reply(“183”, “Ringing”); ....


}


On Wed, Nov 29, 2017 at 6:44 PM 赵国杰 <[email protected]> wrote:

Hello guys, 
     Is it possible for kamailio to initiate a 183 to caller?


Thanks 




 

_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--

Sent from Gmail Mobile

_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to