IP Phone Service with PHP Zend Framework

Version 1
    This document was generated from CDN thread

    Created by: Xiao Lv on 06-11-2010 09:49:38 AM
    Did anyone develop IPPhone Service Application by PHP Zend Framework?


    I have develop a application by zend framework. when i view it in my web browser. it was work fine response like follow:


    <CiscoIPPhoneMenu>
    <Title>Directory</Title>
    <Prompt>Please Select Catalogy ...</Prompt>

    <MenuItem>
    <Name>HeadQuarters</Name>
    <URL>/pas/directory/index/hq</URL>
    </MenuItem>

    <MenuItem>
    <Name>Branchs</Name>
    <URL>/pas/directory/index/branch</URL>
    </MenuItem>

    <MenuItem>
    <Name>Search</Name>
    <URL>/pas/directory/index/search</URL>
    </MenuItem>
    </CiscoIPPhoneMenu>


    But when i subscribe it as a ip phone directory service for my ipc in CCM 7.1


    When i click the menu. get error " Can not find host" which display on IPC Screen.


    I promise that the host can be reached by IPC.


    Because Zend framework use redirect method to though role authencation process. Did it cause IPC Error?  did Cisco IP Phone can process http 302(redirect)?



    Who can tell what can i do to resolve the problem?



    very thanks your help.

    Subject: Re: New Message from Xiao Lv in IP Phone Services (IPPS) - IP Phone Service
    Replied by: Sascha Monteiro on 06-11-2010 10:26:11 AM
    Do a wireshark trace to see what happens, that would be a good start

    Sent from my iPhone4

    On 06/11/2010, at 8:49 PM, Cisco Developer Community Forums <cdicuser@developer.cisco.com> wrote:

    > Xiao Lv has created a new message in the forum "IP Phone Services Questions":
    > --------------------------------------------------------------
    > Did anyone develop IPPhone Service Application by PHP Zend Framework?
    >
    >
    > I have develop a application by zend framework. when i view it in my web browser. it was work fine response like follow:
    >
    >
    > <CiscoIPPhoneMenu>
    > <Title>Directory</Title>
    > <Prompt>Please Select Catalogy ...</Prompt>
    >
    > <MenuItem>
    > <Name>HeadQuarters</Name>
    > <URL>/pas/directory/index/hq</URL>
    > </MenuItem>
    >
    > <MenuItem>
    > <Name>Branchs</Name>
    > <URL>/pas/directory/index/branch</URL>
    > </MenuItem>
    >
    > <MenuItem>
    > <Name>Search</Name>
    > <URL>/pas/directory/index/search</URL>
    > </MenuItem>
    > </CiscoIPPhoneMenu>
    >
    >
    > But when i subscribe it as a ip phone directory service for my ipc in CCM 7.1
    >
    >
    > When i click the menu. get error " Can not find host" which display on IPC Screen.
    >
    >
    > I promise that the host can be reached by IPC.
    >
    >
    > Because Zend framework use redirect method to though role authencation process. Did it cause IPC Error?  did Cisco IP Phone can process http 302(redirect)?
    >
    >
    >
    > Who can tell what can i do to resolve the problem?
    >
    >
    >
    > very thanks your help.
    > --
    > To respond to this post, please click the following link:
    > <http://developer.cisco.com/web/ipps/forums/-/message_boards/message/2716080>
    > or simply reply to this email.

    Subject: RE: Re: New Message from Xiao Lv in IP Phone Services (IPPS) - IP Phone Ser
    Replied by: Xiao Lv on 06-11-2010 11:07:59 AM
    very thanks ur response.
     
    but i have make a test. When i output xml content directly. It's work fine.
     
    when i use follow content. Same error occur.
     
    <?php
        header("Location: Directory.php");
    ?>
     
    Did Cisco IP Phone not support "http 302 (redirect)"?
     
     
     
    Do a wireshark trace to see what happens, that would be a good start

    Sent from my iPhone4

    On 06/11/2010, at 8:49 PM, Cisco Developer Community Forums <cdicuser@developer.cisco.com> wrote:

    > Xiao Lv has created a new message in the forum "IP Phone Services Questions":
    > --------------------------------------------------------------
    > Did anyone develop IPPhone Service Application by PHP Zend Framework?
    >
    >
    > I have develop a application by zend framework. when i view it in my web browser. it was work fine response like follow:
    >
    >
    > <CiscoIPPhoneMenu>
    > <Title>Directory</Title>
    > <Prompt>Please Select Catalogy ...</Prompt>
    >
    > <MenuItem>
    > <Name>HeadQuarters</Name>
    > <URL>/pas/directory/index/hq</URL>
    > </MenuItem>
    >
    > <MenuItem>
    > <Name>Branchs</Name>
    > <URL>/pas/directory/index/branch</URL>
    > </MenuItem>
    >
    > <MenuItem>
    > <Name>Search</Name>
    > <URL>/pas/directory/index/search</URL>
    > </MenuItem>
    > </CiscoIPPhoneMenu>
    >
    >
    > But when i subscribe it as a ip phone directory service for my ipc in CCM 7.1
    >
    >
    > When i click the menu. get error " Can not find host" which display on IPC Screen.
    >
    >
    > I promise that the host can be reached by IPC.
    >
    >
    > Because Zend framework use redirect method to though role authencation process. Did it cause IPC Error?  did Cisco IP Phone can process http 302(redirect)?
    >
    >
    >
    > Who can tell what can i do to resolve the problem?
    >
    >
    >
    > very thanks your help.
    > --
    > To respond to this post, please click the following link:
    > <http://developer.cisco.com/web/ipps/forums/-/message_boards/message/2716080>
    > or simply reply to this email.


    Subject: Re: New Message from Xiao Lv in IP Phone Services (IPPS) - IP Phone Service
    Replied by: Sascha Monteiro on 06-11-2010 08:09:49 PM
    I believe a redirect should work,
    try to use the full URL as location

    On 6/11/2010, at 10:07 PM, Cisco Developer Community Forums wrote:

    > Xiao Lv has created a new message in the forum "IP Phone Services Questions":
    > --------------------------------------------------------------
    > very thanks ur response.

    > but i have make a test.. When i output xml content directly. It's work fine.

    > when i use follow content. Same error occur.

    > <?php
    >     header("Location: Directory.php");
    > ?>

    > Did Cisco IP Phone not support "http 302 (redirect)"?



    > Do a wireshark trace to see what happens, that would be a good start
    >
    > Sent from my iPhone4
    >
    > On 06/11/2010, at 8:49 PM, Cisco Developer Community Forums <cdicuser@developer.cisco..com> wrote:
    >
    > > Xiao Lv has created a new message in the forum "IP Phone Services Questions":
    > > --------------------------------------------------------------
    > > Did anyone develop IPPhone Service Application by PHP Zend Framework?
    > >
    > >
    > > I have develop a application by zend framework. when i view it in my web browser. it was work fine response like follow:
    > >
    > >
    > > <CiscoIPPhoneMenu>
    > > <Title>Directory</Title>
    > > <Prompt>Please Select Catalogy ...</Prompt>
    > >
    > > <MenuItem>
    > > <Name>HeadQuarters</Name>
    > > <URL>/pas/directory/index/hq</URL>
    > > </MenuItem>
    > >
    > > <MenuItem>
    > > <Name>Branchs</Name>
    > > <URL>/pas/directory/index/branch</URL>
    > > </MenuItem>
    > >
    > > <MenuItem>
    > > <Name>Search</Name>
    > > <URL>/pas/directory/index/search</URL>
    > > </MenuItem>
    > > </CiscoIPPhoneMenu>
    > >
    > >
    > > But when i subscribe it as a ip phone directory service for my ipc in CCM 7.1
    > >
    > >
    > > When i click the menu. get error " Can not find host" which display on IPC Screen.
    > >
    > >
    > > I promise that the host can be reached by IPC.
    > >
    > >
    > > Because Zend framework use redirect method to though role authencation process. Did it cause IPC Error? did Cisco IP Phone can process http 302(redirect)?
    > >
    > >
    > >
    > > Who can tell what can i do to resolve the problem?
    > >
    > >
    > >
    > > very thanks your help.
    > > --
    > > To respond to this post, please click the following link:
    > > <http://developer.cisco.com/web/ipps/forums/-/message_boards/message/2716080>
    > > or simply reply to this email.
    >
    > --
    > To respond to this post, please click the following link:
    > <http://developer.cisco.com/web/ipps/forums/-/message_boards/message/2716127>
    > or simply reply to this email.

    Subject: RE: Re: New Message from Xiao Lv in IP Phone Services (IPPS) - IP Phone Ser
    Replied by: Stefan Slominski on 08-11-2010 10:32:23 AM
    in my experience redirects don't work on IP Phones, but haven't tested it on latest firmware

    Subject: RE: Re: New Message from Xiao Lv in IP Phone Services (IPPS) - IP Phone Ser
    Replied by: Stefan Slominski on 09-11-2010 02:03:37 PM
    sorry my mistake... i guess i was somehow confused :/
    never mind...
     
    of course redirects work !!!
     
    Successfully tested in:
    ASP -> Response.Redirect
    JSP -> pageContext.forward

    Subject: RE: Re: New Message from Xiao Lv in IP Phone Services (IPPS) - IP Phone Ser
    Replied by: Xiao Lv on 12-11-2010 08:36:54 AM
    very thanks your confirm. Yes it support redirect. my mistake is no full URL, not include IP Address just use "/"
     
    sorry my mistake... i guess i was somehow confused :/
    never mind...
     
    of course redirects work !!!
     
    Successfully tested in:
    ASP -> Response.Redirect
    JSP -> pageContext.forward