| 97 | | |
|---|
| 98 | | |
|---|
| 99 | | |
|---|
| | 97 | I like the concept of checking what type of phone it is based on the useragent. However - there seems to be such a diverse range of useragents which include firmware version, etc. You can truncate part of it however it seems like it may be a bit error prone. Here is an example of what a few phones/ATAs return to show the diversity: |
|---|
| | 98 | {{{ |
|---|
| | 99 | PolycomSoundPointIP-SPIP_601-UA/1.6.5.0043 |
|---|
| | 100 | Sipura/SPA2002-3.1.5 |
|---|
| | 101 | Mitel-5212-SIP-Phone 06.00.00.19 08000F270FD2 |
|---|
| | 102 | snom300/6.2.3 |
|---|
| | 103 | Mitel-5235-SIP-Phone |
|---|
| | 104 | Aastra 480i Cordless |
|---|
| | 105 | }}} |
|---|
| | 106 | Maybe a way to handle it is to check if the device type is known already (from provisioning info in the future), if not go through a method like this and barring that, set a default value. Note that other fields like Call-Info can also very by phone. |