[Freeswitch-users] How to get last bridged call leg phone number?

Gary Chen Gary.Chen at lightyear.net
Wed Jun 27 21:51:29 MSD 2012


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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at lightyear.net<mailto:Gary.Chen at 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 at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at 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 at lightyear.net<mailto:Gary.Chen at 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 at 192.168.1.22<mailto:5554447580 at 192.168.1.22>|[leg_timeout=10]sofia/internal/5554447578 at 192.168.1.22<mailto:5554447578 at 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 at 192.168.1.22<mailto:5554447580 at 192.168.1.22>|[mailbox=7578,leg_timeout=10]sofia/internal/5554447578 at 192.168.1.22<mailto:5554447578 at 192.168.1.22>"/>


Gary




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120627/a19be26e/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list