<div dir="ltr"><div class="gmail-gE gmail-iv gmail-gt" style="padding:20px 0px 0px;font-size:0.875rem;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><br class="gmail-Apple-interchange-newline"><table cellpadding="0" class="gmail-cf gmail-gJ" style="border-collapse:collapse;margin-top:0px;width:auto;font-size:0.875rem;letter-spacing:0.2px;display:block"><tbody style="display:block"><tr class="gmail-acZ" style="height:auto;display:flex"><td class="gmail-gF gmail-gK" style="white-space:nowrap;padding:0px;vertical-align:top;width:487.396px;line-height:20px;display:block;max-height:20px"><table cellpadding="0" class="gmail-cf gmail-ix" style="border-collapse:collapse;table-layout:fixed;width:486.667px"><tbody><tr><td class="gmail-c2" style="display:flex"><h3 class="gmail-iw" style="overflow:hidden;font-size:0.75rem;font-weight:inherit;margin:inherit;text-overflow:ellipsis;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span class="gmail-qu" tabindex="-1"><span name="Aatif Shaikh" class="gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;font-weight:bold;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px">Aatif Shaikh</span> <span class="gmail-go" style="vertical-align:top;color:rgb(85,85,85)"><span><</span><a href="mailto:aatif.shaikh@ecosmob.com">aatif.shaikh@ecosmob.com</a><span>></span></span></span></h3></td></tr></tbody></table></td><td class="gmail-gH gmail-bAk" style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px"><div class="gmail-gK" style="padding:0px;display:flex"><span id="gmail-:4ob" class="gmail-g3" title="Dec 7, 2020, 11:00 AM" alt="Dec 7, 2020, 11:00 AM" tabindex="-1" style="vertical-align:top;margin:0px;font-size:0.75rem;letter-spacing:0.3px;color:rgb(95,99,104);display:block;line-height:20px">Mon, Dec 7, 11:00 AM (3 days ago)</span><div class="gmail-zd gmail-bi4" tabindex="0" style="display:inline-block;height:20px;margin-left:20px;outline:0px"><span class="gmail-T-KT" style="display:inline-flex;height:20px;text-align:center;width:20px;padding:0px;margin:0px;border:none;outline:none"></span></div></div></td><td class="gmail-gH" style="text-align:right;white-space:nowrap;vertical-align:top;display:flex"></td><td class="gmail-gH gmail-acX gmail-bAm" rowspan="2" style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px"><div class="gmail-T-I gmail-J-J5-Ji gmail-T-I-Js-IF gmail-aaq gmail-T-I-ax7 gmail-L3" tabindex="0" style="display:inline-flex;border-radius:2px 0px 0px 2px;font-size:0.875rem;text-align:center;margin:0px 0px 0px 20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img class="gmail-hB gmail-T-I-J3" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://www.gstatic.com/images/icons/material/system/1x/reply_black_20dp.png") 50% 50% / 20px no-repeat; height: 20px; margin: 0px; vertical-align: middle; width: 20px; opacity: 0.7; display: inline-block; padding: 0px; transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s;"></div><div id="gmail-:4n4" class="gmail-T-I gmail-J-J5-Ji gmail-T-I-Js-Gs gmail-aap gmail-T-I-awG gmail-T-I-ax7 gmail-L3" tabindex="0" style="display:inline-flex;border-radius:0px 2px 2px 0px;font-size:0.875rem;text-align:center;margin:0px 0px 0px 20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img class="gmail-hA gmail-T-I-J3" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://www.gstatic.com/images/icons/material/system/1x/more_vert_black_20dp.png") 50% 50% / 20px no-repeat; height: 20px; width: 20px; margin: 0px; vertical-align: middle; opacity: 0.7; display: inline-block; padding: 0px; transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s;"></div></td></tr><tr class="gmail-acZ gmail-xD" style="height:auto;display:flex"><td colspan="3"><table cellpadding="0" class="gmail-cf gmail-adz" style="border-collapse:collapse;table-layout:fixed;white-space:nowrap;width:801.111px"><tbody><tr><td class="gmail-ady" style="overflow:visible;text-overflow:ellipsis;display:flex;line-height:20px"><div class="gmail-iw gmail-ajw" style="overflow:hidden;max-width:92%;display:inline-block"><span class="gmail-hb" style="vertical-align:top;color:rgb(95,99,104);font-size:0.75rem;letter-spacing:0.3px;line-height:20px">to <span dir="ltr" name="sr-users" class="gmail-g2" style="vertical-align:top">sr-users</span></span></div><div id="gmail-:4n3" class="gmail-ajy" tabindex="0" style="display:inline-flex;margin-left:4px;vertical-align:top;border:none;outline:none"><img class="gmail-ajz" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://www.gstatic.com/images/icons/material/system/1x/arrow_drop_down_black_20dp.png") 50% 50% / 20px no-repeat; cursor: pointer; padding: 0px; vertical-align: baseline; height: 20px; width: 20px; border: none; margin: 0px 0px 0px auto; right: 0px; top: 0px; display: flex; opacity: 0.54;"></div></td></tr></tbody></table></td></tr></tbody></table></div><div id="gmail-:4o7" style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-qQVYZb"></div><div class="gmail-utdU2e"></div><div class="gmail-lQs8Hd"></div><div class="gmail-btm"></div></div><div class="gmail-" style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-aHl" style=""></div><div id="gmail-:4n2" tabindex="-1"></div><div id="gmail-:4o9" class="gmail-ii gmail-gt" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:4o8" class="gmail-a3s gmail-aiL" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><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" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">sip:4569@sc4test.sip.teledge.com</a> 1 held<br># kamcmd sca.all_appearances<br><a href="mailto:sip%3A4569@test.sip.abcd.com" target="_blank">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" target="_blank">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></div></div></div></div></div></div>