<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hello All<br> I configure my kamailio.cfg to handle SLA using (SCA module) and shared presence is working but still facing some issue in case of hold invite and BYE and the reason behind of that issue is following error<br><br>Nov 26 07:38:40 SBC-4-1 /usr/local/sbin/kamailio[104107]: ERROR: sca [sca_call_info.c:1008]: sca_call_info_invite_request_handler(): Failed to update <a href="mailto:sip%3A4569@test.sip.abcd.com">sip:4569@test.sip.abcd.com</a> appearance-index 0 to active <br><br>actually, in Kamailio appearances, I can see the entry for this call but the index is 1 instead of 0, and Kamailio going to update with a 0 index<br><br>[root@SBC-4-1 ntcarfte-kamailio]# kamcmd sca.all_appearances<br><a href="mailto:sip%3A4569@test.sip.abcd.com">sip:4569@test.sip.abcd.com</a> 1 active 1606376289 sip:4569@10.xx.xx.xx:5070;transport=udp <a href="mailto:sip%3A2003@test.sip.abcd.com">sip:2003@test.sip.abcd.com</a> 186161_mobile-rel120MTQ5OTcyZjFhMjMyNmI1ZGE1MWY4ODc2M2RkN2VmZmQ 45dc18d8 H6cS9vecZ248B<br><br>if I manually update appearances using RPC command with index 1 then the phone started blinking as I change state to held<br><br># kamcmd sca.update_appearance <a href="mailto:sip%3A4569@sc4test.sip.teledge.com">sip:4569@sc4test.sip.teledge.com</a> 1 held<br># kamcmd sca.all_appearances<br><a href="mailto:sip%3A4569@test.sip.abcd.com">sip:4569@test.sip.abcd.com</a> 1 held 1606376516 sip:4569@10.xx.xx.xx:5070;transport=udp <a href="mailto:sip%3A2003@test.sip.abcd.com">sip:2003@test.sip.abcd.com</a> 186161_mobile-rel120NzE5MDgyZDc1NjJiYjcwMWFlYmI3NzM3NjE2OTRhZjU 08f005cb eK9ratm83g92e<br><br>kamailio.cfg<br><br><br>route[SCA] {<br> if(is_method("SUBSCRIBE")) {<br><br> if ($hdr(Event) == "call-info" || $hdr(Event) == "line-seize") {<br> xlog("L_INFO","(MAIN) :HELLO ($avp(uuid)) : $avp(rsi) $sp $hdr(Event)"); <br> xdbg("SCA: $hdr(Event) SUBSCRIBE $ru from $si:$sp");<br> sca_handle_subscribe();<br> exit;<br> }<br> return;<br> }<br><br> if (!is_method("BYE|CANCEL|INVITE|PRACK|REFER")) {<br> return;<br> } <br> sca_call_info_update(); <br>}<br><br>route[RELAY_OUTBOUND_FS] {<br> xlog("L_INFO","(RELAY_OUTBOUND_FS) : ($avp(uuid)) : INSIDE ROUTE ");<br> <br> if (!has_totag()){<br> $avp(set_h) = 1;<br> }<br><br> t_on_reply("REPLY_OUTBOUND_FS");<br> route(SCA);<br> if (!t_relay()) {<br> sl_reply_error();<br> }<br> exit;<br>}<br><br>route[RELAY_INBOUND_FS] {<br><br> if(is_method("INVITE|BYE|UPDATE|CANCEL|ACK")) {<br> $avp(s:puburis_caller) = $fu;<br> setflag(8);<br> dlg_manage();<br> }<br><br> if(is_method("REGISTER")) {<br> t_on_reply("REPLY_REGISTER");<br> } else {<br> t_on_reply("REPLY_INBOUND_FS");<br> }<br> route(SCA);<br> if (!t_relay()) {<br> sl_reply_error();<br> }<br> exit;<br>}<br><br>onreply_route[REPLY_INBOUND_FS] {<br> xdbg("incoming reply\n");<br><br> if (status =~ "[456][0-9][0-9]") {<br> # don't update SCA state here, since there may be<br> # failure route processing (e.g., call forwarding).<br> # update state in failure route instead.<br> return;<br> }<br><br> route(SCA);<br>}<br><br>onreply_route[REPLY_OUTBOUND_FS] {<br> xdbg("incoming reply\n");<br><br> if (status =~ "[456][0-9][0-9]") {<br> # don't update SCA state here, since there may be<br> # failure route processing (e.g., call forwarding).<br> # update state in failure route instead.<br> return;<br> }<br><br> route(SCA);<br>}<br><br>can someone help me with this Did I missed something to handle SLA?<br><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="line-height:12px;font-size:12px"><div><div><span style="font-family:verdana,sans-serif"><font color="#4c1130"><br></font></span></div><span style="font-family:verdana,sans-serif"><font color="#4c1130">Regards,</font></span></div><div><span style="font-family:verdana,sans-serif"><font color="#4c1130"><br></font></span></div><div><span style="font-family:verdana,sans-serif"><font color="#4c1130"><b>Aatif Shaikh </b>| Software Developer<br></font></span></div><div><span style="font-family:verdana,sans-serif"><font color="#4c1130"><br></font></span></div><div><font color="#4c1130"><span style="font-family:verdana,sans-serif"><span style="float:left">+91 9033976268</span><span style="display:block;float:left;border-left:1px solid rgb(0,0,0);margin-left:7px;padding-left:7px">Hangout: <font color="#4c1130"><a href="mailto:aatif.shaikh@ecosmob.com" style="color:rgb(17,85,204)" target="_blank">aatif.shaikh@ecosmob.com</a></font></span><span style="float:left;display:block;border-left:1px solid rgb(0,0,0);margin-left:7px;padding-left:7px">Skype : <a href="mailto:aatif.shaikh@ecosmob.com" style="color:rgb(17,85,204)" target="_blank"><span>aatif.shaikh@ecosmob.com</span></a></span></span></font></div><span style="font-family:verdana,sans-serif"><font color="#4c1130"></font></span><div style="clear:both;margin-top:20px;margin-bottom:20px"><font color="#4c1130"><span style="font-family:verdana,sans-serif"></span></font></div><span style="font-family:verdana,sans-serif"><font color="#4c1130"><b>Ecosmob Technologies Pvt. Ltd. </b><br><a href="https://www.ecosmob.com/" style="color:rgb(17,85,204);display:block" target="_blank">https://www.ecosmob.com</a><br><span style="display:block">VoIP | Web | Mobile | IoT | Big Data</span><br><a href="https://twitter.com/ecosmob" style="color:rgb(17,85,204);width:16px;display:inline-block" target="_blank"><img src="https://s3.amazonaws.com/htmlsig-assets/round/twitter.png" alt="" style="max-width:100%"></a> <a href="https://www.facebook.com/Ecosmob" style="color:rgb(17,85,204);width:16px;display:inline-block" target="_blank"><img src="https://s3.amazonaws.com/htmlsig-assets/round/facebook.png" alt="" style="max-width:100%"></a> <a href="https://plus.google.com/+Ecosmob" style="color:rgb(17,85,204);width:16px;display:inline-block" target="_blank"><img src="https://s3.amazonaws.com/htmlsig-assets/round/googleplus.png" alt="" style="max-width:100%"></a> <a href="https://www.linkedin.com/company/ecosmob" style="color:rgb(17,85,204);width:16px;display:inline-block" target="_blank"><img src="https://s3.amazonaws.com/htmlsig-assets/round/linkedin.png" alt="" style="max-width:100%"></a> <a href="https://in.pinterest.com/ecosmob/" style="color:rgb(17,85,204);width:16px;display:inline-block" target="_blank"><img src="https://s3.amazonaws.com/htmlsig-assets/round/pinterest.png" alt="" style="max-width:100%"></a><br></font></span><p style="margin-top:10px;font-size:9px;line-height:12px"><span style="font-family:verdana,sans-serif"><font color="#4c1130">This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. Ecosmob Technologies is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</font></span></p></div></div></div></div></div></div></div></div></div></div>
<br>
<div><font face="Arial" size="2" style="background-color:white" color="#808080"><b>Disclaimer</b></font></div><div><div><span style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small">In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded.</span></div></div><div><span style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><br></span></div><div><font face="Arial" size="2" style="background-color:white" color="#808080"><b>Confidentiality</b></font></div><div><font face="Arial" size="2" style="background-color:white" color="#808080">This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error.</font></div><div><font face="Arial" size="2" style="background-color:white" color="#808080"><br></font></div><div><span style="background-color:white;color:rgb(128,128,128);font-family:Arial;font-size:small"><b>Caution for viruses, malware etc.</b></span></div><div><font face="Arial" size="2" style="background-color:white" color="#808080">This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems. </font></div>