hello
I am trying to configure my SIP trunk on PJSIP but getting all sorts of errors.
Its working somewhat fine on chan_sip… atleast outgoing calls…incoming calls are hit and miss.
Any help??
outgoing peer details:
username=+917647866609
secret=password
qualify=yes
insecure=very
host=cg.voip.ims.bsnl.in
outboundproxy=pun.sbc.ims.bsnl.in:80
port=80&5060
fromuser=+917647866609
fromdomain=cg.voip.ims.bsnl.in
dtmfmode=inband
dtmf=inband
canreinvite=yes
authname=+917647866609
auth=+917647866609
type=peer
nat=yes
disallow=all
allow=ulaw&alaw
registertimeout=3600
asterisk logs with SIP debug on
– Reloading module ‘res_pjsip.so’ (Basic SIP resource)
[2023-02-04 09:31:08] ERROR[30394]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
[2023-02-04 09:31:08] ERROR[30394]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
[2023-02-04 09:31:08] WARNING[30394]: res_pjsip/config_transport.c:745 transport_apply: Transport ‘0.0.0.0-udp’ is not fully reloadable, not reloading: protocol, bind, TLS, TCP, ToS, or CoS options.
[2023-02-04 09:31:08] ERROR[30394]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
[2023-02-04 09:31:08] ERROR[30394]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
[2023-02-04 09:31:08] NOTICE[30394]: sorcery.c:1348 sorcery_object_load: Type ‘system’ is not reloadable, maintaining previous values
[2023-02-04 09:31:08] ERROR[6799]: res_pjsip_outbound_registration.c:1655 sip_outbound_registration_regc_alloc: Invalid outbound proxy URI ‘pun.sbc.ims.bsnl.in’ specified on outbound registration ‘+917647866609’
[2023-02-04 09:31:08] ERROR[30394]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type ‘registration’ with id ‘+917647866609’ from configuration file ‘pjsip.conf’
[2023-02-04 09:31:08] ERROR[30394]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
== Contact +917647866609/sip:[email protected]:80 has been deleted
– Reloading module ‘res_pjsip_authenticator_digest.so’ (PJSIP authentication resource)
– Reloading module ‘res_resolver_unbound.so’ (Unbound DNS Resolver Support)
[2023-02-04 09:31:08] ERROR[24665]: config_options.c:710 aco_process_config: Unable to load config file ‘resolver_unbound.conf’
– Reloading module ‘res_pjsip_endpoint_identifier_ip.so’ (PJSIP IP endpoint identifier)
[2023-02-04 09:31:08] ERROR[24665]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
– Reloading module ‘res_stir_shaken.so’ (STIR/SHAKEN Module for Asterisk)
[2023-02-04 09:31:08] ERROR[24665]: res_sorcery_config.c:328 sorcery_config_internal_load: Unable to load config file ‘stir_shaken.conf’
[2023-02-04 09:31:08] ERROR[24665]: res_sorcery_config.c:328 sorcery_config_internal_load: Unable to load config file ‘stir_shaken.conf’
[2023-02-04 09:31:08] ERROR[24665]: res_sorcery_config.c:328 sorcery_config_internal_load: Unable to load config file ‘stir_shaken.conf’
[2023-02-04 09:31:08] ERROR[24665]: res_sorcery_config.c:328 sorcery_config_internal_load: Unable to load config file ‘stir_shaken.conf’
– Reloading module ‘res_musiconhold.so’ (Music On Hold Resource)
– Reloading module ‘res_aeap.so’ (Asterisk External Application Protocol Module for Asterisk)
[2023-02-04 09:31:08] ERROR[24665]: res_sorcery_config.c:328 sorcery_config_internal_load: Unable to load config file ‘aeap.conf’
– Reloading module ‘res_crypto.so’ (Cryptographic Digital Signatures)
– Reloading module ‘res_rtp_asterisk.so’ (Asterisk RTP Stack)
== RTP Allocating from port range 10000 → 20000
– Reloading module ‘res_smdi.so’ (Simplified Message Desk Interface (SMDI) Resource)
– Reloading module ‘res_pjsip_outbound_publish.so’ (PJSIP Outbound Publish Support)
– Reloading module ‘res_pjsip_mwi.so’ (PJSIP MWI resource)
– Reloading module ‘res_pjsip_publish_asterisk.so’ (PJSIP Asterisk Event PUBLISH Support)
– Reloading module ‘chan_iax2.so’ (Inter Asterisk eXchange (Ver 2))
[2023-02-04 09:31:08] WARNING[24665]: iax2/firmware.c:235 iax_firmware_reload: Error opening firmware directory ‘/var/lib/asterisk/firmware/iax’: No such file or directory
[2023-02-04 09:31:08] NOTICE[24665]: iax2/provision.c:557 iax_provision_reload: No IAX provisioning configuration found, IAX provisioning disabled.
– Reloading module ‘chan_sip.so’ (Session Initiation Protocol (SIP))
– Reloading module ‘chan_dahdi.so’ (DAHDI Telephony w/PRI & SS7 & MFC/R2)
– Reloading module ‘res_adsi.so’ (ADSI Resource)
– Reloading module ‘res_fax.so’ (Generic FAX Applications)
– Reloading module ‘res_ari.so’ (Asterisk RESTful Interface)
– Reloading module ‘res_pjsip_notify.so’ (CLI/AMI PJSIP NOTIFY Support)
– Reloading module ‘res_pjsip_outbound_registration.so’ (PJSIP Outbound Registration Support)
Reloading SIP
== Using SIP TOS bits 96
== Using SIP CoS mark 4
[2023-02-04 09:31:08] ERROR[6799]: res_pjsip_outbound_registration.c:1655 sip_outbound_registration_regc_alloc: Invalid outbound proxy URI ‘pun.sbc.ims.bsnl.in’ specified on outbound registration ‘+917647866609’
[2023-02-04 09:31:08] ERROR[24665]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type ‘registration’ with id ‘+917647866609’ from configuration file ‘pjsip.conf’
[2023-02-04 09:31:08] ERROR[24665]: res_pjsip_config_wizard.c:1078 object_type_loaded_observer: Unable to load config file ‘pjsip_wizard.conf’
– Reloading module ‘app_confbridge.so’ (Conference Bridge Application)
[2023-02-04 09:31:08] NOTICE[24665]: confbridge/conf_config_parser.c:2382 verify_default_profiles: Adding default_menu menu to app_confbridge
– Reloading module ‘res_parking.so’ (Call Parking Resource)
– Remove parkedcalls/71/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/72/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/73/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/74/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/75/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/76/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/77/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/78/1, registrar=res_parking/default; con=((nil)); con->root=(nil)
– Remove parkedcalls/70/1, registrar=res_parking; con=((nil)); con->root=(nil)
– Reloading module ‘app_meetme.so’ (MeetMe conference bridge)
– Reloading module ‘cdr_manager.so’ (Asterisk Manager Interface CDR Backend)
– Reloading module ‘cel_manager.so’ (Asterisk Manager Interface CEL Backend)
– Reloading module ‘cel_odbc.so’ (ODBC CEL backend)
– Found CEL table [email protected]
– Reloading module ‘app_amd.so’ (Answering Machine Detection Application)
– AMD defaults: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256] maximumWordLength [5000]
– Reloading module ‘app_playback.so’ (Sound File Playback Application)
– Reloading module ‘app_flite.so’ (Flite TTS Interface)
[2023-02-04 09:31:08] WARNING[24665]: app_flite.c:76 read_config: Flite: Unable to read config file flite.conf. Using default settings
– Reloading module ‘codec_dahdi.so’ (Generic DAHDI Transcoder Codec Translator)
– Reloading module ‘app_voicemail.so’ (Comedian Mail (Voicemail System))
[2023-02-04 09:31:08] WARNING[24665]: app_voicemail.c:13895 actual_load_config: maxsilence should be less than minsecs or you may get empty messages
– Reloading module ‘codec_ast18_g729.so’ (Digium G.729 Annex A Codec (optimized for x86_64)
– Reloading module ‘app_queue.so’ (True Call Queueing)
[2023-02-04 09:31:09] NOTICE[24665]: app_queue.c:9447 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
– Remote UNIX connection disconnected
[2023-02-04 09:31:29] ERROR[6799]: res_pjsip.c:1270 create_out_of_dialog_request: Unable to apply outbound proxy on request OPTIONS to endpoint +917647866609 as outbound proxy URI ‘pun.sbc.ims.bsnl.in’ is not valid
[2023-02-04 09:31:29] ERROR[6799]: res_pjsip/pjsip_options.c:877 sip_options_qualify_contact: Unable to create request to qualify contact sip:[email protected]:5060 on AOR +917647866609