[Freeswitch-users] DTMF and dynamic conference

Michael Collins msc at freeswitch.org
Tue Dec 14 11:12:27 MSK 2010


Madovsky,

I thing maybe don't understand what you are trying to do. Do you simply want
to have a conference that requires the caller to enter a PIN? Or are you
trying to send a caller to a conference that has a PIN but you want to send
the PIN externally?

In case it's the latter you can do the following...
Create a conference locked by a PIN. In the logs below I used conf
3300 at default and 1234 as the PIN. Then I called 3300 from user 1002:

2010-12-14 00:00:21.518045 [NOTICE] switch_channel.c:784 New Channel
sofia/internal/1002 at 10.15.0.94 [09cad98f-6e12-45fa-9f01-e7d90b9ea771]
2010-12-14 00:00:21.520627 [INFO] mod_dialplan_xml.c:331 Processing Michael
<1002>->3000 in context default
2010-12-14 00:00:21.530579 [NOTICE] mod_dptools.c:920 Channel
[sofia/internal/1002 at 10.15.0.94] has been answered

Then I did "show channels" to get the uuid:

show channels
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid
09cad98f-6e12-45fa-9f01-e7d90b9ea771,inbound,2010-12-14
00:00:21,1292313621,sofia/internal/1002 at 10.15.0.94
,CS_EXECUTE,Michael,1002,10.15.30.10,3000,conference,3000-10.15.0.94 at default
+1234,XML,default,PCMU,8000,64000,PCMU,8000,64000,,ElToro2.FreePBXV3,,,ACTIVE,,,,

1 total.

Then I did "uuid_recv_dtmf <uuid> 1234" like this:
freeswitch at internal> uuid_recv_dtmf 09cad98f-6e12-45fa-9f01-e7d90b9ea771
1234
-ERR no reply

freeswitch at internal> 2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485
sofia/internal/1002 at 10.15.0.94 binding '0' to 'mute'
2010-12-14 00:00:41.505775 [INFO] switch_ivr_async.c:162 Digit parser
mod_conference: Setting realm to conf
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '*' to 'deaf mute'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '9' to 'energy up'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '8' to 'energy equ'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '7' to 'energy dn'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '3' to 'vol talk up'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '2' to 'vol talk zero'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '1' to 'vol talk dn'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '6' to 'vol listen up'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '5' to 'vol listen zero'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '4' to 'vol listen dn'
2010-12-14 00:00:41.505775 [INFO] mod_conference.c:6485 sofia/internal/
1002 at 10.15.0.94 binding '#' to 'hangup'

As you can see you do get "-ERR No Reply" but the operation itself works
just fine.
-MC

On Mon, Dec 13, 2010 at 11:42 PM, Madovsky <infos at madovsky.org> wrote:

>  I tried the default conference dialplan with a real phone and works well.
>
>
> ----- Original Message -----
> *From:* Michael Collins <msc at freeswitch.org>
> *To:* FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> *Sent:* Tuesday, December 14, 2010 2:09 AM
> *Subject:* Re: [Freeswitch-users] DTMF and dynamic conference
>
> Do you actually try calling this with a real telephone to make sure that
> the extension is doing what you think it is doing?
> -MC
>
> On Mon, Dec 13, 2010 at 11:14 AM, Madovsky <infos at madovsky.org> wrote:
>
>>  I'm trying the default conference in
>> autoload_configs/conference.conf.xml,
>> commented out the pin number line,
>>
>> but now when the ivr asks the pin number, for testing I tried
>> to do this :
>>
>>         <extension name="nb_conferences">
>>                 <condition field="${sip_to_uri}"
>> expression="^(999)@$${domain}$">
>>                         <action application="answer"/>
>>                         <action application="info"/>
>>                         <!-- <action application="conference" data="
>> confname at profilename+flags{mute|deaf|waste|moderator}+[conference<confname at profilename+flags%7Bmute%7Cdeaf%7Cwaste%7Cmoderator%7D+%5Bconference>pin number]"> -->
>>                         <action application="conference" data="
>> $1-$${domain}@default"/ <$1-$$%7Bdomain%7D at default%22/>>
>>                         <action application="send_dtmf" data="12345 at 120"/<12345 at 120%22/>
>> >
>>                 </condition>
>>         </extension>
>> and this on CLI:
>>
>> expand uuid_send_dtmf ${uuid} 12345
>>
>>
>> without success.
>> How the default conference example accept DTMF ?
>>
>> Thanks
>>
>> F
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>  ------------------------------
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101214/532edd79/attachment-0001.html 


More information about the FreeSWITCH-users mailing list