Skip to content

Commit

Permalink
Merge pull request iNextrix#644 from iNextrix/ASTPPENT-3820_user_agen…
Browse files Browse the repository at this point in the history
…t_string

[FIX]Community - remove user-agent-string param from sip profile
  • Loading branch information
devangn authored Feb 9, 2022
2 parents 8e4700b + d348f0c commit 5b1b2f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/astpp-5.0.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ INSERT INTO `default_templates` VALUES (NULL,'customer_refill_balance','You Rece

-- -----------------------------22-10-2021

update `sip_profiles` set `profile_data` = '{"rtp-ip":"$${local_ip_v4}","dialplan":"XML","user-agent-string":"ASTPP","debug":"0","sip-trace":"no","tls":"false","inbound-reg-force-matching-username":"true","disable-transcoding":"true","all-reg-options-ping":"false","unregister-on-options-fail":"true","log-auth-failures":"true","status":"0","inbound-bypass-media":"false","inbound-proxy-media":"false","disable-transfer":"false","enable-100rel":"false","rtp-timeout-sec":"300","dtmf-duration":"2000","manual-redirect":"true","aggressive-nat-detection":"true","enable-timer":"false","minimum-session-expires":"120","session-timeout-pt":"1800","auth-calls":"true","apply-inbound-acl":"default","inbound-codec-prefs":"PCMA,PCMU","outbound-codec-prefs":"PCMA,PCMU","inbound-late-negotiation":"false","sip-capture":"no","forward-unsolicited-mwi-notify":"false","context":"default","rfc2833-pt":"101","rtp-timer-name":"soft","hold-music":"$${hold_music}","manage-presence":"true","presence-hosts":"$${domain},$${local_ip_v4}","presence-privacy":"$${presence_privacy}","inbound-codec-negotiation":"generous","auth-all-packets":"false","ext-rtp-ip":"$${local_ip_v4}","ext-sip-ip":"$${local_ip_v4}","rtp-hold-timeout-sec":"1800","force-register-domain":"$${domain}","force-subscription-domain":"$${domain}","force-register-db-domain":"$${domain}","challenge-realm":"auto_from","nonce-ttl":"60","pass-callee-id":"false", "dtmf_type":"rfc2833"}' where id = 1;
update `sip_profiles` set `profile_data` = '{"rtp-ip":"$${local_ip_v4}","dialplan":"XML","debug":"0","sip-trace":"no","tls":"false","inbound-reg-force-matching-username":"true","disable-transcoding":"true","all-reg-options-ping":"false","unregister-on-options-fail":"true","log-auth-failures":"true","status":"0","inbound-bypass-media":"false","inbound-proxy-media":"false","disable-transfer":"false","enable-100rel":"false","rtp-timeout-sec":"300","dtmf-duration":"2000","manual-redirect":"true","aggressive-nat-detection":"true","enable-timer":"false","minimum-session-expires":"120","session-timeout-pt":"1800","auth-calls":"true","apply-inbound-acl":"default","inbound-codec-prefs":"PCMA,PCMU","outbound-codec-prefs":"PCMA,PCMU","inbound-late-negotiation":"false","sip-capture":"no","forward-unsolicited-mwi-notify":"false","context":"default","rfc2833-pt":"101","rtp-timer-name":"soft","hold-music":"$${hold_music}","manage-presence":"true","presence-hosts":"$${domain},$${local_ip_v4}","presence-privacy":"$${presence_privacy}","inbound-codec-negotiation":"generous","auth-all-packets":"false","ext-rtp-ip":"$${local_ip_v4}","ext-sip-ip":"$${local_ip_v4}","rtp-hold-timeout-sec":"1800","force-register-domain":"$${domain}","force-subscription-domain":"$${domain}","force-register-db-domain":"$${domain}","challenge-realm":"auto_from","nonce-ttl":"60","pass-callee-id":"false", "dtmf_type":"rfc2833"}' where id = 1;

-- ----------------------------------31-10-21
Alter table `counters` add type tinyint(1) NOT NULL;
Expand Down
2 changes: 1 addition & 1 deletion database/astpp-5.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2038,7 +2038,7 @@ CREATE TABLE `sip_profiles` (

LOCK TABLES `sip_profiles` WRITE;
/*!40000 ALTER TABLE `sip_profiles` DISABLE KEYS */;
INSERT INTO `sip_profiles` VALUES (1,'default','$${local_ip_v4}','5060','{\"rtp-ip\":\"$${local_ip_v4}\",\"dialplan\":\"XML\",\"user-agent-string\":\"ASTPP\",\"debug\":\"0\",\"sip-trace\":\"no\",\"tls\":\"false\",\"inbound-reg-force-matching-username\":\"true\",\"disable-transcoding\":\"true\",\"all-reg-options-ping\":\"false\",\"unregister-on-options-fail\":\"true\",\"log-auth-failures\":\"true\",\"status\":\"0\",\"inbound-bypass-media\":\"false\",\"inbound-proxy-media\":\"false\",\"disable-transfer\":\"false\",\"enable-100rel\":\"false\",\"rtp-timeout-sec\":\"300\",\"dtmf-duration\":\"2000\",\"manual-redirect\":\"true\",\"aggressive-nat-detection\":\"true\",\"enable-timer\":\"false\",\"minimum-session-expires\":\"120\",\"session-timeout-pt\":\"1800\",\"auth-calls\":\"true\",\"apply-inbound-acl\":\"default\",\"inbound-codec-prefs\":\"PCMA,PCMU\",\"outbound-codec-prefs\":\"PCMA,PCMU\",\"inbound-late-negotiation\":\"false\",\"sip-capture\":\"no\",\"forward-unsolicited-mwi-notify\":\"false\",\"context\":\"default\",\"rfc2833-pt\":\"101\",\"rtp-timer-name\":\"soft\",\"hold-music\":\"$${hold_music}\",\"manage-presence\":\"true\",\"presence-hosts\":\"$${domain},$${local_ip_v4}\",\"presence-privacy\":\"$${presence_privacy}\",\"inbound-codec-negotiation\":\"generous\",\"auth-all-packets\":\"false\",\"ext-rtp-ip\":\"$${local_ip_v4}\",\"ext-sip-ip\":\"$${local_ip_v4}\",\"rtp-hold-timeout-sec\":\"1800\",\"force-register-domain\":\"$${domain}\",\"force-subscription-domain\":\"$${domain}\",\"force-register-db-domain\":\"$${domain}\",\"challenge-realm\":\"auto_from\",\"nonce-ttl\":\"60\",\"pass-callee-id\":\"false\"}','2015-01-21 17:25:01','2019-03-05 08:25:47',0,0);
INSERT INTO `sip_profiles` VALUES (1,'default','$${local_ip_v4}','5060','{\"rtp-ip\":\"$${local_ip_v4}\",\"dialplan\":\"XML\",\"debug\":\"0\",\"sip-trace\":\"no\",\"tls\":\"false\",\"inbound-reg-force-matching-username\":\"true\",\"disable-transcoding\":\"true\",\"all-reg-options-ping\":\"false\",\"unregister-on-options-fail\":\"true\",\"log-auth-failures\":\"true\",\"status\":\"0\",\"inbound-bypass-media\":\"false\",\"inbound-proxy-media\":\"false\",\"disable-transfer\":\"false\",\"enable-100rel\":\"false\",\"rtp-timeout-sec\":\"300\",\"dtmf-duration\":\"2000\",\"manual-redirect\":\"true\",\"aggressive-nat-detection\":\"true\",\"enable-timer\":\"false\",\"minimum-session-expires\":\"120\",\"session-timeout-pt\":\"1800\",\"auth-calls\":\"true\",\"apply-inbound-acl\":\"default\",\"inbound-codec-prefs\":\"PCMA,PCMU\",\"outbound-codec-prefs\":\"PCMA,PCMU\",\"inbound-late-negotiation\":\"false\",\"sip-capture\":\"no\",\"forward-unsolicited-mwi-notify\":\"false\",\"context\":\"default\",\"rfc2833-pt\":\"101\",\"rtp-timer-name\":\"soft\",\"hold-music\":\"$${hold_music}\",\"manage-presence\":\"true\",\"presence-hosts\":\"$${domain},$${local_ip_v4}\",\"presence-privacy\":\"$${presence_privacy}\",\"inbound-codec-negotiation\":\"generous\",\"auth-all-packets\":\"false\",\"ext-rtp-ip\":\"$${local_ip_v4}\",\"ext-sip-ip\":\"$${local_ip_v4}\",\"rtp-hold-timeout-sec\":\"1800\",\"force-register-domain\":\"$${domain}\",\"force-subscription-domain\":\"$${domain}\",\"force-register-db-domain\":\"$${domain}\",\"challenge-realm\":\"auto_from\",\"nonce-ttl\":\"60\",\"pass-callee-id\":\"false\"}','2015-01-21 17:25:01','2019-03-05 08:25:47',0,0);
/*!40000 ALTER TABLE `sip_profiles` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
2 changes: 2 additions & 0 deletions freeswitch/fs/lib/astpp.xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ function load_sofia($logger, $db, $config) {
foreach ( $settings as $set_key => $set_val ) {
$xml .= " <param name=\"" . $set_key . "\" value=\"" . $set_val . "\"/>\n";
}
$xml .= " <param name=\"user-agent-string\" value=\"ASTPP\"/>\n";

$xml .= " </settings>\n";

// Gateway block start
Expand Down

0 comments on commit 5b1b2f7

Please sign in to comment.