How to get last bridged call leg phone number?
FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1 I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person's voicemail. Here is my part of dialplan: <extension name="Local_Extension1"> <condition field="destination_number" expression="(^(5554447579$)"> <action application="set" data="ignore_early_media=true"/> <action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/5554447580@192.168.1.22|[leg_timeout=10]sofia/internal/5554447578@192.168.1.22"/> </condition> <condition> Send call to voicemail ..... </condition> </extension> If no answer on 5554447580, I want it to goto 5554447580's voicemail. If no answer on 5554447578, I want it to goto 5554447578's voicemail. But I could not find the variable which contains the last bridged number information. How do I get the last dialed number in bridge app? I tried to add variable in each leg like following, but it did not work: <action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22|[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22"/> Gary
Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not. -MC On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <Gary.Chen@lightyear.net> wrote:
FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1****
** **
I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person’s voicemail. Here is my part of dialplan:****
<extension name="Local_Extension1">****
<condition field="destination_number" expression="(^(5554447579$)">* ***
<action application="set" data="ignore_early_media=true"/>****
<action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/ 5554447580@192.168.1.22|[leg_timeout=10]sofia/internal/ 5554447578@192.168.1.22"/>****
</condition>****
<condition>****
Send call to voicemail …..****
</condition>****
</extension>****
** **
If no answer on 5554447580, I want it to goto 5554447580’s voicemail. If no answer on 5554447578, I want it to goto 5554447578’s voicemail. But I could not find the variable which contains the last bridged number information.****
How do I get the last dialed number in bridge app? ****
I tried to add variable in each leg like following, but it did not work:* ***
<action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22 |[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22"/>*** *
** **
** **
Gary****
** **
In this setting, it will ring the first available phone, it the first phone is busy, it will ring the second one. That is what I want. The only problem is that I can not find number it just rang. I need to this number to access the correct voicemail box. If I remove ignore_early_media=true, it will ring the first number forever and never be able to goto voicemail. Gary From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Wednesday, June 27, 2012 12:46 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to get last bridged call leg phone number? Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not. -MC On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <Gary.Chen@lightyear.net<mailto:Gary.Chen@lightyear.net>> wrote: FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1 I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person's voicemail. Here is my part of dialplan: <extension name="Local_Extension1"> <condition field="destination_number" expression="(^(5554447579$)"> <action application="set" data="ignore_early_media=true"/> <action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/5554447580@192.168.1.22<mailto:5554447580@192.168.1.22>|[leg_timeout=10]sofia/internal/5554447578@192.168.1.22<mailto:5554447578@192.168.1.22>"/> </condition> <condition> Send call to voicemail ..... </condition> </extension> If no answer on 5554447580, I want it to goto 5554447580's voicemail. If no answer on 5554447578, I want it to goto 5554447578's voicemail. But I could not find the variable which contains the last bridged number information. How do I get the last dialed number in bridge app? I tried to add variable in each leg like following, but it did not work: <action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22<mailto:5554447580@192.168.1.22>|[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22<mailto:5554447578@192.168.1.22>"/> Gary
Ok, sounds good. My next question is this: what do you see in the "mailbox" chan var that you added to the call legs? Are you actually looking in the B leg CDR for this value? -MC On Wed, Jun 27, 2012 at 10:26 AM, Gary Chen <Gary.Chen@lightyear.net> wrote:
In this setting, it will ring the first available phone, it the first phone is busy, it will ring the second one. That is what I want. The only problem is that I can not find number it just rang. I need to this number to access the correct voicemail box.****
** **
If I remove ignore_early_media=true, it will ring the first number forever and never be able to goto voicemail.****
** **
Gary****
** **
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Michael Collins *Sent:* Wednesday, June 27, 2012 12:46 PM *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] How to get last bridged call leg phone number?****
** **
Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not.
-MC****
On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <Gary.Chen@lightyear.net> wrote:****
FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1****
****
I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person’s voicemail. Here is my part of dialplan:****
<extension name="Local_Extension1">****
<condition field="destination_number" expression="(^(5554447579$)">* ***
<action application="set" data="ignore_early_media=true"/>****
<action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/ 5554447580@192.168.1.22|[leg_timeout=10]sofia/internal/ 5554447578@192.168.1.22"/>****
</condition>****
<condition>****
Send call to voicemail …..****
</condition>****
</extension>****
****
If no answer on 5554447580, I want it to goto 5554447580’s voicemail. If no answer on 5554447578, I want it to goto 5554447578’s voicemail. But I could not find the variable which contains the last bridged number information.****
How do I get the last dialed number in bridge app? ****
I tried to add variable in each leg like following, but it did not work:* ***
<action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22 |[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22"/>*** *
****
****
Gary****
****
****
I tried to use app=log or app=info to look at the voicemail variable and it does not exist or never set it up. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Wednesday, June 27, 2012 1:42 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to get last bridged call leg phone number? Ok, sounds good. My next question is this: what do you see in the "mailbox" chan var that you added to the call legs? Are you actually looking in the B leg CDR for this value? -MC On Wed, Jun 27, 2012 at 10:26 AM, Gary Chen <Gary.Chen@lightyear.net<mailto:Gary.Chen@lightyear.net>> wrote: In this setting, it will ring the first available phone, it the first phone is busy, it will ring the second one. That is what I want. The only problem is that I can not find number it just rang. I need to this number to access the correct voicemail box. If I remove ignore_early_media=true, it will ring the first number forever and never be able to goto voicemail. Gary From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Michael Collins Sent: Wednesday, June 27, 2012 12:46 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to get last bridged call leg phone number? Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not. -MC On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <Gary.Chen@lightyear.net<mailto:Gary.Chen@lightyear.net>> wrote: FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1 I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person's voicemail. Here is my part of dialplan: <extension name="Local_Extension1"> <condition field="destination_number" expression="(^(5554447579$)"> <action application="set" data="ignore_early_media=true"/> <action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/5554447580@192.168.1.22<mailto:5554447580@192.168.1.22>|[leg_timeout=10]sofia/internal/5554447578@192.168.1.22<mailto:5554447578@192.168.1.22>"/> </condition> <condition> Send call to voicemail ..... </condition> </extension> If no answer on 5554447580, I want it to goto 5554447580's voicemail. If no answer on 5554447578, I want it to goto 5554447578's voicemail. But I could not find the variable which contains the last bridged number information. How do I get the last dialed number in bridge app? I tried to add variable in each leg like following, but it did not work: <action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22<mailto:5554447580@192.168.1.22>|[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22<mailto:5554447578@192.168.1.22>"/> Gary
Yeah, because you're probably doing that on the A leg and not the B leg. The variable is only set on the B leg. At what point in the call flow do you need the value? Do you need it after the call for CDR processing? -MC On Wed, Jun 27, 2012 at 10:51 AM, Gary Chen <Gary.Chen@lightyear.net> wrote:
I tried to use app=log or app=info to look at the voicemail variable and it does not exist or never set it up.****
** **
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Michael Collins *Sent:* Wednesday, June 27, 2012 1:42 PM *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] How to get last bridged call leg phone number?****
** **
Ok, sounds good. My next question is this: what do you see in the "mailbox" chan var that you added to the call legs? Are you actually looking in the B leg CDR for this value?
-MC****
On Wed, Jun 27, 2012 at 10:26 AM, Gary Chen <Gary.Chen@lightyear.net> wrote:****
In this setting, it will ring the first available phone, it the first phone is busy, it will ring the second one. That is what I want. The only problem is that I can not find number it just rang. I need to this number to access the correct voicemail box.****
****
If I remove ignore_early_media=true, it will ring the first number forever and never be able to goto voicemail.****
****
Gary****
****
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Michael Collins *Sent:* Wednesday, June 27, 2012 12:46 PM *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] How to get last bridged call leg phone number?****
****
Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not.
-MC****
On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <Gary.Chen@lightyear.net> wrote:****
FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1****
****
I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person’s voicemail. Here is my part of dialplan:****
<extension name="Local_Extension1">****
<condition field="destination_number" expression="(^(5554447579$)">* ***
<action application="set" data="ignore_early_media=true"/>****
<action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/ 5554447580@192.168.1.22|[leg_timeout=10]sofia/internal/ 5554447578@192.168.1.22"/>****
</condition>****
<condition>****
Send call to voicemail …..****
</condition>****
</extension>****
****
If no answer on 5554447580, I want it to goto 5554447580’s voicemail. If no answer on 5554447578, I want it to goto 5554447578’s voicemail. But I could not find the variable which contains the last bridged number information.****
How do I get the last dialed number in bridge app? ****
I tried to add variable in each leg like following, but it did not work:* ***
<action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22 |[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22"/>*** *
****
****
Gary****
****
I need it for sending the call to voicemail, if no answer. The problem is that I can not tell which phone it rang and no answer so I do not know which voicemail box should I send the call to? Can I export variable from B leg to A leg in bridge app? From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Wednesday, June 27, 2012 2:34 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to get last bridged call leg phone number? Yeah, because you're probably doing that on the A leg and not the B leg. The variable is only set on the B leg. At what point in the call flow do you need the value? Do you need it after the call for CDR processing? -MC On Wed, Jun 27, 2012 at 10:51 AM, Gary Chen <Gary.Chen@lightyear.net<mailto:Gary.Chen@lightyear.net>> wrote: I tried to use app=log or app=info to look at the voicemail variable and it does not exist or never set it up. From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Michael Collins Sent: Wednesday, June 27, 2012 1:42 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to get last bridged call leg phone number? Ok, sounds good. My next question is this: what do you see in the "mailbox" chan var that you added to the call legs? Are you actually looking in the B leg CDR for this value? -MC On Wed, Jun 27, 2012 at 10:26 AM, Gary Chen <Gary.Chen@lightyear.net<mailto:Gary.Chen@lightyear.net>> wrote: In this setting, it will ring the first available phone, it the first phone is busy, it will ring the second one. That is what I want. The only problem is that I can not find number it just rang. I need to this number to access the correct voicemail box. If I remove ignore_early_media=true, it will ring the first number forever and never be able to goto voicemail. Gary From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Michael Collins Sent: Wednesday, June 27, 2012 12:46 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] How to get last bridged call leg phone number? Shouldn't you be ignoring early media on these calls? I would assume that it would never make it to the second leg because as soon as the first leg sends back media then the bridge is "successful" whether 7580 answers or not. -MC On Wed, Jun 27, 2012 at 9:28 AM, Gary Chen <Gary.Chen@lightyear.net<mailto:Gary.Chen@lightyear.net>> wrote: FreeSWITCH Version 1.2.0-rc2+git~20120625T160048Z~690cae5de1 I am trying to setup hunt group using bridge app. I want it to ring the first available phone, if that person does not answer, then it should go to that person's voicemail. Here is my part of dialplan: <extension name="Local_Extension1"> <condition field="destination_number" expression="(^(5554447579$)"> <action application="set" data="ignore_early_media=true"/> <action application="bridge" data="{originate_continue_on_timeout=false}[ leg_timeout=10]sofia/internal/5554447580@192.168.1.22<mailto:5554447580@192.168.1.22>|[leg_timeout=10]sofia/internal/5554447578@192.168.1.22<mailto:5554447578@192.168.1.22>"/> </condition> <condition> Send call to voicemail ..... </condition> </extension> If no answer on 5554447580, I want it to goto 5554447580's voicemail. If no answer on 5554447578, I want it to goto 5554447578's voicemail. But I could not find the variable which contains the last bridged number information. How do I get the last dialed number in bridge app? I tried to add variable in each leg like following, but it did not work: <action application="bridge" data="{originate_continue_on_timeout=false}[ mailbox=7580,leg_timeout=10]sofia/internal/5554447580@192.168.1.22<mailto:5554447580@192.168.1.22>|[mailbox=7578,leg_timeout=10]sofia/internal/5554447578@192.168.1.22<mailto:5554447578@192.168.1.22>"/> Gary
participants (2)
-
Gary Chen
-
Michael Collins