<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 12:20 PM Nikša Baldun <<a href="mailto:it@voxdiversa.hr">it@voxdiversa.hr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>I have checked it, and that led me to bridge.c. Perhaps I wasn't
      clear enough. These are the channels involved in attended
      transfer:</p>
    <p>(transferee) <> (transferer1) (transferer2) <>
      (transfer target)<br>
    </p>
    <p>Transferee and transfer target are not readily available in
      res_pjsip_refer.c, but I can get them in bridge.c, as long as both
      calls are bridged. But transfer target may be in ringing state,
      and in that case there is no bridge whose members I can check.
      Also, there could be multiple ringing channels. So in that case, I
      need a way to get all ringing channels which belong to
      transferrer2 channel. I was wondering if there is an existing
      method for that, or do I have to devise my own. </p></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>The only idea
      which comes to mind is to iterate over all channels in the system
      and compare their LinkedId to transferer2 UniqueId.<br></p></div></blockquote><div>Please don't do that. :)</div><div><br></div><div>So, Alice (transferee) is on an existing call (channel transferer1), she transfers to Bob (transfer target), Asterisk sets up channel transferer2 to call Bob and Bob is ringing but hasn't answered yet.  Right?   Optionally, Alice transfers to a "ring group" which causes Asterisk to create multiple outbound channels, correct?    The only place I can think of that knows about this is app_dial.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><p>
    </p>
    <div>On 24. 08. 2021. 19:38, George Joseph
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at
            11:22 AM Nikša Baldun <<a href="mailto:it@voxdiversa.hr" target="_blank">it@voxdiversa.hr</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div>
              <p>Hello, <br>
              </p>
              <p>I am using chan_pjsip.<br>
              </p>
            </div>
          </blockquote>
          <div>Check res_pjsip_refer.c  you may be able to intercept
            both channels there.</div>
          <div><br>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div>
              <p> </p>
              <div>On 24. 08. 2021. 18:55, George Joseph wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div dir="ltr"><br>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Mon, Aug 23,
                      2021 at 4:29 AM Nikša Baldun <<a href="mailto:it@voxdiversa.hr" target="_blank">it@voxdiversa.hr</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
                      <br>
                      I am trying to modify bridge.c (function
                      ast_bridge_transfer_attended) <br>
                      in order to send channels involved in SIP attended
                      transfer to the <br>
                      dialplan. If both transferee and transfer target
                      are bridged, that is <br>
                      relatively easy. However, if transfer target is
                      ringing, I don't know <br>
                      how to find B-leg channels (there could be
                      multiple, I suppose). So the <br>
                      question is, having a reference to A-leg channel,
                      how to obtain a list <br>
                      of B-leg channels?<br>
                      <br>
                      Best regards,<br>
                      <br>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>Which channel driver are you using?</div>
                    <div><br>
                    </div>
                    <div> </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
                      -- <br>
_____________________________________________________________________<br>
                      -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a>
                      --<br>
                      <br>
                      asterisk-dev mailing list<br>
                      To UNSUBSCRIBE or update options visit:<br>
                         <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
                  </div>
                </div>
                <br>
                <fieldset></fieldset>
              </blockquote>
            </div>
            -- <br>
_____________________________________________________________________<br>
            -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a>
            --<br>
            <br>
            asterisk-dev mailing list<br>
            To UNSUBSCRIBE or update options visit:<br>
               <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
    </blockquote>
  </div>

-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div></div>