Hi guys,
Playing with SCA for the first time, I'm hittin the following issue:
User phone1@domain.org is registered on two devices A and B, and device B sends SUBSCRIBE to phone1@domain.org with call-info Event. Subscription is handled properly, and my DB content is this:
id: 4 subscriber: sip:phone1@10.15.20.174:5100;alias=1.2.3.4~5100~1 aor: sip:phone1@domain.org event: 1 expires: 1425296906 state: 0 app_idx: 0 call_id: dacf5194-3d6a8e16d03338102a940080f0e9071c@10.15.20.174 from_tag: 4247246264 to_tag: f3067022b00c564156251ba2f28f331f-7c92 record_route: sip:127.0.0.1;r2=on;lr=on;ftag=4247246264;nat=yes;ngcplb=yes;socket=udp:1.2.3.4:5060,sip:1.2.3.4;r2=on;lr=on;ftag=4247246264;nat=yes;ngcplb=yes;socket=udp:1.2.3.4:5060 notify_cseq: 3 subscribe_cseq: 2
Kamcmd reports this:
kamcmd> sca.all_subscriptions phone1 10.15.20.174:5100 call-info 2697 active
If phone1@domain.org on device A does a call, I get this in my logs when calling sca_call_info_update() right as first thing in my routing config handling the INVITE:
Mar 2 12:02:33 sp2 proxy[34517]: WARNING: sca [sca_appearance.c:976]: sca_appearance_update_index(): Cannot update sip:phone1@domain.org index 0 to unknown: index 0 not in use Mar 2 12:02:33 sp2 proxy[34517]: ERROR: sca [sca_call_info.c:1046]: sca_call_info_invite_request_handler(): Failed to update sip:phone1@domain.org appearance-index 0 to unknown
Is there something I'm obviously doing wrong here?
Andreas
User phone1@domain.org is registered on two devices A and B
kamcmd> sca.all_subscriptions phone1 10.15.20.174:5100 call-info 2697 active
If you're only seeing one subscription with sca.all_subscriptions, then something is amiss.
If phone1@domain.org on device A does a call, I get this in my logs when calling sca_call_info_update() right as first thing in my routing config handling the INVITE:
Mar 2 12:02:33 sp2 proxy[34517]: WARNING: sca [sca_appearance.c:976]: sca_appearance_update_index(): Cannot update sip:phone1@domain.org index 0 to unknown: index 0 not in use Mar 2 12:02:33 sp2 proxy[34517]: ERROR: sca [sca_call_info.c:1046]: sca_call_info_invite_request_handler(): Failed to update sip:phone1@domain.org appearance-index 0 to unknown
Something is also very wrong here, because "unknown" is either the uninitialized or an otherwise invalid state.
What kind of devices are these? Can you grab a packet capture, from the first REGISTER to all the way through that call?
-- Jorj
Hi Jori,
On 03/02/2015 02:47 PM, Jorj Bauer wrote:
User phone1@domain.org is registered on two devices A and B
kamcmd> sca.all_subscriptions phone1 10.15.20.174:5100 call-info 2697 active
I had a mixed setup in my first test with one device registering as private line and another one as shared line, so I redid the setup to have two shared lines, now I have two entries.
Mar 2 12:02:33 sp2 proxy[34517]: WARNING: sca [sca_appearance.c:976]: sca_appearance_update_index(): Cannot update sip:phone1@domain.org index 0 to unknown: index 0 not in use Mar 2 12:02:33 sp2 proxy[34517]: ERROR: sca [sca_call_info.c:1046]: sca_call_info_invite_request_handler(): Failed to update sip:phone1@domain.org appearance-index 0 to unknown
Something is also very wrong here, because "unknown" is either the uninitialized or an otherwise invalid state.
What kind of devices are these? Can you grab a packet capture, from the first REGISTER to all the way through that call?
With two shared lines (one Yealink T-28 and one Yealink T-22) I'm still getting the same error.
One thing I can see is that neither of the devices send a SUBSCRIBE with line-seize Event. They rather just subscribe to the call-info event, and in the oubound INVITE, they don't send a Call-Info header either. Is this mandatory for the SCA module to work?
Can I send you a pcap in private?
Thanks, Andreas
One thing I can see is that neither of the devices send a SUBSCRIBE with line-seize Event. They rather just subscribe to the call-info event, and in the oubound INVITE, they don't send a Call-Info header either. Is this mandatory for the SCA module to work?
It sounds like they're not configured for SCA properly.
Can I send you a pcap in private?
Please do, and I can confirm from the signaling whether or not the sets are properly configured.
-- Jorj
Hello Jorj,
On 03/03/2015 06:25 PM, Jorj Bauer wrote:
One thing I can see is that neither of the devices send a SUBSCRIBE with line-seize Event. They rather just subscribe to the call-info event, and in the oubound INVITE, they don't send a Call-Info header either. Is this mandatory for the SCA module to work?
It sounds like they're not configured for SCA properly.
You're indeed right. Yealink needs the Broadsoft-specific firmware in order to work with the sca module, otherwise it won't subscribe to line-seize events.
I think I somewhat figured it out for now and it's basically working.
One thing which is nice but was somewhat unexpected (because it wasn't documented in the module docs) is that sca_call_info_update() also handles barge-in when a call is publicly held, so it transforms an INVITE with the Call-Info header into a message included Replaces and all.
Thanks again, Andreas