Is it possible to change User-Agent string?
Can you give me parameter name/value example?
Its self explanatory, āuser-agent-stringā
I asked for example to ckeck problem. I used the same parameter in sip-profile:
And it doesnāt work:
User agent is still āASTPPā.
itās hard-coded in astpp lua files. I do not remember the exact file but it starts with astpp* or dialplan* lua file.
@xserver You must be right that it is hardcoded.
@palak I tried to reload, rescan after adding parameter without success.
I found two problems / bugs:
-
After adding parameter āuser-agent-stringā and restarting server I canāt establish any call. ASTPP registration of provider (termination side) fails and also registration of customer (originator side) fails too. After removing āuser-agent-stringā parameter from sip-profile everything is working fine.
-
I made spelling mistake and instead of user-agent-string I added parameter user-agent-stringā. Of course it is not effective but Iām not able to delete this parameter via ASTPP GUI.
@Bartosz The file name where its hard-coded is
web_interface/astpp/application/libraries/astpp/common.php - Line 164
web_interface/astpp/application/modules/freeswitch/libraries/freeswitch_form.php - Line 2002
freeswitch/fs/lib/astpp.xml.php - Line 2019
Try changing it , if that doesnāt work then you may try changing it in Database. Check the second line below.
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","inbound-bypass-media":"false","inbound-proxy-media":"false","disable-transfer":"true","enable-100rel":"false","rtp-timeout-sec":"60","dtmf-duration":"2000","aggressive-nat-detection":"false","enable-timer":"false","minimum-session-expires":"120","session-timeout-pt":"1800","auth-calls":"true","apply-inbound-acl":"default"}ā,ā2013-05-17 08:07:23ā,ā0000-00-00 00:00:00ā,0);
@xserver thank you for your valueable reply
butā¦ if this setting can not be changed via ASTPP GIU then I must assume that is not possible. It will cause problem in future during updates and backup-recovery processes.
For current project Iām looking for sulution that I will recommend to customer without deep technical knowledge, so it must be fully configurable via GUI. Also it needs to be in affordable price because this is not very big project.
Hello @Bartosz ,
I have tried in our local community server, and it got delete. Please share any screenshot for it.
Here you are:
astpp-2023-04-06_14.04.52.mp4
BTW. Video above shows also other bug. Look at the bottom (page pagination):
<< < Page 1 of 2 > >> 1-25 of 49 Records [25]
But actually GUI is showing all 49 records even that has limit to 25 and after page change (to second page) nothing happen beside change of text to ā26-49 of 49 Recordsā.
Hello @Bartosz ,
The issue will be logged for it.
Though for now execute update query directly on the db table.
update sip_profiles set profie_data='{ārtp_ipā:ā$${local_ip_v4}ā,ādialplanā:āXMLā,āuser-agent-stringā:ā<<<REPLACE_YOUR_STRING>>>ā,ā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ā,āinbound-bypass-mediaā:āfalseā,āinbound-proxy-mediaā:āfalseā,ādisable-transferā:ātrueā,āenable-100relā:āfalseā,ārtp-timeout-secā:ā60ā,ādtmf-durationā:ā2000ā,āaggressive-nat-detectionā:āfalseā,āenable-timerā:āfalseā,āminimum-session-expiresā:ā120ā,āsession-timeout-ptā:ā1800ā,āauth-callsā:ātrueā,āapply-inbound-aclā:ādefaultā}ā;
Has anyone been able to resolve this issue? Iāve tried to locate the XML containing āuser-agent-string,ā but itās not possible using the graphical interface.
Hello
change those files
web_interface/astpp/application/libraries/astpp/common.php - Line 164 (Ā±)
web_interface/astpp/application/modules/freeswitch/libraries/freeswitch_form.php - Line 2002(Ā±)
freeswitch/fs/lib/astpp.xml.php - Line 2019 (Ā±)
Try changing it , if that doesnāt work then you may try changing it in Database. Check the second line below.
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ā,āinbound-bypass-mediaā:āfalseā,āinbound-proxy-mediaā:āfalseā,ādisable-transferā:ātrueā,āenable-100relā:āfalseā,ārtp-timeout-secā:ā60ā,ādtmf-durationā:ā2000ā,āaggressive-nat-detectionā:āfalseā,āenable-timerā:āfalseā,āminimum-session-expiresā:ā120ā,āsession-timeout-ptā:ā1800ā,āauth-callsā:ātrueā,āapply-inbound-aclā:ādefaultā}ā,ā2013-05-17 08:07:23ā,ā0000-00-00 00:00:00ā,0);