Nobodys können extern telefonieren

Bug #503571 reported by Marco
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gemeinschaft (by Amooma)
Status tracked in Trunk
2.2
Invalid
Undecided
Unassigned
2.3
Won't Fix
High
Unassigned
Trunk
Fix Released
High
Peter Kozak
Gemeinschaft (ph.)
Status tracked in Trunk
2.2
Invalid
Undecided
Unassigned
2.3
Triaged
High
Unassigned
Trunk
Triaged
High
AMOOMA

Bug Description

Es ist möglich mit einem Nichtangemeldeten Telefon extern zu telefonieren.

Soweit ich gesehen habe passiert follgendes:

Context:

from-internal-nobody

geht in to-internal-users

von dort aus über die Abfrage

 _X. => { ...
 if ("${dial_to_node}" = "") {
                        Verbose(1,### -GS- Extension ${EXTEN} is at node: SELF);
                        jump ${EXTEN}@to-internal-users-self;
                }
...
}

in den Context to-internal-users-self

und in diesem Context wir die Nummer als unbekannt behandelt und auf das Gateway geroutet.

Hier noch der Auszug von:
show dialplan 01341341234@from-internal-nobody

[ Included context 'to-internal-users' created by 'pbx_ael' ]
  '_X.' => 1. GotoIf($["${is_from_gateway}" = "1"]?2:3) [pbx_ael]
                    2. Verbose(1|### -GS- Incoming call from a gateway to ${EXTEN}) [pbx_ael]
                    3. NoOp(Finish if-to-internal-users-4157) [pbx_ael]
                    4. Macro(pass-connid) [pbx_ael]
                    5. Macro(check-valid-extension|${EXTEN}) [pbx_ael]
                    6. GotoIf($["${dial_to_node}" = ""]?7:10) [pbx_ael]
                    7. Verbose(1|### -GS- Extension ${EXTEN} is at node: SELF) [pbx_ael]
                    8. Goto(to-internal-users-self|${EXTEN}|1) [pbx_ael]
                    9. Goto(23) [pbx_ael]
                    10. GotoIf($["${exttype}" != "foreign"]?11:14) [pbx_ael]
                    11. Macro(dial-node|${EXTEN}@${dial_to_node}) [pbx_ael]
                    12. Macro(hangup-proper-status) [pbx_ael]
                    13. Goto(22) [pbx_ael]
                    14. GotoIf($["${is_sub_system}" = "yes"]?15:18) [pbx_ael]
                    15. Verbose(1|### -GS- We are a sub-system. Dial to the gateway for foreign ext. ${EXTEN}.) [pbx_ael]
                    16. Macro(dial-gateway|${EXTEN}) [pbx_ael]
                    17. Goto(20) [pbx_ael]
                    18. Verbose(1|### -GS- We are not a sub-system. Call foreign ext. ${EXTEN} directly.) [pbx_ael]
                    19. Dial(SIP/${EXTEN}@${dial_to_node}|70) [pbx_ael]
                    20. NoOp(Finish if-if-if-to-internal-users-4158-4159-4160) [pbx_ael]
                    21. Hangup() [pbx_ael]
                    22. NoOp(Finish if-if-to-internal-users-4158-4159) [pbx_ael]
                    23. NoOp(Finish if-to-internal-users-4158) [pbx_ael]

In Zeile 16 sieht man wie rausgewählt wird.

Revision history for this message
Marco (marco-chuchi) wrote :

Habe mal ein wenig die Revisionen angesehen denke das Problem ist dieser neu hinzugefügte teil im
to-internal-users-self Context

                to_unknown:
                        //if ("${is_sub_system}" = "yes") {
                        // Verbose(1,### We are a sub-system. Dial to the gateway for unknown extension: ${EXTEN});

// Start Bug ?? #503571
                              Verbose(1,### Dial to the gateway for unknown extension: ${EXTEN});
                              &dial-gateway(${EXTEN});
// End Bug ?? #503571

                        //} else {
                        // Verbose(1,### We are not a sub-system. Hang up.);
                        //}
                        // 1 = AST_CAUSE_UNALLOCATED => SIP 404 Not Found
                        Set(PRI_CAUSE=1);
                        Hangup(1);

Revision history for this message
Philipp Kempgen (philipp-kempgen) wrote :

Peter Kozak schrieb
( http://groups.google.de/group/gemeinschaft-users/msg/089638ac4b45d2c7 ):

> Man könnte vielleicht alle "richtigen" User einer Benutzergruppe
> zuweisen und nur für diese Gruppe dann in Routing&LCR die ausgehenden
> Einträge verfügbar machen. Dies hat den Vorteil, dass es das Problem
> sofort, mit "Bordmitteln" und ohne Änderungen am Code löst.

Revision history for this message
Philipp Kempgen (philipp-kempgen) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.