[Freeswitch-users] Determine what extension picked up after Bridging to a Group Call?

Frank Busalacchi Jr frankjr at mcpeekdodge.com
Wed Jan 25 01:27:47 MSK 2012


Probably not the right way to do this, but currently I implement "RingGroups" by bridging to a group call (as opposed to FIFO).

Is there any way to determine after the bridge is successful which extension in the group call actually answered the call?

Example:

  <extension name="Group-Office">
    <condition field="destination_number" expression="^(1200)$">
      <action application="set" data="hangup_after_bridge=true"/>
      <action application="set" data="continue_on_fail=true"/>
      <action application="set" data="call_timeout=25"/>
      <action application="set" data="ringback=${us-ring}"/>
      <action application="set" data="transfer_ringback=$${hold_music}"/>
      <action application="set" data="called_party_callgroup=office"/>
      <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
      <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>
      <action application="bridge" data="${group_call(office@${domain_name}+A)}"/>
      <action application="transfer" data="1200 XML default"/>
      <action application="hangup"/>
    </condition>
  </extension>


I ask as a followup to a question long ago about how to determine the actual call path each call takes.  I want to be able to determine that a call came in, was transferred to ext 1200 (The Call Group), and then know which actual extension picked it up.  I am doing that in my "Local_Transfer" extension by appending/exporting to a channel variable I have created called ${call_path}.  I then have my cdr_csv include ${call_path} in its output.  Works nicely except with the "group call".  

I get   7145551212:1200   
            Inbound Call_id : transferred to 1200

What I would like to somehow accomplish is:

7145551212:1200:1250
Inbound Call_ID : transferred to 1200 (RingGroup) : Transferred to 1250 (Actual extension in RingGroup that answered).

Hope this doesn't sound like gibberish...

Thanks for any ideas

-Frank



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list