<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How can I get the 'Line Text Label' from a CiscoAddress? in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552010#M1800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know how I get the 'Line Text Label' from a CiscoAddress object? I'm monitor incoming calls and getting the CiscoAddress object and want to see the line they called in on. For example, our phones have physical buttons with labels such as Line1, Line2, etc. If the user gets a new call on Line2 (because line1 is on hold), I want to know that Line2 is related to this CiscoAddress object. When I debug in Eclipse and drill into the CiscoAddress object I can find the value I am after. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CiscoAddress.assertvalidState.table[7].key.auxiliaryData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have no idea how to return that in my code or what object that is really in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2017 21:21:32 GMT</pubDate>
    <dc:creator>jprovines</dc:creator>
    <dc:date>2017-04-21T21:21:32Z</dc:date>
    <item>
      <title>How can I get the 'Line Text Label' from a CiscoAddress?</title>
      <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552010#M1800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know how I get the 'Line Text Label' from a CiscoAddress object? I'm monitor incoming calls and getting the CiscoAddress object and want to see the line they called in on. For example, our phones have physical buttons with labels such as Line1, Line2, etc. If the user gets a new call on Line2 (because line1 is on hold), I want to know that Line2 is related to this CiscoAddress object. When I debug in Eclipse and drill into the CiscoAddress object I can find the value I am after. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CiscoAddress.assertvalidState.table[7].key.auxiliaryData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have no idea how to return that in my code or what object that is really in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 21:21:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552010#M1800</guid>
      <dc:creator>jprovines</dc:creator>
      <dc:date>2017-04-21T21:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the 'Line Text Label' from a CiscoAddress?</title>
      <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552011#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try getButtonPosition(javax.telephony.Terminal term) API to find out the position of this address (Line) on a terminal (Phone)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getAsciiLabel(javax.telephony.Terminal term) should give the label configured for that line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 21:30:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552011#M1801</guid>
      <dc:creator>mpotluri</dc:creator>
      <dc:date>2017-04-21T21:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the 'Line Text Label' from a CiscoAddress?</title>
      <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552012#M1802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing something like this, but I'm getting null for getAsciiLabel.&amp;nbsp; Am I getting the terminal correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public void callChangedEvent(CallEv[] arg0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; //write call change events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (CallEv ce : arg0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; //System.out.println(ce.toString());&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (ce instanceof TermConnRingingEv) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; TermConnRingingEv cae = (TermConnRingingEv) ce;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CiscoCall c = (CiscoCall) cae.getCall();&lt;/P&gt;&lt;P&gt;&amp;nbsp; CiscoAddress caCaller = (CiscoAddress) c.getCurrentCallingAddress();&lt;/P&gt;&lt;P&gt;&amp;nbsp; CiscoAddress caCallee = (CiscoAddress) c.getCurrentCalledAddress();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; javax.telephony.Terminal t = c.&lt;STRONG&gt;getCurrentCalledTerminal&lt;/STRONG&gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp; String myLine = null;&lt;/P&gt;&lt;P&gt;&amp;nbsp; try {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;myLine &lt;/SPAN&gt; = caCallee.&lt;STRONG&gt;getAsciiLabel&lt;/STRONG&gt;(t);&lt;/P&gt;&lt;P&gt;&amp;nbsp; } catch (InvalidStateException e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated catch block&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp; } catch (MethodNotSupportedException e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated catch block&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp; } catch (InvalidArgumentException e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; // TODO Auto-generated catch block&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 21:46:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552012#M1802</guid>
      <dc:creator>jprovines</dc:creator>
      <dc:date>2017-04-21T21:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the 'Line Text Label' from a CiscoAddress?</title>
      <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552013#M1803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;I would try to get all the info from the event and its connection itself:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;TermConnRingingEv cae = (TermConnRingingEv) ce;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Terminal term = cae.getTerminalConnection().getTerminal();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;CiscoAddress ca = &lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;cae.getTerminalConnection().getConnection().getAddress();&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 22:02:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552013#M1803</guid>
      <dc:creator>mpotluri</dc:creator>
      <dc:date>2017-04-21T22:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the 'Line Text Label' from a CiscoAddress?</title>
      <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552014#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I keep getting null when calling ca.getAsciiLabel(term);&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 22:16:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552014#M1804</guid>
      <dc:creator>jprovines</dc:creator>
      <dc:date>2017-04-21T22:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the 'Line Text Label' from a CiscoAddress?</title>
      <link>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552015#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;getUnicodeLabel() Worked! Thank you! Have a great weekend!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2017 22:17:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/how-can-i-get-the-line-text-label-from-a-ciscoaddress/m-p/3552015#M1805</guid>
      <dc:creator>jprovines</dc:creator>
      <dc:date>2017-04-21T22:17:54Z</dc:date>
    </item>
  </channel>
</rss>

