[asterisk-gui] Context names in the new GUI

David Kerr David at Kerr.net
Tue Sep 16 16:01:51 CDT 2008


I have opened bug 0013497 at the Digium bug tracker web site to track this
problem.

Thank you.

On Tue, Sep 16, 2008 at 9:09 AM, David Kerr <David at kerr.net> wrote:

> For some reason I "replied" only to Pari and not the list. Ooops.
>
>
> ---------- Forwarded message ----------
> From: David Kerr <David at kerr.net>
> Date: Tue, Sep 16, 2008 at 9:08 AM
> Subject: Re: [asterisk-gui] Context names in the new GUI
> To: Pari Nannapaneni <pari at digium.com>
>
>
> Pari,
>   Thanks for the quick reply... A classic case of fixing one bug creating
> another!
>
> In my opinion the original bug report isn't even a bug, it is the way that
> Asterisk is supposed to work. If you need the username as the context name
> for incoming calls, then set the trunkname in the GUI to be the same as the
> username.  I don't believe that the trunkname was used for anything other
> than the context naming anyway (in the extensions.conf file the "trunkname"
> was set to "Custom - whatever-the-user-entered" anyway so not exactly as
> entered, the only place it appears as entered is for Contexts. So the right
> way to address the problem in AA50-2113 is to tell the user to enter exactly
> the same thing (their username) into both the trunkname and username fields
> in the GUI.
>
> As implemented today, it is broken.... multiple trunks from different
> service providers using the same username cannot be configured.  If we must
> be able to use username as context names, then it should be an option, not
> hardcoded. But why make it an option? why not just add a field in the GUI
> for "Context name".... humm, but then again, how would that be any different
> from "Trunk name" ?
>
> I can edit the source as you suggest, which will get me going again, but I
> recommend you consider how to implement a permanent fix.
>
> Thanks again for the super fast reply.
> David.
>
>
>
> On Mon, Sep 15, 2008 at 11:39 PM, Pari Nannapaneni <pari at digium.com>wrote:
>
>>
>> > Can you explain why this change was made?
>>
>> Hi David,
>>
>> The change in behavior was because of an issue on our internal bug
>> tracker.
>>
>>    AA50-2113 - Creation of Trunks uses name that won't match on inbound
>> calls
>>
>>    Description : The convention used to create a new trunk entry in
>> users.conf, i.e. trunk_1, trunk_2, trunk_3, etc.,
>>                  works okay for outbound calls placed via that trunk.
>> However, inbound calls fail. When a call is received,
>>                  Asterisk tries to match the inbound user as "trunk_1"
>> instead of the real username, i.e. bobjones.
>>                  Please modify the creation of new trunks and the
>> expression of those trunks in users.conf and extensions.conf
>>                  so that they are what the user inputs into the "username"
>> field when adding or editing a voip trunk.
>>                  So, if I input mdavenport_soft as my username, then the
>> entry in users.conf would be [mdavenport_soft] instead of trunk_1,
>>                  and everything in the dialplan that would have said
>> trunk_1 should say "mdavenport_soft" instead.
>>
>> You can  easily switch to the old style by uncommenting a couple of lines
>> in pbx.js,
>> look for functions  addIAXTrunk() and addSIPTrunk() and change
>>
>> --
>>  //var trunk = astgui_managetrunks.misc.nextAvailableTrunk_x();
>>   var trunk = tr.username ;
>>
>> -- TO --
>>
>>   var trunk = astgui_managetrunks.misc.nextAvailableTrunk_x();
>>   // var trunk = tr.username ;
>> --
>>
>> May be one day we migh have an option in the gui to switch between these
>> modes.
>>
>> thanks
>> -Pari
>>
>>
>>
>> ----- Original Message -----
>> From: "David Kerr" <David at Kerr.net>
>> To: asterisk-gui at lists.digium.com
>> Sent: Monday, September 15, 2008 9:29:39 PM GMT -06:00 US/Canada Central
>> Subject: [asterisk-gui] Context names in the new GUI
>>
>>
>>
>> I just started using the new version of the GUI and am trying to migrate
>> settings from a box that had the old GUI. I have found that the new GUI uses
>> the username of a VOIP trunk as the basis for the context names in
>> users.conf and extensions.conf (any maybe elsewhere too?). The old GUI used
>> the name of the service provider as the basis (or whatever you entered as
>> the name).
>>
>> This breaks me... I have multiple VOIP service providers with the same
>> username, which obvously won't work. In one case ( vitelity.net ) they
>> require two contexts be setup in asterisk with specific naming, one for
>> vitel-inbound, one for vitel-outbound... both with the same username, but
>> with different host addresses. In the new GUI I cannot set this up. If I
>> manually change the context names by editing users.conf and extensions.conf,
>> then I can no longer edit the trunk in the GUI.
>>
>> Can you explain why this change was made?
>>
>> Is there anyway I can change it back to using the trunk name as the basis
>> for Context naming?
>>
>> Thanks
>> David
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-gui mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-gui
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-gui/attachments/20080916/e036e2aa/attachment.htm 


More information about the asterisk-gui mailing list