<div dir="ltr"><div dir="ltr">The database I'm using is MySQL v 5.6.46.2, data type I'm using for both parameters is int(11) the one created by the asterisk script; see table structure below.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div>Let me know if any other information is needed.<br></div><div dir="ltr"><br></div><div dir="ltr">CREATE TABLE `ps_endpoints` (<br> `id` varchar(40) NOT NULL,<br> `transport` varchar(40) DEFAULT NULL,<br> `aors` varchar(200) DEFAULT NULL,<br> `auth` varchar(40) DEFAULT NULL,<br> `context` varchar(40) DEFAULT NULL,<br> `disallow` varchar(200) DEFAULT NULL,<br> `allow` varchar(200) DEFAULT NULL,<br> `direct_media` enum('yes','no') DEFAULT NULL,<br> `connected_line_method` enum('invite','reinvite','update') DEFAULT NULL,<br> `direct_media_method` enum('invite','reinvite','update') DEFAULT NULL,<br> `direct_media_glare_mitigation` enum('none','outgoing','incoming') DEFAULT NULL,<br> `disable_direct_media_on_nat` enum('yes','no') DEFAULT NULL,<br> `dtmf_mode` enum('rfc4733','inband','info','auto','auto_info') DEFAULT NULL,<br> `external_media_address` varchar(40) DEFAULT NULL,<br> `force_rport` enum('yes','no') DEFAULT NULL,<br> `ice_support` enum('yes','no') DEFAULT NULL,<br> `identify_by` varchar(80) DEFAULT NULL,<br> `mailboxes` varchar(40) DEFAULT NULL,<br> `moh_suggest` varchar(40) DEFAULT NULL,<br> `outbound_auth` varchar(40) DEFAULT NULL,<br> `outbound_proxy` varchar(40) DEFAULT NULL,<br> `rewrite_contact` enum('yes','no') DEFAULT NULL,<br> `rtp_ipv6` enum('yes','no') DEFAULT NULL,<br> `rtp_symmetric` enum('yes','no') DEFAULT NULL,<br> `send_diversion` enum('yes','no') DEFAULT NULL,<br> `send_pai` enum('yes','no') DEFAULT NULL,<br> `send_rpid` enum('yes','no') DEFAULT NULL,<br> `timers_min_se` int(11) DEFAULT NULL,<br> `timers` enum('forced','no','required','yes') DEFAULT NULL,<br> `timers_sess_expires` int(11) DEFAULT NULL,<br> `callerid` varchar(40) DEFAULT NULL,<br> `callerid_privacy` enum('allowed_not_screened','allowed_passed_screened','allowed_failed_screened','allowed','prohib_not_screened','prohib_passed_screened','prohib_failed_screened','prohib','unavailable') DEFAULT NULL,<br> `callerid_tag` varchar(40) DEFAULT NULL,<br> `100rel` enum('no','required','yes') DEFAULT NULL,<br> `aggregate_mwi` enum('yes','no') DEFAULT NULL,<br> `trust_id_inbound` enum('yes','no') DEFAULT NULL,<br> `trust_id_outbound` enum('yes','no') DEFAULT NULL,<br> `use_ptime` enum('yes','no') DEFAULT NULL,<br> `use_avpf` enum('yes','no') DEFAULT NULL,<br> `media_encryption` enum('no','sdes','dtls') DEFAULT NULL,<br> `inband_progress` enum('yes','no') DEFAULT NULL,<br> `call_group` varchar(40) DEFAULT NULL,<br> `pickup_group` varchar(40) DEFAULT NULL,<br> `named_call_group` varchar(40) DEFAULT NULL,<br> `named_pickup_group` varchar(40) DEFAULT NULL,<br> `device_state_busy_at` int(11) DEFAULT NULL,<br> `fax_detect` enum('yes','no') DEFAULT NULL,<br> `t38_udptl` enum('yes','no') DEFAULT NULL,<br> `t38_udptl_ec` enum('none','fec','redundancy') DEFAULT NULL,<br> `t38_udptl_maxdatagram` int(11) DEFAULT NULL,<br> `t38_udptl_nat` enum('yes','no') DEFAULT NULL,<br> `t38_udptl_ipv6` enum('yes','no') DEFAULT NULL,<br> `tone_zone` varchar(40) DEFAULT NULL,<br> `language` varchar(40) DEFAULT NULL,<br> `one_touch_recording` enum('yes','no') DEFAULT NULL,<br> `record_on_feature` varchar(40) DEFAULT NULL,<br> `record_off_feature` varchar(40) DEFAULT NULL,<br> `rtp_engine` varchar(40) DEFAULT NULL,<br> `allow_transfer` enum('yes','no') DEFAULT NULL,<br> `allow_subscribe` enum('yes','no') DEFAULT NULL,<br> `sdp_owner` varchar(40) DEFAULT NULL,<br> `sdp_session` varchar(40) DEFAULT NULL,<br> `tos_audio` varchar(10) DEFAULT NULL,<br> `tos_video` varchar(10) DEFAULT NULL,<br> `sub_min_expiry` int(11) DEFAULT NULL,<br> `from_domain` varchar(40) DEFAULT NULL,<br> `from_user` varchar(40) DEFAULT NULL,<br> `mwi_from_user` varchar(40) DEFAULT NULL,<br> `dtls_verify` varchar(40) DEFAULT NULL,<br> `dtls_rekey` varchar(40) DEFAULT NULL,<br> `dtls_cert_file` varchar(200) DEFAULT NULL,<br> `dtls_private_key` varchar(200) DEFAULT NULL,<br> `dtls_cipher` varchar(200) DEFAULT NULL,<br> `dtls_ca_file` varchar(200) DEFAULT NULL,<br> `dtls_ca_path` varchar(200) DEFAULT NULL,<br> `dtls_setup` enum('active','passive','actpass') DEFAULT NULL,<br> `srtp_tag_32` enum('yes','no') DEFAULT NULL,<br> `media_address` varchar(40) DEFAULT NULL,<br> `redirect_method` enum('user','uri_core','uri_pjsip') DEFAULT NULL,<br> `set_var` text,<br> `cos_audio` int(11) DEFAULT NULL,<br> `cos_video` int(11) DEFAULT NULL,<br> `message_context` varchar(40) DEFAULT NULL,<br> `force_avp` enum('yes','no') DEFAULT NULL,<br> `media_use_received_transport` enum('yes','no') DEFAULT NULL,<br> `accountcode` varchar(80) DEFAULT NULL,<br> `user_eq_phone` enum('yes','no') DEFAULT NULL,<br> `moh_passthrough` enum('yes','no') DEFAULT NULL,<br> `media_encryption_optimistic` enum('yes','no') DEFAULT NULL,<br> `rpid_immediate` enum('yes','no') DEFAULT NULL,<br> `g726_non_standard` enum('yes','no') DEFAULT NULL,<br> `rtp_keepalive` int(11) DEFAULT NULL,<br> `rtp_timeout` int(11) DEFAULT NULL,<br> `rtp_timeout_hold` int(11) DEFAULT NULL,<br> `bind_rtp_to_media_address` enum('yes','no') DEFAULT NULL,<br> `voicemail_extension` varchar(40) DEFAULT NULL,<br> `mwi_subscribe_replaces_unsolicited` enum('0','1','off','on','false','true','no','yes') DEFAULT NULL,<br> `deny` varchar(95) DEFAULT NULL,<br> `permit` varchar(95) DEFAULT NULL,<br> `acl` varchar(40) DEFAULT NULL,<br> `contact_deny` varchar(95) DEFAULT NULL,<br> `contact_permit` varchar(95) DEFAULT NULL,<br> `contact_acl` varchar(40) DEFAULT NULL,<br> `subscribe_context` varchar(40) DEFAULT NULL,<br> `fax_detect_timeout` int(11) DEFAULT NULL,<br> `contact_user` varchar(80) DEFAULT NULL,<br> `preferred_codec_only` enum('yes','no') DEFAULT NULL,<br> `asymmetric_rtp_codec` enum('yes','no') DEFAULT NULL,<br> `rtcp_mux` enum('yes','no') DEFAULT NULL,<br> `allow_overlap` enum('yes','no') DEFAULT NULL,<br> `refer_blind_progress` enum('yes','no') DEFAULT NULL,<br> `notify_early_inuse_ringing` enum('yes','no') DEFAULT NULL,<br> `max_audio_streams` int(11) DEFAULT NULL,<br> `max_video_streams` int(11) DEFAULT NULL,<br> `webrtc` enum('yes','no') DEFAULT NULL,<br> `dtls_fingerprint` enum('SHA-1','SHA-256') DEFAULT NULL,<br> `incoming_mwi_mailbox` varchar(40) DEFAULT NULL,<br> `bundle` enum('yes','no') DEFAULT NULL,<br> `dtls_auto_generate_cert` enum('yes','no') DEFAULT NULL,<br> `follow_early_media_fork` enum('yes','no') DEFAULT NULL,<br> `accept_multiple_sdp_answers` enum('yes','no') DEFAULT NULL,<br> `suppress_q850_reason_headers` enum('yes','no') DEFAULT NULL,<br> `trust_connected_line` enum('0','1','off','on','false','true','no','yes') DEFAULT NULL,<br> `send_connected_line` enum('0','1','off','on','false','true','no','yes') DEFAULT NULL,<br> `ignore_183_without_sdp` enum('0','1','off','on','false','true','no','yes') DEFAULT NULL,<br> UNIQUE KEY `id` (`id`),<br> KEY `ps_endpoints_id` (`id`)<br>) ENGINE=InnoDB DEFAULT CHARSET=latin1</div><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-----Original Message-----<br>
From: asterisk-users <<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>> On Behalf Of Joshua C. Colp<br>
Sent: Tuesday, October 22, 2019 4:30 PM<br>
To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] Realtime PJSIP max_streams' issues<br>
<br>
On Tue, Oct 22, 2019, at 4:21 PM, Ahmed Chohan wrote:<br>
> Hi,<br>
> <br>
> I'm currently using Asterisk 16.4.0 cert version and working on webrtc. <br>
> For configuration perspective, I'm pretty much done with it but here <br>
> the real issue I'm currently facing i.e. when setting parameters <br>
> max_audio_streams & max_video_streams to any positive greater than 0 <br>
> integer value in realtime (DB) of any endpoints. After running command <br>
> "pjsip show endpoint 1001000001" it shows '0' but when setting as <br>
> 'NULL' in DB, showing output to 1 for both parameters.<br>
> <br>
> Furthermore, in AOR section, the max_connection is set to 1 for each endpoints.<br>
<br>
The configuration option for there is max_contacts.<br>
<br>
> Please advise, for this issue.<br>
<br>
What database are you using? What type is the column? Do any other fields exhibit the problem?<br>
<br>
--<br>
Joshua C. Colp<br>
Digium - A Sangoma Company | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: <a href="http://www.digium.com" rel="noreferrer" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" rel="noreferrer" target="_blank">www.asterisk.org</a><br>
<br clear="all"></blockquote></div><br>-- <br><div dir="ltr" class="gmail_signature">Regards,<br><br>Ahmed Munir Chohan<br><br></div></div>