[asterisk-bugs] [JIRA] (ASTERISK-29524) The patterns "*" and "#" do not work when calling via a PJSIP trunk

Max Arturo (JIRA) noreply at issues.asterisk.org
Mon Jul 19 12:49:34 CDT 2021


Max Arturo created ASTERISK-29524:
-------------------------------------

             Summary: The patterns "*" and "#" do not work when calling via a PJSIP trunk
                 Key: ASTERISK-29524
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29524
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: .Release/Targets
    Affects Versions: 16.2.1
         Environment: deb10u2
            Reporter: Max Arturo


Two identical servers:
1) ServerA, extensions 1XX, all SIP interfaces.
2) ServerB extensions 2XX, all PJSIP interfaces.
3) Servers A and B were connected via IAX2 (and then there was no problem described below). The server connection was replaced with a PJSIP trunk.
4) Fragments of extensions.conf from both servers:
Fragment of extensions.conf ServerA:
[call-out]
exten => 777 / 213,1, GoTo (kommutator, s, 1)
exten => _ * 80XXX / 213,1, Answer ()
same => n, MusicOnHold (native-random)
same => n, HangUp ()

Fragment of extensions.conf ServerB:
[call-out]
exten => _[1-9] XX,1,Dial(PJSIP/${EXTEN}@my-trunk)
exten => _*80XXX,1,Dial(PJSIP/${EXTEN}@ my-trunk)

5) I make a call from ServerB to ServerA from interface 213:
5.1) I call 777 - the call is successful;
5.2) I call *80777. In the ServerB console, I see that the call is successful. In the ServerA console I see: NOTICE [10838]: res_pjsip_session.c: 2993 new_invite: Call from '/ trunk-name /' (UDP: <IP>: <PORT>) to extension '*80777' rejected because extension not found in context 'call -out '.

6) if I replace the extensions on ServerA:
6.1) exten => _*80XXX,1, ... - the call from ServerB is successful;
6.2) exten => _80XXX/213,1,... - the call from ServerB is successful;
6.3) the problem occurs only if the pattern begins with "*" or "#" and contains an indication of the subscriber, as in the example: "/213".



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list