[asterisk-users] AMI redirect from Queue to MeetMe

Sherwood McGowan sherwood.mcgowan at gmail.com
Mon Mar 28 10:10:26 CDT 2011



On 3/28/2011 10:02 AM, Jim Dickenson wrote:
> I would be surprised that you did not always hang up the second
> channel you are redirecting. Once you transfer one leg there is
> nothing connected to the second leg so it goes away, I would think.
>
> What we do is remember the agent number, transfer the caller, and then
> setup a call to the agent and meetme room.
>
> More or less like:
>
> Action: Redirect
> Channel: SIP/GXP280_18-00000001
> Exten: do_meetme601MyID
> Context: cfmc_cdi_private
> Priority: 1
> ActionID: MeetMe
> Async: true
>
>
> Action: Originate
> Channel: Agent/1001
> Exten: do_meetme601MyID2
> Context: cfmc_cdi_private
> Priority: 1
> ActionID: DirectMeet
> Async: true
>
>
> exten => _do_meetme.,1,UserEvent(BeforeMeetMe,Info:${EXTEN:9} &
> ${UNIQUEID} & ${CHANNEL})
> exten => _do_meetme.,n,Answer()
> exten => _do_meetme.,n,Set(CfMC_RoomToUse=${EXTEN:9:3})
> exten => _do_meetme.,n,Set(CfMC_CurrentID=${EXTEN:12})
> exten => _do_meetme.,n,Set(MEETME_MOH_CLASS="meetme-music")
> exten => _do_meetme.,n,MeetMe(${CfMC_RoomToUse},CMpqx1)
> exten =>
> _do_meetme.,n,UserEvent(AfterMeetMe,ActionID:${CfMC_CurrentID} &
> Room:${CfMC_RoomToUse} & ${UNIQUEID} & ${CHANNEL})
> exten => _do_meetme.,n,Hangup()
>
> -- 
> Jim Dickenson
> mailto:dickenson at cfmc.com
>
> CfMC
> http://www.cfmc.com/
>
>
>
> On Mar 28, 2011, at 1:23 AM, Deka, Rajib IN MAA SL wrote:
>
>> Hello List,
>>
>>  
>>
>> I have scenario as follows,
>>
>>  
>>
>>    1. A call comes to queue.
>>    2. Available agent will answer the call.
>>    3. BridgeEvent wil be generated in AMI with channel1 and channel2.
>>    4. Parse channel1 and channel two from the event and redirect them
>>       to a meetme room,
>>
>>  
>>
>> Dialplan,
>>
>>  
>>
>> Exten => 1234,1,MeetMe(1234,1dq)
>>
>>  
>>
>> But sometime it works and sometime one leg gets disconnected after
>> redirection. Is it a bug to asterisk-1.6.2.13 ?
>>
>>  
>>
>> Regards,
>>
>>  
>>
>> *Rajib Deka*
>>
>> SIEMENS Ltd.
>>
>> RobertV Chandran Tower, First Floor, West Wing,
>>
>> #149, Velechery Tambaram Main Road, Pallikaranai, Chennai-100, INDIA.
>>
>> www.siemens.com <http://www.siemens.com/>
>>
>>  
>>
>> Mob: +91-9176780669| E-Mail: rajib.deka at siemens.com
>> <mailto:rajib.deka at siemens.com>
>>
>>  
>>
>>
>> ------------------------------------------------------------------------
>> Important notice: This e-mail and any attachment there to contains
>> corporate proprietary information. If you have received it by
>> mistake, please notify us immediately by reply e-mail and delete this
>> e-mail and its attachments from your system.
>> Thank You.
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>               http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

You could also use the "Extra" options (Channel, context, extension,
priority) to transfer BOTH legs

-- 
Sherwood McGowan <sherwood.mcgowan at gmail.com>
Carrier, ITSP, Call Center, and PBX Solutions Consultant




More information about the asterisk-users mailing list