Error - addTransPattern - PatternUrgency is always TRUE

Version 1
    This document was generated from CDN thread

    Created by: Matthias Diehl on 07-05-2009 12:29:46 PM
    Hello
     
    I have a issue to add Translation Pattern to our Callmanager 6.1.1 with AXL SOAP Interface.
    When i use the command addTransPattern i receive always a exception:
    -----
    PatternUrgency is always TRUE for Translation Pattern
    -----
    I change this PatternUrgency to true, false and leave out this Parameter. But i always get this exception.
     
    Can anyone help me?
     
    Regards
    Matthias

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: julien CHODLEWSKI on 07-05-2009 01:07:37 PM
    I had  this issue too .

    I put the element "patternUrgency" between" "pattern" and "description", I set it to "true" and it was ok.

    Try that !
     
    Julien
     

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: Matthias Diehl on 07-05-2009 01:21:59 PM
    Hello
     
    I added patternUrgency beetween pattern and description, but unfortunately this has not helped.
     
    <addTransPattern>
       123
       true
       <description>test</description>
       <usage>Translation</usage>
       <routePartitionName>test</routePartitionName>
       <blockEnable>false</blockEnable>
       <calledPartyTransformationMask></calledPartyTransformationMask>
       <callingPartyTransformationMask></callingPartyTransformationMask>
       <callingPartyPrefixDigits>00</callingPartyPrefixDigits>
       <useCallingPartyPhoneMask>Off</useCallingPartyPhoneMask>
       <dialPlanWizardGenId></dialPlanWizardGenId>
       <digitDiscardInstructionName>PreDot</digitDiscardInstructionName>
       <messageWaiting>Lamp Off</messageWaiting>
       <networkLocation>OnNet</networkLocation>
       
       <callingSearchSpaceName>internal</callingSearchSpaceName>
     </addTransPattern>
     
    Matthias
     

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: julien CHODLEWSKI on 07-05-2009 01:52:26 PM
    ok, but "prefixDigitsOut" is missing. This element have to be at the end after callingSearchSpaceName. It can be null, but it has to be here.
     
    The exception is always the same ? "PatternUrgency is always TRUE for Translation Pattern"

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: Matthias Diehl on 07-05-2009 02:03:59 PM
    strange
    i think this forum not shows all. i have added "prefixdigitOut" but the error is the same
     
    -----
    (System.Web.Services.Protocols.SoapException: PatternUrgency is always TRUE for Translation Pattern
    ------
    i attached a file with my addTransPattern request
     
     
     

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: Matthias Diehl on 08-05-2009 02:09:05 PM
    Hello Julien
     
    Can you post your configuration from addTransPattern. Perhaps i found any differences.
     
    Thanks
     
    Matthias

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: julien CHODLEWSKI on 08-05-2009 03:19:48 PM
    In fact I use php with soap extension, so I don't use hard-coded request. I give an array  to a function "__soapCall" and this one build the request.
     
    Here is the code :
     

    $newPattern=array('newPattern'=>array('pattern'=>'1234',
          'patternUrgency'=> 'true',
          'description' => 'test2',
          'usage'=>'Translation',
          'routePartitionName'=>'P_paris',
          'blockEnable'=>'false',
          'calledPartyTransformationMask'=> '0101010101',
          'callingPartyTransformationMask'=>'',
          'useCallingPartyPhoneMask' => 'Default',
          'dialPlanWizardGenId'=>'',
          'digitDiscardInstructionName'=>'PreDot',
          'messageWaiting'=>'Lamp Off',
          'networkLocation'=> 'OnNet',
          'callingSearchSpaceName'=>'',
          'prefixDigitsOut'=> ''));


    $result=$client->__soapCall("addTransPattern",array('AddTransPatternReq'=>$newPattern));
     
    and this code work well.
     
    I don't understand why your request not work, yet i put the same attribute, I think.

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: Matthias Diehl on 11-05-2009 11:06:17 AM
    Which Callmanager Version do you use?

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: julien CHODLEWSKI on 11-05-2009 01:46:17 PM
    Hi Matthias,
     
    I'm using the 6.0(1) and 6.1(2)

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: ALFREDO PRADO on 14-11-2009 04:55:59 PM
    Hi,
     
    I had  this issue too . I use the same code that Julien:
     
       $newPattern=array('newPattern'=>array('pattern'=>'1234',
        'patternUrgency'=> 'true',
        'description' => 'test2',
        'usage'=>'Translation',
        'routePartitionName'=>'P_BAT_TEST1',
        'blockEnable'=>'false',
        'calledPartyTransformationMask'=> '0101010101',
        'callingPartyTransformationMask'=>'',
        'useCallingPartyPhoneMask' => 'Default',
        'dialPlanWizardGenId'=>'',
        'digitDiscardInstructionName'=>'PreDot',
        'messageWaiting'=>'Lamp Off',
        'networkLocation'=> 'OnNet',
        'callingSearchSpaceName'=>'',
        'prefixDigitsOut'=> ''));


    $result=$client->addTransPattern($newPattern);
     
    but when see the logs in AXL Web service the SOAP request show the follow:
     
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.cisco.com/AXL/API/6.1">
    <SOAP-ENV:Body><ns1:addTransPattern>
    <newPattern><pattern>1234</pattern>
    <description>test2</description>
    <usage>Translation</usage>
    <routePartitionName>P_BAT_TEST1</routePartitionName>
    <blockEnable>true</blockEnable>
    <calledPartyTransformationMask>0101010101</calledPartyTransformationMask>
    <callingPartyTransformationMask></callingPartyTransformationMask>
    <useCallingPartyPhoneMask>Default</useCallingPartyPhoneMask>
    <callingSearchSpaceName></callingSearchSpaceName>
    </newPattern>
    </ns1:addTransPattern></SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
     
    For any strange reason, the PHP SOAP function not send "patternUrgency" field.
     
    I'm use Call Manager version 6.1.2.1000-13

    Subject: RE: Error - addTransPattern - PatternUrgency is always TRUE
    Replied by: ALFREDO PRADO on 15-11-2009 02:00:24 PM
    Hi:
     
       I'm investigate the problem and I see that PHP have problem with load AXLAPI.wsdl file, when I change the order some field in this file for example locationName in addPhone that is not recognize or send in SOAP request, when I change the order in definition, the request work. With this work in solution and found that problem is the version PHP, because I try the same code in follow PHP version:
     
    Linux debian 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux
    php -v
    PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 26 2009 22:16:23)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
     
    The version of above all params from the array are send with SOAP function request. All work fine.
     
    Linux odisea.n 2.6.16.38.xs3.2.0.531.3960 #2 SMP Sat Mar 24 22:03:09 UTC 2007 i686 GNU/Linux
     php -v
    PHP 5.2.0-8+etch13 (cli) (built: Oct  2 2008 08:26:18)
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
     
    The version of above not all params from the array are send with SOAP function request. For example:
     
       in addPhone ...... locationName, User Hold MOH Audio Source,Network Hold MOH Audio Source,etc not send with SOAP request.
     
       I hope help you with yours problem.
     
       Best Regards,
     
       Alfredo Prado