<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;"><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 indicate which tenant the endpoint represents. The interception routine can compare the channel's callerid tag with the updated connected line's tag. (You could compare the connected line tag with a parameter set on the interception routine's arguments instead of the callerid tag.) I think I found a bug with CONNECTEDLINE(tag) on attended transfer and need a help to fix it. Alice's tag is "Alice". Bob's tag is empty. Charlie's tag is "Charlie". Alice calls Bob and then does attended transfer to Charlie. When Alice hangs up on the interception routine on the Charlie channel the CONNECTEDLINE(tag) is "Alice", but should be empty. If Bob's tag is "Bob" then on the Charlie channel the CONNECTEDLINE(tag) is "Bob". I think somewhere the destination tag is not set/reset if source tag is empty. Could you, please, help me find it. Connected line updates can be partial updates. One of the criteria for sending a partial update is a NULL string. NULL strings do not become part of a connected line update so the other end merges what it already has with the information passed in a partial update. Channel drivers don't necessarily pass the full party id information at once because the other end didn't pass all the information. For example ISDN passes the number and then follows up with the name if available. Even SIP doesn't always pass a name. I think the tag is internal information, so it's not passed to or get from external signaling protocol. According to channel.h</p><ul><li>\brief User-set "tag"</li><li>A user-settable field used to help associate some extrinsic</li><li>information</li><li>about the channel or user of the channel to the party ID. This</li><li>information</li><li>is normally not transmitted over the wire and so is only useful</li><li>within an</li><li>Asterisk environment.</li><li>I think if the user tag is empty then the empty value should be</li><li>in</li><li>connected line updates,</li><li>because it's not part of signaling, it's user attribute.</li></ul></blockquote></blockquote></blockquote></blockquote></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Actually, chan_iax2 will ship the connected line update to the peer asterisk server<br>so it is not entirely within one asterisk instance.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;"><br>I found that ast_party_id_copy sets the destination tag<br>unconditionally,<br>but ast_party_id_set sets the destination tag only if source tag is<br>not empty.<br>I think ast_party_id_set should set destination tag unconditionally<br>too.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Modifying ast_party_id_set() will really break things. You will be better served<br>by looking at party_id_build_data() instead. Make that function always add<br>the tag ie with an empty string if the tag string is NULL.</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:55:24 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>