Scheduled maintenance alert

Our website will undergo maintenance from Di, 19.11.2024, 20:00 CEST to Di, 19.11.2024, 22:00 CEST, which may cause occasional service disruptions. We apologize for any inconvenience and appreciate your understanding.

Content

Page tree

In order for this callback to work, the phone must have a WLAN USB Dongle attached and WIFI must not be disabled. See also Setting up WLAN Connection on Snom Deskphone.

This callback returns a list that can be used in a Repeat tag. The number of tokens for the elements in this list can vary in different firmware versions, and using the wrong number of tokens in the Repeat can cause the phone to crash. For this reason, it is essential to test this callback first before using it in production and after every firmware upgrade.

The following example should only be used in firmware versions >= 10.1.60.0.


Example: scans for available WIFI SSIDs and returns them as a list for use in a Repeat Tag, which then fills in MenuItem lines. The test for FEATURE_PUI_STYLE_SIO is needed because depending on this the number of tokens can vary.

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneMenu>
	<If condition="$(show_feature:FEATURE_PUI_STYLE_SIO)">
        	<Repeat values="$(wifiscan)" token="/__SSID__/__QUAL__/__AUTH__/__ENC__/__MAC_ADDR__/__BITRATES__/__FREQUENCY__/">
				<MenuItem name="__SSID__ | __QUAL__% | __MAC_ADDR__"></MenuItem>
 			</Repeat>
     	</If>
     	<Else>
        	<Repeat values="$(wifiscan)" token="/__SSID__/__QUAL__/__AUTH__/__ENC__/__MAC_ADDR__/">
				<MenuItem name="__SSID__ | __QUAL__% | __MAC_ADDR__"></MenuItem>
 			</Repeat>
     	</Else>
</SnomIPPhoneMenu>


Result on D735:


Result on D315: