How can we help you today?
Start a new topic
Answered

Static and runtime variables not available

Hi all


We are developing an interface to Log In and Log Out of a Genesys environment and make agents Ready and Not Ready. All the phones are 821's on snom821-8.7.5.28.

We need to pass the DN of the phone ($active_user / $user_name1) with our http requests to our middleware.


This only seems to work under a few select conditions, like within SnomIPPhoneInput, but definitely not under SnomIPPhoneText, or SnomIPPhoneMenu.


For example, this will not work - $active_user is null:


<?xml version="1.0" encoding="UTF-8"?>

    <SnomIPPhoneText>

    <Title>Status</Title>

    <Text>Logging Off</Text> 

    <fetch mil="2000">http://${url}/core/mb_logout?user=$active_user</fetch>

</SnomIPPhoneText>


I am having to use another input page with a "Are you sure?" prompt to work around this - a very clunky solution.


Am I doing something wrong?


Best Answer

Hi Craig,


can you please try this one?:


<?xml version="1.0" encoding="UTF-8"?>

    <SnomIPPhoneText>

    <Title>Status</Title>

    <Text>Logging Off</Text> 

    <fetch mil="2000">http://${url}/core/mb_logout?user=$(set:active_user[1])</fetch>

</SnomIPPhoneText>


using the $(set:xxx) callback you can read every phone setting.


Answer

Hi Craig,


can you please try this one?:


<?xml version="1.0" encoding="UTF-8"?>

    <SnomIPPhoneText>

    <Title>Status</Title>

    <Text>Logging Off</Text> 

    <fetch mil="2000">http://${url}/core/mb_logout?user=$(set:active_user[1])</fetch>

</SnomIPPhoneText>


using the $(set:xxx) callback you can read every phone setting.

Hi Pietro


Apologies for the late reply. Your solution works perfectly.


Thanks for the solution!

Login or Signup to post a comment