[asterisk-bugs] [JIRA] (ASTERISK-25229) Exchanging Device and Mailbox State Using PJSIP fails after restart of peer

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue Mar 29 15:10:56 CDT 2016


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

Richard Mudgett edited comment on ASTERISK-25229 at 3/29/16 3:10 PM:
---------------------------------------------------------------------

>Can you start tcpdump before restart A and stop after you get "Unable to create request with auth.No auth credentials for any realms in challenge."?

In the attached file (PJSIP_dump_1.txt). tcpdump was started on the B with the command: "tcpdump -nn -s 0 host A -w /home/vadim/PJSIP_dump_1"

>I need a whole config. You posted only part of config.

It's the whole config ...

>Do you use only one transport?

I have tried both options (one transport and two transports) with the same result ... (when I was executing tcmpdump PJSIP had two transports (ports: 5071 and 5072). endpoints had the port 5072


>Can you show
>pjsip show endpoint instance1
>on server B before and after restart serv A

before:

pjsip show endpoint instance1:
{noformat}
=========================================================================================

 Endpoint:  instance1                                            Unknown       0 of inf
  Transport:  transport-ep              udp      0      0  0.0.0.0:5072


ParameterName                 : ParameterValue
 ====================================================
 100rel                        : yes
 accountcode                   : 
 aggregate_mwi                 : true
 allow                         : (nothing)
 allow_subscribe               : true
 allow_transfer                : true
 aors                          : 
 auth                          : 
 call_group                    : 
 callerid                      : <unknown>
 callerid_privacy              : allowed_not_screened
 callerid_tag                  : 
 connected_line_method         : invite
 context                       : default
 cos_audio                     : 0
 cos_video                     : 0
 device_state_busy_at          : 0
 direct_media                  : true
 direct_media_glare_mitigation : none
 direct_media_method           : invite
 disable_direct_media_on_nat   : false
 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
 force_avp                     : false
 force_rport                   : true
 from_domain                   : 
 from_user                     : 
 g726_non_standard             : false
 ice_support                   : false
 identify_by                   : username
 inband_progress               : false
 language                      : 
 mailboxes                     : 
 media_address                 : 
 media_encryption              : no
 media_encryption_optimistic   : false
 media_use_received_transport  : false
 message_context               : 
 moh_suggest                   : default
 mwi_from_user                 : 
 named_call_group              : 
 named_pickup_group            : 
 one_touch_recording           : false
 outbound_auth                 : 
 outbound_proxy                : 
 pickup_group                  : 
 record_off_feature            : automixmon
 record_on_feature             : automixmon
 rewrite_contact               : false
 rpid_immediate                : false
 rtp_engine                    : asterisk
 rtp_ipv6                      : false
 rtp_keepalive                 : 0
 rtp_symmetric                 : false
 rtp_timeout                   : 0
 rtp_timeout_hold              : 0
 sdp_owner                     : -
 sdp_session                   : Asterisk
 send_diversion                : true
 send_pai                      : false
 send_rpid                     : false
 set_var                       : 
 srtp_tag_32                   : false
 sub_min_expiry                : 0
 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                     : transport-ep
 trust_id_inbound              : false
 trust_id_outbound             : false
 use_avpf                      : false
 use_ptime                     : false
 user_eq_phone                 : false
{noformat}

after:
{noformat}
[Mar 29 22:19:12] WARNING[7846]: res_pjsip_outbound_authenticator_digest.c:135 digest_create_request_with_auth_from_old: Unable to create request with auth.No auth credentials for any realms in challenge.
{noformat}

pjsip show endpoint instance1:
{noformat}
=========================================================================================

 Endpoint:  instance1                                            Unknown       0 of inf
  Transport:  transport-ep              udp      0      0  0.0.0.0:5072


 ParameterName                 : ParameterValue
 ====================================================
 100rel                        : yes
 accountcode                   : 
 aggregate_mwi                 : true
 allow                         : (nothing)
 allow_subscribe               : true
 allow_transfer                : true
 aors                          : 
 auth                          : 
 call_group                    : 
 callerid                      : <unknown>
 callerid_privacy              : allowed_not_screened
 callerid_tag                  : 
 connected_line_method         : invite
 context                       : default
 cos_audio                     : 0
 cos_video                     : 0
 device_state_busy_at          : 0
 direct_media                  : true
 direct_media_glare_mitigation : none
 direct_media_method           : invite
 disable_direct_media_on_nat   : false
 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
 force_avp                     : false
 force_rport                   : true
 from_domain                   : 
 from_user                     : 
 g726_non_standard             : false
 ice_support                   : false
 identify_by                   : username
 inband_progress               : false
 language                      : 
 mailboxes                     : 
 media_address                 : 
 media_encryption              : no
 media_encryption_optimistic   : false
 media_use_received_transport  : false
 message_context               : 
 moh_suggest                   : default
 mwi_from_user                 : 
 named_call_group              : 
 named_pickup_group            : 
 one_touch_recording           : false
 outbound_auth                 : 
 outbound_proxy                : 
 pickup_group                  : 
 record_off_feature            : automixmon
 record_on_feature             : automixmon
 rewrite_contact               : false
 rpid_immediate                : false
 rtp_engine                    : asterisk
 rtp_ipv6                      : false
 rtp_keepalive                 : 0
 rtp_symmetric                 : false
 rtp_timeout                   : 0
 rtp_timeout_hold              : 0
 sdp_owner                     : -
 sdp_session                   : Asterisk
 send_diversion                : true
 send_pai                      : false
 send_rpid                     : false
 set_var                       : 
 srtp_tag_32                   : false
 sub_min_expiry                : 0
 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                     : transport-ep
 trust_id_inbound              : false
 trust_id_outbound             : false
 use_avpf                      : false
 use_ptime                     : false
 user_eq_phone                 : false
{noformat}



was (Author: cron333):
>Can you start tcpdump before restart A and stop after you get "Unable to create request with auth.No auth credentials for any realms in challenge."?

In the attached file (PJSIP_dump_1.txt). tcpdump was started on the B with the command: "tcpdump -nn -s 0 host A -w /home/vadim/PJSIP_dump_1"

>I need a whole config. You posted only part of config.

It's the whole config ...

>Do you use only one transport?

I have tried both options (one transport and two transports) with the same result ... (when I was executing tcmpdump PJSIP had two transports (ports: 5071 and 5072). endpoints had the port 5072


>Can you show
>pjsip show endpoint instance1
>on server B before and after restart serv A

before:

pjsip show endpoint instance1:

 =========================================================================================

 Endpoint:  instance1                                            Unknown       0 of inf
  Transport:  transport-ep              udp      0      0  0.0.0.0:5072


ParameterName                 : ParameterValue
 ====================================================
 100rel                        : yes
 accountcode                   : 
 aggregate_mwi                 : true
 allow                         : (nothing)
 allow_subscribe               : true
 allow_transfer                : true
 aors                          : 
 auth                          : 
 call_group                    : 
 callerid                      : <unknown>
 callerid_privacy              : allowed_not_screened
 callerid_tag                  : 
 connected_line_method         : invite
 context                       : default
 cos_audio                     : 0
 cos_video                     : 0
 device_state_busy_at          : 0
 direct_media                  : true
 direct_media_glare_mitigation : none
 direct_media_method           : invite
 disable_direct_media_on_nat   : false
 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
 force_avp                     : false
 force_rport                   : true
 from_domain                   : 
 from_user                     : 
 g726_non_standard             : false
 ice_support                   : false
 identify_by                   : username
 inband_progress               : false
 language                      : 
 mailboxes                     : 
 media_address                 : 
 media_encryption              : no
 media_encryption_optimistic   : false
 media_use_received_transport  : false
 message_context               : 
 moh_suggest                   : default
 mwi_from_user                 : 
 named_call_group              : 
 named_pickup_group            : 
 one_touch_recording           : false
 outbound_auth                 : 
 outbound_proxy                : 
 pickup_group                  : 
 record_off_feature            : automixmon
 record_on_feature             : automixmon
 rewrite_contact               : false
 rpid_immediate                : false
 rtp_engine                    : asterisk
 rtp_ipv6                      : false
 rtp_keepalive                 : 0
 rtp_symmetric                 : false
 rtp_timeout                   : 0
 rtp_timeout_hold              : 0
 sdp_owner                     : -
 sdp_session                   : Asterisk
 send_diversion                : true
 send_pai                      : false
 send_rpid                     : false
 set_var                       : 
 srtp_tag_32                   : false
 sub_min_expiry                : 0
 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                     : transport-ep
 trust_id_inbound              : false
 trust_id_outbound             : false
 use_avpf                      : false
 use_ptime                     : false
 user_eq_phone                 : false





after:

[Mar 29 22:19:12] WARNING[7846]: res_pjsip_outbound_authenticator_digest.c:135 digest_create_request_with_auth_from_old: Unable to create request with auth.No auth credentials for any realms in challenge.


pjsip show endpoint instance1:


 =========================================================================================

 Endpoint:  instance1                                            Unknown       0 of inf
  Transport:  transport-ep              udp      0      0  0.0.0.0:5072


 ParameterName                 : ParameterValue
 ====================================================
 100rel                        : yes
 accountcode                   : 
 aggregate_mwi                 : true
 allow                         : (nothing)
 allow_subscribe               : true
 allow_transfer                : true
 aors                          : 
 auth                          : 
 call_group                    : 
 callerid                      : <unknown>
 callerid_privacy              : allowed_not_screened
 callerid_tag                  : 
 connected_line_method         : invite
 context                       : default
 cos_audio                     : 0
 cos_video                     : 0
 device_state_busy_at          : 0
 direct_media                  : true
 direct_media_glare_mitigation : none
 direct_media_method           : invite
 disable_direct_media_on_nat   : false
 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
 force_avp                     : false
 force_rport                   : true
 from_domain                   : 
 from_user                     : 
 g726_non_standard             : false
 ice_support                   : false
 identify_by                   : username
 inband_progress               : false
 language                      : 
 mailboxes                     : 
 media_address                 : 
 media_encryption              : no
 media_encryption_optimistic   : false
 media_use_received_transport  : false
 message_context               : 
 moh_suggest                   : default
 mwi_from_user                 : 
 named_call_group              : 
 named_pickup_group            : 
 one_touch_recording           : false
 outbound_auth                 : 
 outbound_proxy                : 
 pickup_group                  : 
 record_off_feature            : automixmon
 record_on_feature             : automixmon
 rewrite_contact               : false
 rpid_immediate                : false
 rtp_engine                    : asterisk
 rtp_ipv6                      : false
 rtp_keepalive                 : 0
 rtp_symmetric                 : false
 rtp_timeout                   : 0
 rtp_timeout_hold              : 0
 sdp_owner                     : -
 sdp_session                   : Asterisk
 send_diversion                : true
 send_pai                      : false
 send_rpid                     : false
 set_var                       : 
 srtp_tag_32                   : false
 sub_min_expiry                : 0
 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                     : transport-ep
 trust_id_inbound              : false
 trust_id_outbound             : false
 use_avpf                      : false
 use_ptime                     : false
 user_eq_phone                 : false




> Exchanging Device and Mailbox State Using PJSIP fails after restart of peer
> ---------------------------------------------------------------------------
>
>                 Key: ASTERISK-25229
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25229
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip, Resources/res_pjsip_publish_asterisk
>    Affects Versions: 13.4.0, 13.5.0
>         Environment: CentOS-7 x86_64
>            Reporter: Vadim
>            Assignee: Unassigned
>         Attachments: DebugPJSIP.txt, debug.txt, PJSIP_dump_1.txt, pjsip.log, pjsip_outbound_publish_412.patch, pjsip_outbound_publish_debug.patch, ServA-172.16.2.14.txt, ServA-172.16.2.14.txt, ServA.txt, ServB-172.16.2.15.txt, ServB-172.16.2.15.txt, ServB.txt, Снимок экрана 2015-07-16 в 0.17.47.png
>
>
> There are two servers: "A" and "B".
> When we restart "Asterisk" on "A" we will see in the console of "B":
> [Jul 3 14:17:13] WARNING[17452]: res_pjsip_outbound_authenticator_digest.c:135 digest_create_request_with_auth_from_old: Unable to create request with auth.No auth credentials for any realms in challenge.
> After this "B' can't share a device state to "A", but "A" to "B" can.
> If we restart "Asterisk" on the server "B", the server "A" will not be able to share a device state to "B", but "B" to "A" can.
> The configuration, that has been used: https://wiki.asterisk.org/wiki/display/AST/Exchanging+Device+and+Mailbox+State+Using+PJSIP?showComments=true



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



More information about the asterisk-bugs mailing list