[Freeswitch-users] Enterprise Originate and group_confirm
Phillip Jones
pjintheusa at gmail.com
Thu Aug 12 15:31:17 PDT 2010
Perhaps I am going about this the wrong way. This is what I am trying
to acheive. Basically a simple call forward/follow me service as
follows:
1) call comes in via the PSTN hits the dial plan
2) aim is to call two numbers simultaneously - the first to pick up
and press 1, is bridged the PSTN call.
3) the two called numbers will try upto three gateways (if gw 1 fails
with NO_DESTINATION_ROUTE, try gateway 2 etc
4) if no one accepts the call (I.e. does not pick up OR picks up and
then hangs up without pressing 1) the call should go to voicemail
This should be possible with a combination of group_confirm,
continue_on_fail & enterprise originate, but I cannot seem to get it
quite right. Has anyone else achieved this using the dial plan?
Thanks
Pj
On Wednesday, August 11, 2010, Phillip Jones <pjintheusa at gmail.com> wrote:
> Hi there,
>
> I have the following dialplan which uses enterprise originate and group_confirm:
>
> The plan is that two numbers are called simutanuously, each number has several gateway to use, incase a gateway fails.
>
>
> <action application="ring_ready" data=""/>
> <action application="set" data="group_confirm_cancel_timeout=1"/>
> <action application="set" data="hangup_after_bridge=true"/>
> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,INCOMPATIBLE_DESTINATION,UNALLOCATED_NUMBER"/>
> <action application="bridge" data="{ignore_early_media=true,origination_caller_id_number=2155556240,group_confirm_file=prompts\press-1-to-accept-call-from.wav,group_confirm_key=1}
>
> [leg_timeout=25]sofia/gateway/quest/6095553828|[leg_timeout=25]sofia/gateway/broadvox1/6095553828
> :_:{ignore_early_media=true,origination_caller_id_number=2155556240,group_confirm_file=prompts\press-1-to-accept-call-from.wav,group_confirm_key=1}
>
> [leg_timeout=25]sofia/gateway/quest/2155554374|[leg_timeout=25]sofia/gateway/broadvox1/2155554374"/>
> <action application="managed" data="PPNSystem.Telephony.LeaveVoicemailHandler"/>
> <action application="hangup" data="NORMAL_CLEARING"/>
>
>
> Every thing works great in terms of mutiple legs ringing, bridging, hanging up etc.
>
> I have one issue though:
>
> When either of the numbers, 6095553828 for example, answers the call but does not accept it (i.e. does not press 1) and hangs up, the dialplan tries the next gateway for the same number and therefore 6095553828 ends up getting another call even though he has rejected it. I was expecting that once the call is answered and rejected (not bridged) then that part of the dialplan would stop.
>
>
> Any help appreciated.
>
> Thanks
>
> Pj
>
>
>
More information about the FreeSWITCH-users
mailing list