[Freeswitch-users] Announcing conference participant after PIN entry

Thilo-Alexander Ginkel thilo at ginkel.com
Mon Jan 27 14:06:04 UTC 2020

Hello everyone,

let's say, I have a FreeSWITCH conference that is PIN-protected and where I
want to record each participant's name. How do I announce the name of a
participant *after* the caller's PIN has been validated?

So far I tried something like this:

        <extension name="Record Name and schedule conf announce">
          <condition field="destination_number" expression="^34(\d{2})$">
            <action application="answer"/>
            <action application="set" data="namefile=/tmp/${uuid}-name.wav"
            <action application="sleep" data="1000"/>
            <action application="playback"
            <action application="playback"
            <action application="record" data="${namefile} 5"/>
            <action application="playback"
            <action application="set" data="res=${sched_api +1 none
conference 31$1-${domain_name} play
            <action application="transfer" data="31$1 XML default"/>

        <extension name="wb_conferences">
          <condition field="destination_number" expression="^(31\d{2})$">
            <action application="answer"/>
            <action application="conference"

Participant dials 34xx, name is recorded, playback scheduled, call
transferred to 31xx, which initiates the conference, but sched_api plays
the join message before the pin has been validated.

Is there a way to hook into the conference so that the join message is only
scheduled after the PIN has been validated successfully?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200127/dc7fcdc5/attachment.html>

More information about the FreeSWITCH-users mailing list