[Freeswitch-users] Dial multiple users for "conference" call

Nathan Neulinger nneul at mst.edu
Wed Jan 13 19:46:43 MSK 2016


What I've been told previously is that "loopback/" is problematic, and that when it's needed, should use a sofia 
loopback profile instead. i.e. sending call to 123456 at 127.0.0.1

-- Nathan

On 01/13/2016 09:29 AM, Bote Man wrote:
> Oh dear! Loopback is evil and should be used sparingly and carefully.
>
> Having said that, I use loopback in my outbound conference dialplan extension to play an alert tone at the beginning of
> the call using tgml, then it hangs up and goes away. Nothing much to go wrong there, so it’s not very evil.
>
> Loopback tells FS to make another pass through the dialplan (loop back through the dialplan) searching for the number or
> string specified to loopback. If you get spurious matches, you should refine your dialplan further to match only the
> desired extension.
>
> As anthm is fond of saying, the XML dialplan is not a script processor, it’s a basic routing mechanism. You might have
> enough complexity to require a script to parse and process those outlier numbers without country code, I don’t know.
> That’s above my pay grade J
>
> Just saw your follow-up message. Perhaps try the “export” app instead of the “set” app to make sure that your custom
> channel variables get exported to the B-leg of the loopback app? Just a shot in the dark, but loopback does generate A-
> and B-legs apparently.
>
> Hope this helps.
>
> Bote
>
> *From:*Michael Nielsen
> *Sent:* Wednesday, 13 January, 2016 07:55
> *Subject:* Re: [Freeswitch-users] Dial multiple users for "conference" call
>
> Hi Bote,
>
> Thank you so much for all your detailed info. That helped a lot and solved almost everything.
>
> Final question... When I use the <action application="conference_set_auto_outcall" data="loopback/293234"/>, doesn't
> loopback means that it's try and dial 293234 from a matching dial plan already existing within my FreeSWITCH?
>
> The case is, that I've got a dial plan recognising expression="^(\d{3,20})$" etc.
>
> And if a number doesn't contain a valid country code I'll append it automatically according to the subscriber who
> initiate the calls.
>
> So my subscriber for example has a variable set country_code = +44. When I dial something it appends +44 if there is no
> country code.
>
> This works if I call something else than my conference dial plan, but when calling the conference dial plan and using
> loopback it doesn't work.
>
> Does it make sense and can you help?
>
> On Tue, Jan 12, 2016 at 6:44 PM, Bote Man <bote_radio at botecomm.com <mailto:bote_radio at botecomm.com>> wrote:
>
> Michael, I make extensive use of the FreeSWITCH outbound conference calling feature. I recently figured that I got the
> results that you (and I) desire with these 2 lines in the dialplan of the extension that initiates the outbound
> conference call:
>
> <action application="set" data="conference_auto_outcall_caller_id_name=${caller_id_name}"/>
>
> <action application="set" data="conference_auto_outcall_caller_id_number=${caller_id_number}"/>
>
> It’s not clear to me which of the many, many, many Caller*ID variables are the best to use overall, but these are the
> ones that send the originating extension number and name as FreeSWITCH knows them to the dialed conferees. I find that
> effective_caller_id_number is not always effective J
>
> Of course, you can set caller_id_* to effective_* or any other assignments as needed; experimentation yields a lot of
> knowledge here. Use the “log” application liberally in your conference dialplan extension to display as many variables
> as you need to determine which holds the desired values, that’s how I did it. A lot of them are empty, some are default,
> nothing is set in stone so change and set them the way you see fit.
>
> Also, in answer to your previous query about the conferees still ringing after the originator hangs up, add the
> “endconf” flag to your conference kick-off string:
>
> <action application="conference" data="myconf at default++flags{endconf|moderator|nomoh}"/>
>
> myconf – the “name” of the conference as FreeSWITCH knows it, can be pretty much anything readable, numbers, letters,
> literal value, variable replacement, etc.
>
> default – the conference profile to use as configured in autoload_configs/conference.conf.xml
>
> moderator flag – pulls in a different set of controls as specified in the config file mentioned above.
>
> Hope this helps.
>
> Bote
>
> *From:*Michael Nielsen
> *Sent:* Tuesday, 12 January, 2016 04:27
> *Subject:* Re: [Freeswitch-users] Dial multiple users for "conference" call
>
> Hi Larry,
>
> As you can see from my example, I am trying to set that exact variable:
>
> <action application="set" data="conference_auto_outcall_caller_id_number=${effective_caller_id_number}"/>
>
> But I want to set it from the effective_caller_id_number, so I can get the caller ID from the person who initiated the
> conference call.
>
> On Mon, Jan 11, 2016 at 7:50 PM, Larry Morley <lmorley at neny.cslimits.net <mailto:lmorley at neny.cslimits.net>> wrote:
>
> Michael,
>
> Go back and have another look at the "mad boss" example. The variable you likely want to set in this instance is
> "conference_auto_outcall_caller_id_number".
>
> Basically, what Mike J was telling you is that not all variables are salient; are set by FreeSwitch; have any meaning
> whatsoever; in the context of certain parts of a given FreeSwitch configuration.
>
>  From the "mad boss" example:
>
> <!--These params effect the outcalls made once you join-->
>
>          <action application="set" data="conference_auto_outcall_caller_id_name=Mad Boss"/>
>
>          <action application="set" data="conference_auto_outcall_caller_id_number=0911"/>
>
> Hope that helps,
> Larry
>
> On Jan 11, 2016 9:02 AM, "Michael Nielsen" <mic.niel84 at gmail.com <mailto:mic.niel84 at gmail.com>> wrote:
>
> https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables
>
> On Mon, Jan 11, 2016 at 3:00 PM, Michael Nielsen <mic.niel84 at gmail.com <mailto:mic.niel84 at gmail.com>> wrote:
>
> In other dial plans I'm able to use ${effective_caller_id_number} from my directory.
>
> That means, if my subscriber 1001 are calling I can use 1001 as caller ID, so my called parties know who it is.
>
> On Mon, Jan 11, 2016 at 2:58 PM, Michael Jerris <mike at jerris.com <mailto:mike at jerris.com>> wrote:
>
>
>
> On Monday, January 11, 2016, Michael Nielsen <mic.niel84 at gmail.com <mailto:mic.niel84 at gmail.com>> wrote:
>
> Seems as if it has nothing to do with multiple parties speaking together, just simultaneously calling them.
>
> Back to mod_conferece and the madboss example. It seems to work, but not getting the variable from the caller:
>
> 1) If I call some numbers, and hang up before the 60 seconds timeout - the numbers keeps ringing for 60 seconds, even
> though I as initiator have hung up.
>
> 2) <action application="set" data="conference_auto_outcall_caller_id_number=${effective_caller_id_number}"/> doesn't
> seems to be acknowledge, it shows Unknown number.
>
> What do you think effective_caller_id_number is here?  this is not a variable that is automatically set
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>

-- 
------------------------------------------------------------
Nathan Neulinger                       nneul at mst.edu
Missouri S&T Information Technology    (573) 612-1412
System Administrator - Architect



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list