<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello Sammy,</div><div> 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:</div><div><br></div><div><div>if(is_method("INVITE")) {</div><div> append_branch("sip:prompt-tone@freeswitch");</div><div> xlog("append branch");</div><div> t_newtran();</div><div> $http_req(hdr) = "Content-Type: application/json";</div><div> $http_req(body) = $_s({"cmuid": "$var(cmuid)"});</div><div> http_async_query("http://127.0.0.1:8080", "HTTP_REPLY");</div><div>}</div></div><div><br></div><div>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?</div><div><br></div><div>Thanks</div><br>At 2017-11-30 23:49:59, "SamyGo" <govoiper@gmail.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr">Hi,<div>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.</div><div><br></div><div>So here's one way of doing that.<br><br><font face="monospace, monospace">if(is_method("INVITE")){<br> append_branch("<a href="http://sip:183@192.168.1.5:5060">sip:183@192.168.1.5:5060</a>");<br>...</font></div><div><font face="monospace, monospace">}</font></div><div><br></div><div>where IP is of asterisk and dialplan is configured to provider Progress() with media. </div><div><br></div><div>Again, it depends on why you want it?</div><div><br></div><div>Regards,</div><div>Sammy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 29, 2017 at 11:13 PM, Brandon Armstead <span dir="ltr"><<a href="mailto:brandon@cryy.com" target="_blank">brandon@cryy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">if(is_method(¡°INVITE¡±)){ .....</div><div dir="auto"><br></div><div dir="auto">sl_send_reply(¡°183¡±, ¡°Ringing¡±); ....</div><div dir="auto"><br></div><div dir="auto">}</div><br><div class="gmail_quote"><div><div class="h5"><div>On Wed, Nov 29, 2017 at 6:44 PM ÕÔ¹ú½Ü <<a href="mailto:zhaoguojie2010@163.com" target="_blank">zhaoguojie2010@163.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello guys, </div><div> Is it possible for kamailio to initiate a 183 to caller?</div><div><br></div><div>Thanks </div></div><br><br><span title="neteasefooter"><p> </p></span></div></div>______________________________<wbr></wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr></wbr>cgi-bin/mailman/listinfo/sr-<wbr></wbr>users</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div class="m_8145819928345150507gmail_signature" data-smartmail="gmail_signature">Sent from Gmail Mobile</div>
</font></span><br>______________________________<wbr></wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr></wbr>cgi-bin/mailman/listinfo/sr-<wbr></wbr>users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>