Yealink Forums

Full Version: User Agent
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
VOIP - what device are you using?
T26 T28 T27 T42 T46 T23 T19 T32 T36
If you're using HTTP provisioning, one quick and easy work around would be to create a script that copies the HTTP UA to the "account.1.custom_ua" variable. the HTTP UA automatically contains the model, firmware version and MAC address in it which I assume is everything you want.

For example a quick PHP snippet:
<?php
$httpUA = $_SERVER['HTTP_USER_AGENT'];

echo "account.1.custom_ua=$httpUA";
?>
(obviously you would probably want more provisioning than that, but gives you an idea). Definitely not as elegant as a simple config variable saying do it automatically, but it does work and is not so ugly...
@jolouis

Thanks I have it working via provisioning through other ways... :-) - But yours is a good idea.

I was hoping to do it by default :-)

Thanks for your input its appreciated and I am sure it will help out others as well.
(03-28-2017 09:52 PM)VOIP Wrote: [ -> ]phone_setting.sip_ua_attach_mac.enable

I found it in the export from the phone.
What firmware of your phone?
I guess maybe it's a old string.
Pages: 1 2
Reference URL's