<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 1:21 AM, Patrick Wakano <span dir="ltr"><<a href="mailto:pwakano@gmail.com" target="_blank">pwakano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hello Asterisk list!<br><br></div>I've been facing some scenarios in my dialplan where I see the "h" extension being executed for Surrogate channels.<br></div>For me, it is kind of a mystery what these Surrogate channels are... I couldn't find good information about them... the source code is where I could find the most detailed info:<br><pre class="m_-845699645792787724gmail-fragment" style="font-family:monospace,fixed;font-size:12.996px;border-width:1px;border-style:solid;border-color:rgb(204,204,204);background-color:rgb(245,245,245);margin:4px 8px 4px 2px;padding:4px 6px;color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span class="m_-845699645792787724gmail-comment" style="color:rgb(128,0,0)">/*! \brief Channel technology used to extract a channel from a running application. The</span>
<a name="m_-845699645792787724_l00757" style="color:rgb(26,65,168)"></a> <span class="m_-845699645792787724gmail-comment" style="color:rgb(128,0,0)">* channel created with this technology will be immediately hung up - most external</span>
<span class="m_-845699645792787724gmail-comment" style="color:rgb(128,0,0)">* applications won't ever want to see this.</span>
<span class="m_-845699645792787724gmail-comment" style="color:rgb(128,0,0)">*/</span>
</pre>It mentions "<i>won't ever <b>want </b>to see this</i>", so I am unsure if they are only internal to Asterisk core and I should not be seeing these channels executing my dialplan, or if indeed I will see them in my dialplan, and then I have to handle them somehow (even if I don't want them)....<br><br></div>Anyway, does anyone know a good explanation about these surrogate channels, and what is expected of them when it comes to dialplan execution?<br></div></div></div></blockquote><div><br></div><div>The surrogate channels are replacement channels for masquerades to swap with<br></div><div>your target channel. They are created to die after a masquerade has substituted it<br></div><div>for the target channel. If you are seeing them in dialplan then just let them die<br>without doing anything else with them. The target channel is off doing whatever<br></div><div>caused the masquerade in the first place.<br></div><br><div>Richard<br></div></div><br></div></div>