Passing Information in URL

Version 1

    Subject: Re: New Message from Steve Schultz in IP Phone Services (IPPS) - IP Phone S
    Replied by: Chikeobi Njaka on 11-07-2013 02:19:55 PM
    Hi Steve,
    The header that is returned from the phone will include the IP address
    of the phone.

    As for getting the phone number of the person on the *other* end of the
    call using XSI, you cannot do that. You'll have to use CTI. What exactly
    are you trying to accomplish? Are you trying to log call information
    when a user executes your service? If so, you'll have to use JTAP/TAPI
    and have an observer on the phone/address to get the information you are
    looking for.

    Regards,
    Chikeobi Njaka


    On 7/11/2013 11:49 AM, Cisco Developer Community Forums wrote:
    > Steve Schultz has created a new message in the forum "IP Phone
    > Services Questions":
    > -------------------------------------------------------------- I'm
    > hoping to be able to pass information about the phone in the URL.
    >
    > I've seen that I can include the device name by using #DEVICENAME#,
    > but I'd also like to include the phone's IP Address and the phone
    > number of the phone on the other end of the line (if someone is on the
    > line).
    > Is this possible with Cisco phones? I don't see any mention of it in
    > the manuals I've read through.
    >
    > Thanks,
    > Steve
    > --
    > To respond to this post, please click the following link:
    > http://developer.cisco.com/web/ipps/forums/-/message_boards/view_message/17116469
    > or simply reply to this email.
    This document was generated from CDN thread

    Created by: Steve Schultz on 11-07-2013 01:49:18 PM
    I'm hoping to be able to pass information about the phone in the URL.

    I've seen that I can include the device name by using #DEVICENAME#, but I'd also like to include the phone's IP Address and the phone number of the phone on the other end of the line (if someone is on the line).
    Is this possible with Cisco phones? I don't see any mention of it in the manuals I've read through.

    Thanks,
    Steve

    Subject: RE: Passing Information in URL
    Replied by: David Staudt on 11-07-2013 02:14:49 PM
    The #DEVICENAME# macro is the only one of its kind.  The IP address of the phone will of course be available to to the app from the TCP/HTTP request itself.
    The DN of the phone _may_ be available by requesting the /DeviceInformationX page from the phone, however this approach has several limitations (model support for that page varies, multiple line appearances)...

    Obtaining the DN of the far end on a call is is going to require looking at the CTI interfaces - i.e. TAPI and JTAPI - whereby the app can obtain a real-time event for calls, which includes caller/calling IDs. 
    http://developer.cisco.com/web/jtapi
    http://developer.cisco.com/web/tapi

    Subject: RE: Passing Information in URL
    Replied by: Steve Schultz on 11-07-2013 02:49:35 PM
    Thanks for the quick replies.
    That was helpful. I was hoping I could simply pass the required information in the URL since we also use Aastra phones, which allow access to the IP Address and the Remote Number. It would allow me to have one webservice which would be able to service both the Aastra and Cisco phones. It looks like we'll need two different webservices, once to service Aastra Phones and one for Cisco.

    The reason I need the caller's number is because we have a database of addresses. When a caller phones in, we display their address (and other info) on the phone.