Hi, I'm trying to edit an AMP-derived dialplan: the macro "dial" uses the AGI script "dialparties.agi" to find the extension to call. I'd like to drop this script: does anyone can explain me what is its main job? Thanks -- Domenico Viggiani
It's not that simple. dialparties is fundamental to the whole dialplan in AMP/freepbx and accomplishes a lot of the features such as hunt groups, DND, etc. And extensions are not necessarily what you think they are either. If you don't like it, you'd probably be better off writing your own dialplan or alternatively, rewrite it's entire functionality outside of an agi and then submit the mod to freepbx to streamline freepbx more. p From: "Mimmus" <dviggiani@tiscali.it> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Date: Wed, 24 May 2006 18:00:36 +0200 Subject: [Asterisk-Users] macro-dial Hi, I'm trying to edit an AMP-derived dialplan: the macro "dial" uses the AGI script "dialparties.agi" to find the extension to call. I'd like to drop this script: does anyone can explain me what is its main job? Thanks -- Domenico Viggiani --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060524/82647dcc/attachment.htm
Mimmus wrote:> I'd like to drop this script: does anyone can explain me what is its main > job?Dialparties.agi is used to test all of the submitted destinations for Call-Waiting and Call-Forward settings before passing the final extension(s) that can be called back to Asterisk. -- National Manager - Special Projects < Sydney / Melbourne / Canberra / Hobart / London /> 2/340 Gore Street T: +61 (0) 3 9235 5400 Fitzroy, VIC F: +61 (0) 3 9235 5444 3065 W: http://www.squiz.net/ .....>> Open Source - Own it - Squiz.net ...../>
It also provides the 'hunt' functionality and implements the different ring strategies. From: Avi Miller <avi.miller@squiz.net> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Date: Thu, 25 May 2006 07:29:46 +1000 Subject: Re: [Asterisk-Users] macro-dial Mimmus wrote:> I'd like to drop this script: does anyone can explain me what is its main > job?Dialparties.agi is used to test all of the submitted destinations for Call-Waiting and Call-Forward settings before passing the final extension(s) that can be called back to Asterisk. -- National Manager - Special Projects < Sydney / Melbourne / Canberra / Hobart / London /> 2/340 Gore Street T: +61 (0) 3 9235 5400 Fitzroy, VIC F: +61 (0) 3 9235 5444 3065 W: http://www.squiz.net/ --------------------------------- How low will we go? Check out Yahoo! Messenger?s low PC-to-Phone call rates. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060524/5d204e55/attachment.htm
Domenico, as I mentioned: "...and extensions are not necessarily what you think they are either." AMP/Freepbx 'virtualizes' extensions. The basic concept is that there are users and then there are devices. A user can have multiple devices. The default shipping mode provides the 'extensions' tab which ends up creating a user with the sam extension number as the device that you assign them. However, if you flip to 'deviceanduser' mode (see /etc/amportal.conf - AMPEXTENSIONS=) you will see that you now can control users separate from devices and you can assign multiple devices to a single user or you can make a device adhoc allowing any user to login to the device and it becomes their phone until they logout. So as I mentioned, it isn't that simple, it is the reason for all the various callerid macros, dialparties.agi, etc. that is there. If you want more detail, in addition to digging in as you have, you may want to move over to the freepbx.org site and/or the IRC. If you want to get rid of dialparties, maybe you can get the entire functionality into a dialplan format (and probably improve performance) and then submit it back. But as you've probably seen, dialparties itself is inegrally interwoven with macro-dial and the various other interdependencies throughout the dial plan, astdb, etc. p From: "Mimmus" <dviggiani@tiscali.it> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Date: Thu, 25 May 2006 10:21:46 +0200 Subject: RE: [Asterisk-Users] macro-dial Hi, I digged in dialparties.agi and found that apart from DND, hunt-group, status, etc its main function is looking up real device(s) for any user from AstDB. In fact, AMP/FreePBX keep a long list of entries in AstDB for any device/user. I'm interested in knowing how people on this list manage link between an extension and the real device (SIP, Zap, etc). Thanks ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Philippe Lindheimer Sent: Wednesday, May 24, 2006 7:42 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] macro-dial It's not that simple. dialparties is fundamental to the whole dialplan in AMP/freepbx and accomplishes a lot of the features such as hunt groups, DND, etc. And extensions are not necessarily what you think they are either. If you don't like it, you'd probably be better off writing your own dialplan or alternatively, rewrite it's entire functionality outside of an agi and then submit the mod to freepbx to streamline freepbx more. p From: "Mimmus" To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" Date: Wed, 24 May 2006 18:00:36 +0200 Subject: [Asterisk-Users] macro-dial Hi, I'm trying to edit an AMP-derived dialplan: the macro "dial" uses the AGI script "dialparties.agi" to find the extension to call. I'd like to drop this script: does anyone can explain me what is its main job? Thanks -- Domenico Viggiani --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060525/514dabae/attachment.htm
I understand, seems like it might be easier to write a new dialplan from scratch though, vs. running into all sorts of strange issues? On the other hand, doing it your way will make you understand what freepbx is doing, which migh provide for your own ideas on how to do or not to do things in your own dialplan. p From: "Mimmus" <dviggiani@tiscali.it> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com> Date: Thu, 25 May 2006 18:25:15 +0200 Subject: RE: [Asterisk-Users] macro-dial Philippe, I understand what you say... I'd like to free myself from AMP/Freepbx because I feel better if I have only 'vi-made' configuration files I can tweak. I'd like also to have macro-dial entirely in the dialplan without AGI script but without losing call-forwarding, do-not-disturb, etc. functionalities. At this moment, I cleaned up a lot of things but still have dialparties.agi. I hope to thrash it in some future, when I will be able to rewrite all logic in the diaplan. Thanks Domenico --------------------------------- Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060525/b559b937/attachment.htm