[Home]

Summary:ASTERISK-25712: Second call to already-on-call phone and Asterisk sends "Ready"
Reporter:Richard Mudgett (rmudgett)Labels:
Date Opened:2016-01-21 15:57:12.000-0600Date Closed:2016-01-21 17:28:25.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip
Versions:13.7.0 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-25729 [patch] Extension to device state translations are missing some extension states
Environment:Attachments:
Description:Alice is a D70 with a random phone build.
Bob is a D45 with a random 2_0_1 build from our dev team.
Alice has a Rapid Dial key subscribed to auto_hint_114, Bob.
Bob calls Charlie.
Alice's light for Bob goes green.
David calls Bob
Alice's light for Bob goes dark.
When David stops ringing Bob, Alice's light turns back on.

So..when Bob calls Charlie, we see, to Alice:
{noformat}
<--- Transmitting SIP request (1366 bytes) to UDP:10.24.74.223:5060 --->
NOTIFY sip:109@10.24.74.223:5060;ob SIP/2.0
Via: SIP/2.0/UDP 10.24.22.61:5060;rport;branch=z9hG4bKPjc5f4b4d3-714f-4330-98ea-27c5b93026b4
From: <sip:auto_hint_114@10.24.22.61>;tag=86d7abc7-56b1-4481-8360-f5aa46939869
To: "\"Person 109\" <109>" <sip:109@10.24.22.61>;tag=t2FAwIjkixKMnj0Yu6t82DXTnRQHcCct
Contact: <sip:10.24.22.61:5060>
Call-ID: f9edRXDPrE.Lo10H-FxVFEfmwFvZN61Q
CSeq: 19305 NOTIFY
Event: presence
Subscription-State: active;expires=314
Allow-Events: message-summary, presence, dialog, refer
Max-Forwards: 70
User-Agent: Asterisk PBX certified/13.1-cert3-rc1
Content-Type: application/pidf+xml
Content-Length:   721

<?xml version="1.0" encoding="UTF-8"?>
<presence entity="sip:auto_hint_114@10.24.22.61:5060" xmlns="urn:ietf:params:xml:ns:pidf" xmlns:pp="urn:ietf:params:xml:ns:pidf:person" xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status" xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person">
<note>On the phone</note>
<tuple id="auto_hint_114">
 <status>
  <basic>closed</basic>
 </status>
 <contact priority="1">&quot;\&quot;Person 109\&quot; &lt;109&gt;&quot; &lt;sip:109@10.24.22.61&gt;</contact>
</tuple>
<tuple id="digium-presence">
 <status>
  <digium_presence type="chat" />
 </status>
</tuple>
<pp:person>
 <status>
  <ep:activities>ep:busy</ep:activities>
 </status>
</pp:person>
</presence>
{noformat}

Then, surprisingly, when we place a second call into Bob, Alice's phone gets:

{noformat}
<--- Transmitting SIP request (1305 bytes) to UDP:10.24.74.223:5060 --->
NOTIFY sip:109@10.24.74.223:5060;ob SIP/2.0
Via: SIP/2.0/UDP 10.24.22.61:5060;rport;branch=z9hG4bKPje3bcbe3f-2777-4610-b056-a9f6639d341e
From: <sip:auto_hint_114@10.24.22.61>;tag=86d7abc7-56b1-4481-8360-f5aa46939869
To: "\"Person 109\" <109>" <sip:109@10.24.22.61>;tag=t2FAwIjkixKMnj0Yu6t82DXTnRQHcCct
Contact: <sip:10.24.22.61:5060>
Call-ID: f9edRXDPrE.Lo10H-FxVFEfmwFvZN61Q
CSeq: 19308 NOTIFY
Event: presence
Subscription-State: active;expires=219
Allow-Events: message-summary, presence, dialog, refer
Max-Forwards: 70
User-Agent: Asterisk PBX certified/13.1-cert3-rc1
Content-Type: application/pidf+xml
Content-Length:   660

<?xml version="1.0" encoding="UTF-8"?>
<presence entity="sip:auto_hint_114@10.24.22.61:5060" xmlns="urn:ietf:params:xml:ns:pidf" xmlns:pp="urn:ietf:params:xml:ns:pidf:person" xmlns:es="urn:ietf:params:xml:ns:pidf:rpid:status:rpid-status" xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person">
<note>Ready</note>
<tuple id="auto_hint_114">
 <status>
  <basic>open</basic>
 </status>
 <contact priority="1">&quot;\&quot;Person 109\&quot; &lt;109&gt;&quot; &lt;sip:109@10.24.22.61&gt;</contact>
</tuple>
<tuple id="digium-presence">
 <status>
  <digium_presence type="chat" />
 </status>
</tuple>
<pp:person>
 <status />
</pp:person>
</presence>
{noformat}

which is weird that Alice is getting "Ready"
Comments: