[prev in list] [next in list] [prev in thread] [next in thread]
List: serusers
Subject: Re: [SR-Users] kamailio + sems for early media
From: mohsen khashei <mkhashei () gmail ! com>
Date: 2022-06-25 8:02:35
Message-ID: 6C460845-5BD2-4595-BDC8-F32D0ED12CB6 () hxcore ! ol
[Download RAW message or body]
[Attachment #2 (multipart/related)]
[Attachment #4 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} o\:* \
{behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72" \
style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hi now I \
change my config like this:</p><p class=MsoNormal>Request_route{</p><p \
class=MsoNormal>….</p><p class=MsoNormal><o:p> </o:p></p><p \
class=MsoNormal>….</p><p class=MsoNormal> if (is_method("INVITE")) { \
</p><p class=MsoNormal> dlg_manage(); \
</p><p class=MsoNormal> setflag(FLT_ACC); # do accounting \
</p><p class=MsoNormal> setflag(FLT_ACCFAILED); # -- this is added to record \
failed calls \
</p><p class=MsoNormal> setflag(FLT_ACCMISSED); \
</p><p class=MsoNormal> route(SERVICES); # Sems Media Server \
Block \
</p><p class=MsoNormal> route(DROUTING); # Call Routing Block \
</p><p class=MsoNormal> } \
</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p \
class=MsoNormal>route[SERVICES] {</p><p class=MsoNormal> $ru = \
"sip:" + $rU + "@" + "192.168.100.120:5080"; \
</p><p class=MsoNormal> remove_hf("P-App-Name"); \
</p><p class=MsoNormal> append_hf("P-App-Name: \
early_announce\r\n"); \
</p><p class=MsoNormal> append_hf("P-App-Param: B2B=yes\r\n"); \
</p><p class=MsoNormal> $var(semsuri)=$ru; \
</p><p class=MsoNormal> revert_uri(); \
</p><p class=MsoNormal> append_branch("$var(semsuri)"); </p><p \
class=MsoNormal>}</p><p class=MsoNormal>The call routes to the callee and 183 message \
sent back to the caller but the calle don’t hear media and when calle picks up the \
call the calle keeps sending 200 ok with no media</p><p class=MsoNormal><img \
width=1045 height=588 style='width:10.8854in;height:6.125in' id="Picture_x0020_3" \
src="cid:image003.png@01D8888D.F8E5DDD0"> </p><p \
class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div \
style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 \
1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal \
style='border:none;padding:0in'><b>From: </b><a \
href="mailto:eremina.net@gmail.com">Pavel Eremin</a><br><b>Sent: </b>Monday, June 20, \
2022 11:18 AM<br><b>To: </b><a href="mailto:sr-users@lists.kamailio.org">Kamailio \
(SER) - Users Mailing List</a><br><b>Subject: </b>Re: [SR-Users] kamailio + sems for \
early media</p></div><p class=MsoNormal><o:p> </o:p></p><div><p \
class=MsoNormal>If I understand correctly, when you receive 200 Ok, all branches \
will be finished. So, you don't need to cancel them. </p></div><p \
class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>сб, 18 июн. 2022 г. \
в 23:59, mohsen khashei <<a \
href="mailto:mkhashei@gmail.com">mkhashei@gmail.com</a>>:</p></div><blockquote \
style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi I want to use kamailio \
with sems for early media generation. For that purpose I write a service route that \
when an invite received by kamailio it triggers that route in that route I fork \
the call to the sems and continue to the calle when I receive 200 ok cancel all other \
branches. But no media between 2 call ends please help me. I know something is wrong \
in my logic</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>route[SERVICES] \
{</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rewritehostport("<a \
href="http://127.0.0.1:5080">127.0.0.1:5080</a>");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
append_branch();</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
t_on_branch("1");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
t_on_reply("catch_200");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>}</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>branch_route[1] {</p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
remove_hf("P-App-Name");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
append_hf("P-App-Name: early_announce\r\n");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
append_hf("P-App-Param: B2B=no\r\n");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> }</p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> onreply_route[catch_200] \
{</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
if(status=="200") {</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> &nb \
sp; \
if (t_cancel_branches("others")) {</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> &nb \
sp; \
xlog("cancelled all branches\n");</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> &nb \
sp; \
}</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> \
}</p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> }</p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks.</p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div></div></blockquote></div><p \
class=MsoNormal style='margin-left:4.8pt'>__________________________________________________________<br>Kamailio \
- Users Mailing List - Non Commercial Discussions<br> * <a \
href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>Important: \
keep the mailing list in the recipients, do not reply only to the sender!<br>Edit \
mailing list options or unsubscribe:<br> * <a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></p><p \
class=MsoNormal><o:p> </o:p></p></div></body></html>
["57956427FE5E4174A753D76686774E5D.png" (image/png)]
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic