[asterisk-bugs] [JIRA] (ASTERISK-29502) res_pjsip_config_wizard: doesn't take into account setting "identify/match"

Stanislav Abramenkov (JIRA) noreply at issues.asterisk.org
Thu Jul 1 02:51:33 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255506#comment-255506 ] 

Stanislav Abramenkov commented on ASTERISK-29502:
-------------------------------------------------

Yes before creating this Jira I tried setting remote_hosts. 

But if I change SIP trunk configuration to include remote_hosts

from:

[trunk_name](trunk)
accepts_auth = yes                                      ; Accept incoming authentication from remote hosts. At least inbound_auth/username is required.
accepts_registrations = yes                             ; Accept inbound registration from remote hosts. An AOR with dynamic contacts will be created.
sends_auth = no                                         ; Send outbound authentication to remote hosts. At least outbound_auth/username is required.
sends_registrations = no                                ; Send outbound registrations to remote hosts.
inbound_auth/username = trunk_name
inbound_auth/password = strong_password
endpoint/context = some_context
endpoint/allow = alaw
identify/match = dns_name

To:

[trunk_name](trunk)
accepts_auth = yes                                      ; Accept incoming authentication from remote hosts. At least inbound_auth/username is required.
;accepts_registrations = yes                             ; Accept inbound registration from remote hosts. An AOR with dynamic contacts will be created.
sends_auth = no                                         ; Send outbound authentication to remote hosts. At least outbound_auth/username is required.
sends_registrations = no                                ; Send outbound registrations to remote hosts.
remote_hosts = trunk_name at dns_name:5060
inbound_auth/username = trunk_name
inbound_auth/password = strong_password
endpoint/context = some_context
endpoint/allow = alaw
identify/match = dns_name

The output is

CLI> pjsip show endpoint trunk_name


 Endpoint:  trunk_name                                           Not in use    0 of inf
     InAuth:  trunk_name-iauth/trunk_name
        Aor:  trunk_name                                         1
      Contact:  trunk_name/sip:trunk_name at ip_address;tra ec94daaaaa Avail        33.817
      Contact:  trunk_name/sip:trunk_name at dns_name 4ac41a7bab Avail        34.274
   Identify:  trunk_name-identify/trunk_name
        Match: ip_address/32


Why is there two separate Contacts in output now?
Because in the configuration I have defined
aor/max_contacts = 1                    ; Maximum number of contacts that can bind to an AoR (default: "0")
aor/remove_existing = yes               ; Determines whether new contacts replace existing ones. (default: "no")

Im not trying to do achieve anything crazy. 
Standart SIP trunk, where B side sends (to A side) REGISTER package, and package containt auth data. 
I have a working configuration of this kind of SIP trunk in pjsip.conf (works both type of calls: inbound and outbound),
but Im just unable to recreate the same setup using PJSIP wizard.
Tried different combinations of settings and just can't get the same output like I have without Wizard.

> res_pjsip_config_wizard: doesn't take into account setting "identify/match"
> ---------------------------------------------------------------------------
>
>                 Key: ASTERISK-29502
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29502
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_config_wizard
>    Affects Versions: 16.19.0
>            Reporter: Stanislav Abramenkov
>            Assignee: Stanislav Abramenkov
>         Attachments: full2.txt, full.txt, pjsip.conf, pjsip_wizard.conf
>
>
> Hello, 
> I have problem with SIP Trunk configuration using PJSIP Wizard.
> It seems that module "res_pjsip_config_wizard.so" doesn't respect (or can't read) setting "identify/match" in Wizard configuration file.
> According to documentation:
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Configuration_res_pjsip_config_wizard
> identify/* 	 Variables to be passed directly to the identify.
> Output when I try to configure Trunk using PJSIP Wizard (File pjsip_wizard.conf in attachment)
> CLI> pjsip show endpoint trunk_name
>  Endpoint:  trunk_name                                           Not in use    0 of inf
>      InAuth:  trunk_name-iauth/trunk_name
>         Aor:  trunk_name                                         1
>       Contact:  trunk_name/sip:trunk_name at XXX.XXX.XXX.XXX;tra 7d0851b18e Avail        35.242
> Output when I use PJSIP without Wizard (File pjsip.conf in attachment)
> CLI> pjsip show endpoint trunk_name
>  Endpoint:  trunk_name                                           Not in use    0 of inf
>      InAuth:  trunk_name/trunk_name
>         Aor:  trunk_name                                         1
>       Contact:  trunk_name/sip:trunk_name at XXX.XXX.XXX.XXX;tra 7d0851b18e Avail        35.212
>    Identify:  trunk_name/trunk_name
>         Match: XXX.XXX.XXX.XXX/32



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



More information about the asterisk-bugs mailing list