Problem with outgoing calls - Header Privacy

Hi,

Asterisk 18.14.0, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.

I have a native asterisk PBX, in which I have about 35 grandstream terminals, all working except 1 in particular, which does not allow calls to any other internal or external extension:

Extension 300:

In the traces I see the following:

   Request-Line: INVITE sip:809XXXXXX@10.142.0.7 SIP/2.0
    Message Header
        Via: SIP/2.0/UDP 172.16.30.252:5060;branch=z9hG4bK262776406;rport
        From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=262711469
            SIP from display info: "Anonymous"
            SIP from address: sip:anonymous@anonymous.invalid
            SIP from tag: 262711469
        To: <sip:809XXXXXX@10.142.0.7>
        Call-ID: 814741441-5060-19@BHC.BG.DA.CFC
        [Generated Call-ID: 814741441-5060-19@BHC.BG.DA.CFC]
        CSeq: 180 INVITE
        Contact: "Anonymous" <sip:300@172.16.30.252:5060>
        X-Grandstream-PBX: true
        Max-Forwards: 70
        User-Agent: Grandstream GXP2170 1.0.11.64
        Privacy: id
        P-Preferred-Identity: <sip:300@10.142.0.7>
        P-Access-Network-Info: IEEE-EUI-48;eui-48-addr=08-55-31-XX:XX:XX
        P-Emergency-Info: IEEE-EUI-48;eui-48-addr=C0-74-AD-XX:XX:XX
        Supported: replaces, path, timer
        Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
        Content-Type: application/sdp
        Accept: application/sdp, application/dtmf-relay
        Content-Length:   434
    Message Body

I see relevant, that the field Privacy = id is marked but I am not able to see the reason why it comes like this.

The configuration of the 2 GXP2170 terminals (ext, 200 for example) is the same, same version…

In asterisk I have tried send_pai, sen_rpid, from_user, but nothing solves it.

Setting:

  • PJSIP:
ParameterName                      : ParameterValue
 ===================================================================================================
 100rel                             : yes
 accept_multiple_sdp_answers        : false
 accountcode                        :
 acl                                :
 aggregate_mwi                      : true
 allow                              : (ulaw|alaw|g722|vp8|h264)
 allow_overlap                      : true
 allow_subscribe                    : true
 allow_transfer                     : true
 allow_unauthenticated_options      : false
 aors                               : 300
 asymmetric_rtp_codec               : false
 auth                               : 300-auth
 bind_rtp_to_media_address          : false
 bundle                             : false
 call_group                         :
 callerid                           : "FRONTD-SDQ" <300FRONTDSQD>
 callerid_privacy                   : allowed_not_screened
 callerid_tag                       :
 codec_prefs_incoming_answer        : prefer:pending, operation:intersect, keep:all, transcode:allow
 codec_prefs_incoming_offer         : prefer:pending, operation:intersect, keep:all, transcode:allow
 codec_prefs_outgoing_answer        : prefer:pending, operation:intersect, keep:all, transcode:allow
 codec_prefs_outgoing_offer         : prefer:pending, operation:union, keep:all, transcode:allow
 connected_line_method              : invite
 contact_acl                        :
 context                            : internas
 cos_audio                          : 0
 cos_video                          : 0
 device_state_busy_at               : 1
 direct_media                       : false
 direct_media_glare_mitigation      : none
 direct_media_method                : invite
 disable_direct_media_on_nat        : false
 dtls_auto_generate_cert            : No
 dtls_ca_file                       :
 dtls_ca_path                       :
 dtls_cert_file                     :
 dtls_cipher                        :
 dtls_fingerprint                   : SHA-256
 dtls_private_key                   :
 dtls_rekey                         : 0
 dtls_setup                         : active
 dtls_verify                        : No
 dtmf_mode                          : rfc4733
 fax_detect                         : false
 fax_detect_timeout                 : 0
 follow_early_media_fork            : true
 force_avp                          : false
 force_rport                        : true
 from_domain                        :
 from_user                          :
 g726_non_standard                  : false
 geoloc_incoming_call_profile       :
 geoloc_outgoing_call_profile       :
 ice_support                        : false
 identify_by                        : username,ip
 ignore_183_without_sdp             : false
 inband_progress                    : false
 incoming_call_offer_pref           : local
 incoming_mwi_mailbox               :
 language                           : es
 mailboxes                          : 300@buzones
 max_audio_streams                  : 1
 max_video_streams                  : 1
 media_address                      :
 media_encryption                   : no
 media_encryption_optimistic        : false
 media_use_received_transport       : false
 message_context                    :
 moh_passthrough                    : false
 moh_suggest                        : default
 mwi_from_user                      :
 mwi_subscribe_replaces_unsolicited : no
 named_call_group                   :
 named_pickup_group                 :
 notify_early_inuse_ringing         : false
 one_touch_recording                : false
 outbound_auth                      :
 outbound_proxy                     :
 outgoing_call_offer_pref           : remote_merge
 pickup_group                       :
 preferred_codec_only               : false
 record_off_feature                 : automixmon
 record_on_feature                  : automixmon
 refer_blind_progress               : true
 rewrite_contact                    : true
 rpid_immediate                     : false
 rtcp_mux                           : false
 rtp_engine                         : asterisk
 rtp_ipv6                           : false
 rtp_keepalive                      : 90
 rtp_symmetric                      : true
 rtp_timeout                        : 60
 rtp_timeout_hold                   : 60
 sdp_owner                          : -
 sdp_session                        : Asterisk
 send_connected_line                : yes
 send_diversion                     : true
 send_history_info                  : false
 send_pai                           : false
 send_rpid                          : false
 set_var                            :
 srtp_tag_32                        : false
 stir_shaken                        : off
 stir_shaken_profile                :
 sub_min_expiry                     : 0
 subscribe_context                  :
 suppress_q850_reason_headers       : false
 t38_bind_udptl_to_media_address    : false
 t38_udptl                          : false
 t38_udptl_ec                       : none
 t38_udptl_ipv6                     : false
 t38_udptl_maxdatagram              : 0
 t38_udptl_nat                      : false
 timers                             : yes
 timers_min_se                      : 90
 timers_sess_expires                : 1800
 tone_zone                          :
 tos_audio                          : 0
 tos_video                          : 0
 transport                          :
 trust_connected_line               : yes
 trust_id_inbound                   : false
 trust_id_outbound                  : true
 use_avpf                           : false
 use_ptime                          : false
 user_eq_phone                      : false
 voicemail_extension                :
 webrtc                             : no

Thanks!
Regards,

If you cannot turn off the privacy setting on the phone, you will need to match by IP (without registration), or match by header on the P-Preferred-Identity header.

I’m not sure how match by header interacts with dynamic addresses, as identify sections point to endpoints, whereas registrations work on AORs. You may be stuck with static addresses.

Actually, register uses To, not From, so may work normally.

Hi David,

Thanks for your reply, I’ll try some of what you tell me.

Regards,

Finally, the terminal, although it enabled the Send Anonymous=no parameter, ignored it.

Had to do a factory reset, thanks for the suggestions and help @david551.

All the best,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.