Setting conference parameter regardless if it is already created or not
Hi. I need to set a conference parameter - "caller_id_name". So in my dialplan I do next: <action application="set" data="api_result=${conference($1 set caller_id_name ${Orig_Ptt_Ext})}"/> <action application="set" data="api_result=${conference($1 set caller_id_number ${Orig_Ptt_Ext_UUID})}"/> <action application="answer"/> <action application="conference" data="$1@simple++flags{nomoh}"/> . But it is not right, because the conference possibly does not exist at that time (will be created at " conference "). Then I tried to do next: <action application="answer"/> <action application="conference" data="$1@simple++flags{nomoh}"/> <action application="set" data="api_result=${conference($1 set caller_id_name ${Orig_Ptt_Ext})}"/> <action application="set" data="api_result=${conference($1 set caller_id_number ${Orig_Ptt_Ext_UUID})}"/> But it is also not right, bacause dialplan stops at doing "conference". So, what am I suppose to do to make it right? May be there is some way to pre-create conference (without real members)? May be there is a way to configure some actions to be done after creation of conference - something like "execute_on_conference_create"? With best regards, Shumaev D.A., programmer @ KBR Ltd.
Put those before you call the conference application, otherwise they'll never run unless you kick the caller out of the conference. -- Brian West brian@freeswitch.org Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jun 16, 2014, at 8:35 AM, Dmitriy Shumaev <pm_zefman_r@mail.ru> wrote:
<action application="answer"/> <action application="conference" data="$1@simple++flags{nomoh}"/> <action application="set" data="api_result=${conference($1 set caller_id_name ${Orig_Ptt_Ext})}"/> <action application="set" data="api_result=${conference($1 set caller_id_number ${Orig_Ptt_Ext_UUID})}"/> But it is also not right, bacause dialplan stops at doing "conference".
So, what am I suppose to do to make it right? May be there is some way to pre-create conference (without real members)? May be there is a way to configure some actions to be done after creation of conference - something like "execute_on_conference_create"?
With best regards, Shumaev D.A., programmer @ KBR Ltd.
participants (2)
-
Brian West
-
Dmitriy Shumaev