Call Forward All Problem

Version 1
    This document was generated from CDN thread

    Created by: Harry Pooni on 21-02-2011 11:39:49 AM
    Hello,
     
    I am trying to disable callforwardall with the following command but i have had no success. Can anyone help with this.
     
    Many Thanks
     
     
    private List<XPhoneProfile> GetPhoneProfiles()
    {

           List<XPhoneProfile> userPhoneProfiles = new List<XPhoneProfile>(); 
           foreach (object profile in _user.phoneProfiles.Items)
           {
                  GetDeviceProfileReq devProfile = new GetDeviceProfileReq();
                  devProfile.ItemElementName = ItemChoiceType47.profileName;
                  devProfile.Item = profile.ToString();
                  GetDeviceProfileRes resp = AXLService.getDeviceProfile(devProfile);
                  XPhoneProfile deviceProfileRead = resp.@return.profile;
     
                  userPhoneProfiles.Add(deviceProfileRead);
             }
             
         if (userPhoneProfiles.Count < 1) 
            return null; 
         else  
           return userPhoneProfiles;
    }
    foreach (XPhoneProfile deviceProfileRead in GetPhoneProfiles())
    {
    XIPPhoneLines lines = deviceProfileRead.lines
     
     foreach (XLine thisLine in lines.Items)
     {
           #region AXL request 
           try
           {
                  GetLineReq lineReq = new GetLineReq();
                  lineReq.uuid = thisLine.Item.uuid;
                  GetLineRes lineRes = AXLService.getLine(lineReq);
     
                  XNPDirectoryNumber dir = lineRes.@return.directoryNumber;
                  dir.callForwardAll.forwardToVoiceMail = false;
                  dir.callForwardAll.destination = string.Empty;
                  dir.callForwardAll.duration = "-1";
                  UpdateLineReq lr = new UpdateLineReq();
                  lr.uuid = thisLine.Item.uuid;
                  lr.callForwardAll = dir.callForwardAll;
                  StandardResponse sr = AXLService.updateLine(lr);
           }
           catch
           {
           }
           #endregion

           }
    }

     

    Subject: RE: Call Forward All Problem
    Replied by: Stefan Schallmeiner on 22-02-2011 02:25:58 AM
    Hello,
     
    I am trying to disable callforwardall with the following command but i have had no success. Can anyone help with this.
     
    Many Thanks
     
     
    private List<XPhoneProfile> GetPhoneProfiles()
    {

           List<XPhoneProfile> userPhoneProfiles = new List<XPhoneProfile>(); 
           foreach (object profile in _user.phoneProfiles.Items)
           {
                  GetDeviceProfileReq devProfile = new GetDeviceProfileReq();
                  devProfile.ItemElementName = ItemChoiceType47.profileName;
                  devProfile.Item = profile.ToString();
                  GetDeviceProfileRes resp = AXLService.getDeviceProfile(devProfile);
                  XPhoneProfile deviceProfileRead = resp.@return.profile;
     
                  userPhoneProfiles.Add(deviceProfileRead);
             }
             
         if (userPhoneProfiles.Count < 1) 
            return null; 
         else  
           return userPhoneProfiles;
    }
    foreach (XPhoneProfile deviceProfileRead in GetPhoneProfiles())
    {
    XIPPhoneLines lines = deviceProfileRead.lines
     
     foreach (XLine thisLine in lines.Items)
     {
           #region AXL request 
           try
           {
                  GetLineReq lineReq = new GetLineReq();
                  lineReq.uuid = thisLine.Item.uuid;
                  GetLineRes lineRes = AXLService.getLine(lineReq);
     
                  XNPDirectoryNumber dir = lineRes.@return.directoryNumber;
                  dir.callForwardAll.forwardToVoiceMail = false;
                  dir.callForwardAll.destination = string.Empty;
                  dir.callForwardAll.duration = "-1";
                  UpdateLineReq lr = new UpdateLineReq();
                  lr.uuid = thisLine.Item.uuid;
                  lr.callForwardAll = dir.callForwardAll;
                  StandardResponse sr = AXLService.updateLine(lr);
           }
           catch
           {
           }
           #endregion

           }
    }

     

     
    Hi Harry,
     
    here's the Java-Code,  but I think you can figure it out:
     
     <font size="2">
    UpdateLineReq rq_update_line =
    </font>
    new UpdateLineReq();<font size="2">
    rq_update_line.setUuid(
    </font>
    "{C21B970A-EE46-5363-538F-D57E9EDCA7B6}");
    <font size="2">
    XCallForwardInfo info =
    </font>
    new XCallForwardInfo();<font size="2">
    info.setDestination(
    </font>
    "1234");

    rq_update_line.setCallForwardAll(info);
    <font size="2">
     
    </font>
    stub.updateLine(rq_update_line);
     
     

     

    Subject: RE: Call Forward All Problem
    Replied by: Stefan Schallmeiner on 22-02-2011 02:28:23 AM
    Meh, here again:

     1    private static void setCFA() {
     2        try {
     3            
     4            UpdateLineReq rq_update_line = new UpdateLineReq();
     5            rq_update_line.setUuid("{C21B970A-EE46-5363-538F-D57E9EDCA7B6}");
     6       
     7            XCallForwardInfo info = new XCallForwardInfo();
     8            info.setDestination("1234");
     9            
    10            rq_update_line.setCallForwardAll(info);
    11            stub.updateLine(rq_update_line);
    12
    13        }
    14        catch(Exception e)
    15        {
    16            System.out.println(e.getMessage());
    17        }
    18
    19    }


    Subject: RE: Call Forward All Problem
    Replied by: Stefan Schallmeiner on 22-02-2011 02:30:02 AM
    To remove the CallforwardAll, just do:

    1XCallForwardInfo info = new XCallForwardInfo();
    2            info.setDestination("");


    Subject: RE: Call Forward All Problem
    Replied by: Stefan Schallmeiner on 22-02-2011 05:16:38 AM
    Hi Stefan,

    Thank you for your response, unfortunately that didn't work for me, the code is below:

    Any other ideas would be appreciated.

    foreach (XPhoneProfile deviceProfileRead in GetPhoneProfiles())
    {
    XIPPhoneLines lines = deviceProfileRead.lines;

    foreach (XLine thisLine in lines.Items)
    {
    #region AXL request
    try
    {
    GetLineReq lineReq = new GetLineReq();
    lineReq.uuid = thisLine.Item.uuid;

    XCallForwardInfo info = new XCallForwardInfo();
    info.destination = "";

    UpdateLineReq lr = new UpdateLineReq();

    lr.uuid = thisLine.Item.uuid;
    lr.callForwardAll = info;
    StandardResponse sr = AXLService.updateLine(lr);
    }
    catch
    {

    }
    #endregion

    }

    }

     
    Hi Harry!
     
    Just a guess, but when you are doing this:
     
    lr.uuid = thisLine.Item.uuid;
    you probably set the Uuid from a XLine-Object to update and i think that won't work, cause CuCM is seperating between Line-Uuids and Dirn-Uuids so i'll suggest to try something like this:
     
    lr.uuid = thisLine.getDirectoryNumber.uuid
     

    but again thats just a guess, do you get some kind of error or something?

    Subject: RE: Call Forward All Problem
    Replied by: Harry Pooni on 22-02-2011 05:42:46 AM
    Hi Stefan,

    There is no error message i get back the UUID which from my understanding is correct. I tried teh Directory Number UUID with no effect. I even tried setting the CallForwardAll object to null to see if that would work.

    Could an sql query do the job?

    Thanks
    Harry

    Subject: RE: Call Forward All Problem
    Replied by: Stefan Schallmeiner on 22-02-2011 07:04:08 AM
    Hi Stefan,

    There is no error message i get back the UUID which from my understanding is correct. I tried teh Directory Number UUID with no effect. I even tried setting the CallForwardAll object to null to see if that would work.

    Could an sql query do the job?

    Thanks
    Harry



    Hi Harry,
     
    if SQL is an option there's pretty sure an option, but I don't have any solution for this in my "repertoire"
     
    If you want to take a look at the tables, just search for the "CucM Database Dictionary",... I think CFA should be in the numplan table,... (another guess)
     
    But if you want to run this more often or in similar other ways you should get the axl thing running, just a tip.
     
     
    In your Situation i'd try something like this:
     
    UpdateLineReq rq_update_line = new UpdateLineReq();
    rq_update_line.setUuid("{C21B970A-EE46-5363-538F-D57E9EDCA7B6}");
      
    XCallForwardInfo info = new XCallForwardInfo();
    info.setDestination("");
       
    rq_update_line.setCallForwardAll(info);
    stub.updateLine(rq_update_line);
     
    just copy in the uuid to be sure,... You can retrieve the working uuid right from you're browsers adress-field,... I'll attach a file which shows that in the case you don't alreade know,...
     
     
     
     

    Subject: RE: Call Forward All Problem
    Replied by: Harry Pooni on 22-02-2011 04:54:20 AM
    Hi Stefan,

    Thank you for your response, unfortunately that didn't work for me, the code is below:

    Any other ideas would be appreciated.

               foreach (XPhoneProfile deviceProfileRead in GetPhoneProfiles())
                {
                    XIPPhoneLines lines = deviceProfileRead.lines;

                    foreach (XLine thisLine in lines.Items)
                    {
                        #region AXL request
                        try
                        {
                            GetLineReq lineReq = new GetLineReq();
                            lineReq.uuid = thisLine.Item.uuid;

                            XCallForwardInfo info = new XCallForwardInfo();
                            info.destination = "";

                            UpdateLineReq lr = new UpdateLineReq();

                            lr.uuid = thisLine.Item.uuid;
                            lr.callForwardAll = info;
                            StandardResponse sr = AXLService.updateLine(lr);
                        }
                        catch
                        {

                        }
                        #endregion

                    }

                }

    Subject: RE: New Message from Stefan Schallmeiner in Administration XML (AXL) - Admi
    Replied by: Harry Pooni on 22-02-2011 09:18:23 AM
    Hi Stefan,



    Thanks for your help.



    Regards

    Harry



    From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Sent: 22 February 2011 12:04
    To: cdicuser@developer.cisco.com
    Subject: New Message from Stefan Schallmeiner in Administration XML (AXL) - Administration XML Questions: RE: Call Forward All Problem



    Stefan Schallmeiner has created a new message in the forum "Administration XML Questions":

    --------------------------------------------------------------
    Hi Stefan,

    There is no error message i get back the UUID which from my understanding is correct. I tried teh Directory Number UUID with no effect. I even tried setting the CallForwardAll object to null to see if that would work.

    Could an sql query do the job?

    Thanks
    Harry



    Hi Harry,

    if SQL is an option there's pretty sure an option, but I don't have any solution for this in my "repertoire"  <http://mce_host/html/js/editor/@theme_images_path@/emoticons/happy.gif>

    If you want to take a look at the tables, just search for the "CucM Database Dictionary",... I think CFA should be in the numplan table,... (another guess)

    But if you want to run this more often or in similar other ways you should get the axl thing running, just a tip.


    In your Situation i'd try something like this:

    UpdateLineReq rq_update_line = new UpdateLineReq();
    rq_update_line.setUuid("{C21B970A-EE46-5363-538F-D57E9EDCA7B6}");
     
    XCallForwardInfo info = new XCallForwardInfo();
    info.setDestination("");
      
    rq_update_line.setCallForwardAll(info);
    stub.updateLine(rq_update_line);

    just copy in the uuid to be sure,... You can retrieve the working uuid right from you're browsers adress-field,... I'll attach a file which shows that in the case you don't alreade know,...




    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/3086964>

    or simply reply to this email.


     
    Harry Pooni
    Technical Consultant
    Dimension Data United Kingdom
    Tel: +44 12 5277 9542
    Mob: +44 78 2531 3430
    Fax: +44 12 5277 9010
    harry.pooni@eu.didata.com

    Dimension Data House, 2 Waterfront Business Park, Fleet Road, Fleet,  Hampshire, GU51 3QT, United Kingdom
    http://www.dimensiondata.com/


    For further information about Dimension Data, please go to http://www.dimensiondata.com/

    P Before printing this email please think about the environment

    http://www.dimensiondata.com/pressuretest

    Subject: RE: New Message from Harry Pooni in Administration XML (AXL) - Administrati
    Replied by: Harry Pooni on 22-02-2011 09:56:23 AM
    One question, what command does the CFwdALL button activate, when the call forward all is active?



    From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Sent: 22 February 2011 14:18
    To: cdicuser@developer.cisco.com
    Subject: New Message from Harry Pooni in Administration XML (AXL) - Administration XML Questions: RE: New Message from Stefan Schallmeiner in Administration XML (AXL) - Admi



    Harry Pooni has created a new message in the forum "Administration XML Questions":
    --------------------------------------------------------------
    Hi Stefan,



    Thanks for your help.



    Regards

    Harry



    From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
    Sent: 22 February 2011 12:04
    To: cdicuser@developer.cisco.com
    Subject: New Message from Stefan Schallmeiner in Administration XML (AXL) - Administration XML Questions: RE: Call Forward All Problem



    Stefan Schallmeiner has created a new message in the forum "Administration XML Questions":

    --------------------------------------------------------------
    Hi Stefan,

    There is no error message i get back the UUID which from my understanding is correct. I tried teh Directory Number UUID with no effect. I even tried setting the CallForwardAll object to null to see if that would work.

    Could an sql query do the job?

    Thanks
    Harry



    Hi Harry,

    if SQL is an option there's pretty sure an option, but I don't have any solution for this in my "repertoire" <http://mce_host/html/js/editor/@theme_images_path@/emoticons/happy.gif>

    If you want to take a look at the tables, just search for the "CucM Database Dictionary",... I think CFA should be in the numplan table,... (another guess)

    But if you want to run this more often or in similar other ways you should get the axl thing running, just a tip.


    In your Situation i'd try something like this:

    UpdateLineReq rq_update_line = new UpdateLineReq();
    rq_update_line.setUuid("{C21B970A-EE46-5363-538F-D57E9EDCA7B6}");

    XCallForwardInfo info = new XCallForwardInfo();
    info.setDestination("");

    rq_update_line.setCallForwardAll(info);
    stub.updateLine(rq_update_line);

    just copy in the uuid to be sure,... You can retrieve the working uuid right from you're browsers adress-field,... I'll attach a file which shows that in the case you don't alreade know,...




    --
    To respond to this post, please click the following link:

    <http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/3086964>

    or simply reply to this email.



    Harry Pooni
    Technical Consultant
    Dimension Data United Kingdom
    Tel: +44 12 5277 9542
    Mob: +44 78 2531 3430
    Fax: +44 12 5277 9010
    harry.pooni@eu.didata.com

    Dimension Data House, 2 Waterfront Business Park, Fleet Road, Fleet, Hampshire, GU51 3QT, United Kingdom
    http://www.dimensiondata.com/


    For further information about Dimension Data, please go to http://www.dimensiondata.com/

    P Before printing this email please think about the environment

    http://www.dimensiondata.com/pressuretest
    --
    To respond to this post, please click the following link:
    <http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/3088867>
    or simply reply to this email.

    Subject: RE: New Message from Stefan Schallmeiner in Administration XML (AXL) - Admi
    Replied by: William Hannah on 22-02-2011 12:27:24 PM
    Unsubscribe



    *Alex Hannah*, CCIE #25853, CCSI #32072

    President & CEO
    Hannah Technologies

    Toll Free (888)-731-4443 x1001
    SNR: (804) 302-7701
    *how many numbers do you
    have?<http://www.hannahtechnologies.com/single-number-reach>
    *
    alex@hannahtechnologies.com


    [download my v-card<http://www.hannahtechnologies.com/signature/ahannah.vcf>
    ]





    *From:* Cisco Developer Community Forums [mailto:
    cdicuser@developer.cisco.com]
    *Sent:* Tuesday, February 22, 2011 7:04 AM
    *To:* cdicuser@developer.cisco.com
    *Subject:* New Message from Stefan Schallmeiner in Administration XML (AXL)
    - Administration XML Questions: RE: Call Forward All Problem



    Stefan Schallmeiner has created a new message in the forum "Administration
    XML Questions":

    --------------------------------------------------------------
    Hi Stefan,

    There is no error message i get back the UUID which from my understanding is
    correct. I tried teh Directory Number UUID with no effect. I even tried
    setting the CallForwardAll object to null to see if that would work.

    Could an sql query do the job?

    Thanks
    Harry



    Hi Harry,

    if SQL is an option there's pretty sure an option, but I don't have any
    solution for this in my "repertoire"

    If you want to take a look at the tables, just search for the "CucM Database
    Dictionary",... I think CFA should be in the numplan table,... (another
    guess)

    But if you want to run this more often or in similar other ways you should
    get the axl thing running, just a tip.


    In your Situation i'd try something like this:

    UpdateLineReq rq_update_line = new UpdateLineReq();
    rq_update_line.setUuid("{C21B970A-EE46-5363-538F-D57E9EDCA7B6}");

    XCallForwardInfo info = new XCallForwardInfo();
    info.setDestination("");

    rq_update_line.setCallForwardAll(info);
    stub.updateLine(rq_update_line);

    just copy in the uuid to be sure,... You can retrieve the working uuid right
    from you're browsers adress-field,... I'll attach a file which shows that in
    the case you don't alreade know,...




    --
    To respond to this post, please click the following link:

    <
    http://developer.cisco.com/web/axl/forums/-/message_boards/view_message/3086964
    >

    or simply reply to this email.