<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;">After the channels are bridged, the<br>connected line updates cannot be blocked.<br>Why?<br>I have already indicated why you cannot suppress connected line<br>update events after the initial connection.<br>https://gerrit.asterisk.org/#/c/asterisk/+/9558/<br></p></blockquote></blockquote></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I don't understand.<br>If I want the asterisk suppress all connected line updates between<br>parties,<br>I can not because the asterisk is incapable to do it?</p><p style="white-space: pre-wrap; word-wrap: break-word;">For example, the asterisk is multihome PBX.<br>There are 2 virtual PBXs - PBX1 and PBX2.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Alice (ext 100) from PBX1 (number 9876543210) calls PBX2 number 1234567890. This call goes to Bob (ext 200). I want</p><ul><li>Alice see connected line "<1234567890>".</li><li>Bob see connected line "PBX1 <9876543210>".</li><li>Instead now</li><li>Alice sees connected line "Bob <200>"</li><li>Bob sees connected line "Alice <100>"</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">Then Bob attended transfers call to Charlie (ext 201). Charlie answers I want</p><ul><li>Bob see connected line "Charlie <201>".</li><li>Charlie see connected line "Bob <200>".</li><li>it's OK</li><li>Then Bob hangups and Alice is connected to Charlie.</li><li>I want</li><li>Alice see connected line "<1234567890>".</li><li>Charlie see connected line "PBX1 <9876543210>".</li><li>Instead now</li><li>Alice sees connected line "Charlie <201>"</li><li>Charlie sees connected line "Alice <100>"</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">I want that inside Virtual PBX all "internal" calls passes<br>connected line updates.<br>I want that outside Virtual PBX all "external" calls suppress<br>connected line updates.<br>I don't want that people outside Virtual PBX know person name and<br>extension number.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So If App Dial can suppress all connected line updates on<br>"external" calls it solves my problem.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't think the best solution is to use Pre-dial handlers and<br>Connected-line interception handlers,<br>because if the Dial destination is complex the usage of handlers<br>will be very very complex.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So let me know if we can do the asterisk to be capable to do it<br>simple with the Dial option or it's forbidden<br>and it must be done only the current way (Pre-dial and<br>Connected-line interception handlers).</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Blocking anything other than the initial connected line update is wrong.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Simply blocking all connected line updates to Charlie will not get what you claim to<br>want in the transfer scenario you describe above without lying to Charlie.  While Bob<br>is talking with Charlie you would have to lie to Charlie such that Charlie would see<br>that he is talking to Alice/PBX1 when he truly is not.  Blocking connected line updates<br>to Charlie will also be wrong if Charlie then does an attended transfer of Alice/PBX1 to<br>college Dave.  During the initial consultation, Dave and Charlie will have Alice/PBX1<br>on their display.</p><p style="white-space: pre-wrap; word-wrap: break-word;">It is better that you use the interception routine for its intended purpose.  Its<br>purpose is to map the new connected line information to your numbering plan.  This way<br>you won't have to lie to Charlie to whom he is talking.</p><p style="white-space: pre-wrap; word-wrap: break-word;">A party identification consists of the name, number, presentation, and user tag string.<br>There are other parameters but you can look them up yourself.</p><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<br>endpoint represents.  The interception routine can compare the channel's callerid tag<br>with the updated connected line's tag.  (You could compare the connected line tag with<br>a parameter set on the interception routine's arguments instead of the callerid tag.)<br>If they match you know it is one tenant member talking with another.  If they don't<br>match then you can use the fixed "public" identity of the connected line tenant.</p><p style="white-space: pre-wrap; word-wrap: break-word;">You can use the pjsip endpoint set_var option to setup the connected line interception<br>routine channel variables.</p><p style="white-space: pre-wrap; word-wrap: break-word;">There are many ways to achieve what you want for your multi-tenant setup.  They do not<br>require patching Asterisk to do it.</p><p style="white-space: pre-wrap; word-wrap: break-word;">To reiterate: Blocking anything other than the initial connected line update is wrong.</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: 2 </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, 03 Oct 2018 18:12:39 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>