<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><br><blockquote type="cite"><div>On 22 Jul 2023, at 23:40, asterisk@phreaknet.org wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">On 7/22/2023 4:51 PM, Dirk-Willem van Gulik wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><blockquote type="cite" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">We have a couple of parallel ring settings (and this has worked well for eons).<br><br>Either in the form of<br><br><span class="Apple-tab-span" style="white-space: pre;"> </span>same => n,Dial(SIP/1001 & SIP/1002 & SIP/1003 …..)<br><br>Or via a subroutine (below) that has a bit of extra logic:<br><br><span class="Apple-tab-span" style="white-space: pre;"> </span>FOO = 1010 & 1019 & 1017 & 1033<br><span class="Apple-tab-span" style="white-space: pre;"> </span>...<br><span class="Apple-tab-span" style="white-space: pre;"> </span>same => n,gosub(sub-callout,s,1,(${FOO},”Ringing all class FOO telefons"))<br><br>Now I have two types of phones (different) era’s that require slightly different Alert-Info headers.<br><br>How can one introduce a layer of indirection at phone (extension) level that adds those headers ?<br></blockquote><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">I'm assuming you mean at the device level, and that you want to send only the relevant header to each device?</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">Use pre-dial handlers; a unique handler runs on each destination channel. With PJSIP, you're forced to do this anyways, but SIPAddHeader adds these to the calling channel first, which explains the problem you have now.</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div></blockquote><div><br></div><div>Aye - problem is - I have some 79XX phones for which I am very reliant on functionality from <a href="https://usecallmanager.nz/documentation-overview.html">https://usecallmanager.nz/documentation-overview.html</a> that is not in PJSIP.</div><br><blockquote type="cite"><div><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">How you determine the right header to send on each channel is something you still need to do. For example, you could detect the user agent in your pre-dial handler and add the appropriate header. This is a common enough scenario for things like setting the ring cadence that I wrote an application to handle this for me.</span></div></blockquote></div><br><div>OK - that is not quite as neat as I had hoped - but perfectly doable. And easy to wrap.</div><div><br></div><div>Thanks,</div><div><br></div><div>Dw.</div></body></html>