<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">You can use the pjsip endpoint callerid_tag option string to<br>indicate which tenant the<br>endpoint represents.  The interception routine can compare the<br>channel's callerid tag<br>with the updated connected line's tag.  (You could compare the<br>connected line tag with<br>a parameter set on the interception routine's arguments instead<br>of<br>the callerid tag.)<br>I think I found a bug with CONNECTEDLINE(tag) on attended<br>transfer<br>and need a help to fix it.<br>Alice's tag is "Alice".<br>Bob's tag is empty.<br>Charlie's tag is "Charlie".<br>Alice calls Bob and then does attended transfer to Charlie.<br>When Alice hangs up on the interception routine on the Charlie<br>channel<br>the CONNECTEDLINE(tag) is "Alice", but should be empty.<br>If Bob's tag is "Bob" then on the Charlie channel the<br>CONNECTEDLINE(tag) is "Bob".<br>I think somewhere the destination tag is not set/reset<br>if source tag is empty.<br>Could you, please, help me find it.</p></blockquote></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Connected line updates can be partial updates.  One of the criteria<br>for<br>sending a partial update is a NULL string.  NULL strings do not<br>become part of a connected line update so the other end merges what<br>it<br>already has with the information passed in a partial update.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Channel drivers don't necessarily pass the full party id<br>information<br>at once because the other end didn't pass all the information.  For<br>example ISDN passes the number and then follows up with the name if<br>available.  Even SIP doesn't always pass a name.</p></blockquote><pre style="font-family: monospace,monospace; white-space: pre-wrap;">I think the tag is internal information,<br>so it's not passed to or get from external signaling protocol.<br>According to channel.h<br> * \brief User-set "tag"<br> * A user-settable field used to help associate some extrinsic information<br> * about the channel or user of the channel to the party ID.  This information<br> * is normally not transmitted over the wire and so is only useful within an<br> * Asterisk environment.</pre><p style="white-space: pre-wrap; word-wrap: break-word;">I think if the user tag is empty then the empty value should be in connected line updates,<br>because it's not part of signaling, it's user attribute.</p><p><a href="https://gerrit.asterisk.org/10286">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10286">change 10286</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10286"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I6ce9e151a2220ce9e95aa66666933cfb9e2a4a01 </div>
<div style="display:none"> Gerrit-Change-Number: 10286 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 10 Oct 2018 19:11:20 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>