Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Main Server (pjsip.conf)
- [hh-astrelay]
- type = auth
- auth_type = userpass
- username = hh-astrelay
- password = testpass
- [hh-astrelay]
- type = endpoint
- auth = hh-astrelay
- aors = hh-astrelay
- transport = transport_udp_nat
- context = hjuhsd_pbxin
- disallow = all
- allow = ulaw,alaw
- [hh-astrelay]
- type = aor
- max_contacts = 1
- ###### Remote Server (sip.conf)
- [general]
- context=unauthenticated
- bindport=5060
- allowguest=no ; Allow or reject guest calls (default is yes)
- allowoverlap=no ; Disable overlap dialing support. (Default is yes)
- transport=udp
- udpbindaddr=0.0.0.0
- tcpenable=no
- srvlookup=yes
- language=en
- trustrpid=yes
- sendrpid=yes
- disallow=all
- ;allow=g722
- allow=ulaw
- allow=alaw
- callcounter=yes
- localnet=172.16.0.0/12
- register => hh-astrelay:testpass@172.20.62.36/net-voip1
- [net-voip1]
- type=friend
- secret=testpass
- host=172.20.62.36
- context=net-voip1
- disallow=all
- allow=ulaw
- ## remote server shows it is registered
- hh-astrelay*CLI> sip show peers
- Name/username Host Dyn Forcerport Comedia ACL Port Status Description
- net-voip1 172.20.62.36 Auto (No) No 5060 Unmonitored
- 1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
- ## main server shows remote registration
- net-voip1*CLI> pjsip show endpoint hh-astrelay
- Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
- I/OAuth: <AuthId/UserName...........................................................>
- Aor: <Aor............................................> <MaxContact>
- Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
- Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
- Identify: <Identify/Endpoint.........................................................>
- Match: <criteria.........................>
- Channel: <ChannelId......................................> <State.....> <Time.....>
- Exten: <DialedExten...........> CLCID: <ConnectedLineCID.......>
- ==========================================================================================
- Endpoint: hh-astrelay Not in use 0 of inf
- InAuth: hh-astrelay/hh-astrelay
- Aor: hh-astrelay 1
- Contact: hh-astrelay/sip:net-voip1@172.22.4.250:506 622d57bb9e Unknown nan
- Transport: transport_udp_nat udp 0 0 0.0.0.0:5060
- ParameterName : ParameterValue
- =========================================================
- 100rel : yes
- accountcode :
- acl :
- aggregate_mwi : true
- allow : (ulaw|alaw)
- allow_overlap : true
- allow_subscribe : true
- allow_transfer : true
- aors : hh-astrelay
- asymmetric_rtp_codec : false
- auth : hh-astrelay
- bind_rtp_to_media_address : false
- bundle : false
- call_group :
- callerid : <unknown>
- callerid_privacy : allowed_not_screened
- callerid_tag :
- connected_line_method : invite
- contact_acl :
- context : hjuhsd_pbxin
- 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
- fax_detect_timeout : 0
- force_avp : false
- force_rport : true
- from_domain :
- from_user :
- g726_non_standard : false
- ice_support : false
- identify_by : username
- inband_progress : false
- incoming_mwi_mailbox :
- language :
- mailboxes :
- 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 : false
- named_call_group :
- named_pickup_group :
- notify_early_inuse_ringing : false
- one_touch_recording : false
- outbound_auth :
- outbound_proxy :
- pickup_group :
- preferred_codec_only : false
- record_off_feature : automixmon
- record_on_feature : automixmon
- refer_blind_progress : true
- rewrite_contact : false
- rpid_immediate : false
- rtcp_mux : 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
- subscribe_context :
- 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_udp_nat
- trust_id_inbound : false
- trust_id_outbound : false
- use_avpf : false
- use_ptime : false
- user_eq_phone : false
- voicemail_extension :
- webrtc : no
- net-voip1*CLI> pjsip show aor hh-astrelay
- Aor: <Aor..............................................> <MaxContact>
- Contact: <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
- ==========================================================================================
- Aor: hh-astrelay 1
- Contact: hh-astrelay/sip:net-voip1@172.22.4.250:5060 622d57bb9e Unknown nan
- ParameterName : ParameterValue
- ======================================================
- authenticate_qualify : false
- contact : sip:net-voip1@172.22.4.250:5060
- default_expiration : 3600
- mailboxes :
- max_contacts : 1
- maximum_expiration : 7200
- minimum_expiration : 60
- outbound_proxy :
- qualify_frequency : 0
- qualify_timeout : 3.000000
- remove_existing : false
- support_path : false
- voicemail_extension :
- ### Dialing the remote from main server gives this error in console log
- -- Called PJSIP/22@hh-astrelay
- [Mar 1 22:31:15] WARNING[10551]: res_pjsip_outbound_authenticator_digest.c:178 digest_create_request_with_auth: Endpoint: 'hh-astrelay': Unable to create request with auth. No auth credentials for realm(s) 'asterisk' in challenge.
Add Comment
Please, Sign In to add comment