Header manipulation problem

I have a SIP trunk provider that requires me
1) to always use my account name in the "From" header, so I have to use header header rewriting to achieve this
2) to set the "P-Preferred-Identity" header to change the caller id (as From cannot be used due to point 1)
Now the header rewriting for 1) works fine, but 2) is bit more complicated, as I need to fetch the source number (ideally before it has been modified) and then use it in a new header line. (aka "copy contents from one header to another header in an outgoing SIP message")
From the "Conditional Header Manipulation of SIP Headers" document I would have assumed that the following works:
voice class sip-profiles 101
request INVITE peer-header sip From copy ".*<sip:(.*)@" u01
request INVITE sip-header P-Preferred-Identity add "P-Preferred-Identity: <sip:555123\[email protected]>"
But unfortunately it doesn't, "\u01" is being sent literally instead of the content:
P-Preferred-Identity: <sip:555123\[email protected]>
Any ideas? I'm running CUBE on a 2901ISR with IOS version 15.3(2)T
Edit: Not sure what the difference between sip-header and peer-header is in this context, but using
request INVITE sip-header From copy ".*<sip:(.*)@" u01 (instead of the peer-header line)
doesn't work either.

If the profile you configured is passing the "vairable" instead of  the actual content, there is something wrong, please look at the following docs for a better understanding of how the feature works:
http://www.cisco.com/en/US/docs/ios/voice/cube/configuration/guide/vb-gw-sipsip.html
http://www.cisco.com/en/US/docs/ios-xml/ios/voice/cube_sip/configuration/12-4t/voi-condl-header.pdf
http://www.cisco.com/en/US/docs/ios-xml/ios/voice/cube_sip/configuration/15-2mt/voi-condl-header.html
HTH
Jorge Armijo
Please remember to rate helpful responses and identify helpful or correct answers.

Similar Messages

  • Script commands for data header manipulation eg. HDLoad / HDSave / FileHDComment(n)

    I'm using the header manipulation commands extensively on DIAdem DAT files, these commands seems to not work with TDM files.
    What are the equivalent commands for manipulation the TDM header?

    Hi Sabcat,
    What I have done to get similar functionality is to register-load the data set and used the standard DIAdem variables such as ChnName, ChnComment to read off the attributes from the registered channels, instead of out of the TDM header.  File registration is available for TDM files and all other files which have a DataPlugin and is almost always instantaneous, because all it does is read the header info into the DataPortal-- not the data values themselves.  The command to programmatically register-load a data file is:
    Call DataFileLoad("FilePath", "TDM", "Register")
    Ask if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • SSRS 2012: Report Header PrintOnFirstPage-problem after report migration from SSRS 2008

    Hi ,
    I developed my report using VS 2008 IDE and the report header property "PrintOnFirstPage" is set to False.
    The content of the header are some textboxes and lines that should show only on page number > 1.
    This works fine in VS 2008 IDE in preview mode as well as with reports rendered by SSRS 2008 report server.
    Recently I migrate&convert the same report to SSRS 2012 I noticed a different rendering behaviour of my report.
    So in VS 2010 preview mode, the page headers content (textboxe etc.)  is not visible on first page but the headers space did not colapse as it does in VS 2008 IDE preview mode.
    I checked all the report properties but unable to find a solution to my problem.
    I was able to reprduce the same behaviour by creating a new report using VS2010 IDE.
    Any ideas are greatly appreciated
    Thanks
    Bodo

    Hi BodoHH,
    I have tested on my local enviorment and can't reproduce the issue, the issue can be caused by many factors, it can be caused by the properties setting and can also caused by the visual studio, Detais information below for your reference:
    As you mentioned that you have check all the report properties, please also check the tablix,Page Header,report body properties to see if the size are the same with that in the SSRS2008.
    Please open this rdl report in the report builder to see if the print layout is correct, if it works fine, the issue can be caused by the visual studio.
    Please also try to upload the rdl report to report manager to check the layout.
    Please also provide the snaphot of the layout in VS2010 to let us better analysis about the issue.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • MT100 Header Blocks problem

    Hello expert,
    I have a problem in MT100 generation.
    File is generated with the correct payment information but I don't have headr block i mean tags 01, 02, 03, 04, 05, 06 and 07.
    There is an option that i should set to print also header block?
    Thank you in advance.

    Thank you Gaurav.
    I checked all MF of all events. There is no tags 1,2..7. In the event 30, the MF creates tags 20 until 72.
    The bank sent me the file format MT100 expected. There are two blocks: header Block  (Tag from 1 to 7) and payment information  block  (Tag from 20 to 72). I have no problem with the payment  block is what generate SAP and i found those tags in event 30.
    by cons I do not know how to enable the generation of header block?
    1- This block could be generated by standard SAP ? What i must to set?
    2- Or i must use MF to add myself this header block? (Specific dev)
    Just for information, header block is like that:
    :01:  Refrence    --> YYMMDDNN when NN is the file number --> Mandatory for the bank
    :02: Total amount                                                                      --> Mandatory for the bank
    :03: No orders                                                                          --> Mandatory for the bank
    :04: Paying Bank --> SWIFT                                                     --> Mandatory for the bank
    :05: Ordering party --> Ordering party name and adress       --> Mandatory for the bank
    :06: User No --> User No at the paying bank                         -->optional
    :07: File name                                                                         -->optional
    Thank you very much for your help.

  • Time zone manipulation problem

    Hi!
    I want to manipulate date with respect to some customized formats. I'm done successfully but the only problem is in Time Zone representation and manipulation. I want to show time zone information like GMT+01:00 or �CEST/CST� but it is showing like �Central European Time�.
    The Sample Code
    ===============
      public String selectDateType(java.util.Calendar a_objDateTime, String a_strDateType){
          m_strDate = a_objDateTime.get(Calendar.DATE) < 10 ? "0"+a_objDateTime.get(Calendar.DATE) : ""+a_objDateTime.get(Calendar.DATE);
          m_strMonth = (a_objDateTime.get(Calendar.MONTH)+1) < 10 ? "0"+(a_objDateTime.get(Calendar.MONTH)+1) : ""+(a_objDateTime.get(Calendar.MONTH)+1);
          m_strYear = ""+a_objDateTime.get(Calendar.YEAR);
          m_strHour = a_objDateTime.get(Calendar.HOUR_OF_DAY) < 10 ? "0"+a_objDateTime.get(Calendar.HOUR_OF_DAY) : ""+a_objDateTime.get(Calendar.HOUR_OF_DAY);
          m_strMinute = a_objDateTime.get(Calendar.MINUTE) < 10 ? "0"+a_objDateTime.get(Calendar.MINUTE) : ""+a_objDateTime.get(Calendar.MINUTE);
          m_strSecond = a_objDateTime.get(Calendar.SECOND) < 10 ? "0"+a_objDateTime.get(Calendar.SECOND) : ""+a_objDateTime.get(Calendar.SECOND);
          if(a_strDateType.equalsIgnoreCase("SHORT")){
            m_strDateTime = m_strDate+"/"+m_strMonth+"/"+m_strYear;
            System.out.println("JAVA CALENDAR >> SHORT DATE..: " + m_strDateTime);
          else if(a_strDateType.equalsIgnoreCase("FULL")){
            Date now = Calendar.getInstance().getTime();
            DateFormat df = DateFormat.getDateInstance(DateFormat.FULL);
            m_strDateTime = df.format(now) +" "+m_strHour+":"+m_strMinute+
                            ":"+m_strSecond + " "+TimeZone.getDefault().getDisplayName();
            System.out.println("JAVA CALENDAR >> FULL DATE..: " + m_strDateTime);
          else if(a_strDateType.equalsIgnoreCase("US")){
                m_strDateTime = m_strMonth+"/"+m_strDate+"/"+m_strYear+" "+
                m_strHour+":"+m_strMinute+":"+m_strSecond + " "+
                TimeZone.getDefault().getDisplayName();
                System.out.println("JAVA CALENDAR >> US DATE..: " + m_strDateTime);
          else if(a_strDateType.equalsIgnoreCase("EU")){
                m_strDateTime = m_strDate+"/"+m_strMonth+"/"+m_strYear+" "+
                m_strHour+":"+m_strMinute+":"+m_strSecond + " "+
                TimeZone.getDefault().getDisplayName();
                System.out.println("JAVA CALENDAR >> EU DATE..: " + m_strDateTime);
          else{
            Date now = Calendar.getInstance().getTime();
            DateFormat df = DateFormat.getDateInstance(DateFormat.FULL);
            m_strDateTime = df.format(now) +" "+m_strHour+":"+m_strMinute+
                            ":"+m_strSecond + " "+TimeZone.getDefault().getDisplayName();
            System.out.println("JAVA CALENDAR >> FULL DATE..: " + m_strDateTime);
          return m_strDateTime;
      }The Sample Output
    ================
    JAVA CALENDAR >> FULL DATE..: Thursday, May 17, 2007 14:02:59 Central European Time
    JAVA CALENDAR >> SHORT DATE..: 17/05/2007
    JAVA CALENDAR >> EU DATE..: 17/05/2007 14:02:59 Central European Time
    JAVA CALENDAR >> US DATE..: 05/17/2007 14:02:59 Central European Time
    JAVA CALENDAR >> FULL DATE..: Thursday, May 17, 2007 14:02:59 Central European Time

    Thanx Dear !
    It resolve my problem.
    The Sample Code
    ===============
    String pattern = "EEEEEEEEEEEE, MMMMMMMMMMMM d, yyyy H:mm:ss z";
    SimpleDateFormat date_format  = new SimpleDateFormat(pattern);
    m_strDateTime = date_format.format(now);The Sample Output
    ================
    In case of day light saving is off
    JAVA CALENDAR >> FULL DATE..: Thursday, May 17, 2007 14:11:15 GMT+01:00
    In case of day light saving is on
    JAVA CALENDAR >> FULL DATE..: Thursday, May 17, 2007 15:12:04 CESTboth outputs are acceptable. Thanx again for good guidance.

  • HTTP header size problem

    We have been using weblogic to serve the jnlp for a while now (there is a servlet that generates jnlp and sends to client) without any problems. Yesterday the following error occurred for the first time and the server stopped working. Does anyone have a clue as to in which situation can the header size exceed this limit? After restarting the server, it started working properly again.
    weblogic.socket.MaxMessageSizeExceededException: [Incoming HTTP request headers of size 4129 bytes  exceeds the configured maximum of 4096 bytes]
    at weblogic.socket.MuxableSocketHTTP.incrementBufferOffset(MuxableSocketHTTP.java:111)
    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:245)
    Thanks.

    My first reaction was that if you are using version protocol, and if you had many versions of some resources in the cache, maybe the request from java web start kept growing with each version.
    http://xxx.com/yyy/zzz.jar version="1.9"&current_version="1.1"&current_version="1.2"&current_version="1.3"...
    but in that case can't see how restarting the server would help.
    /Dietz

  • HTTP header insertion problem with ACE

    Hi
    I try to configure the HTTP header insertion feature based on the action-list type modify http. Unfortunately it does not works.
    The config looks like that
    action-list type modify http TEST
    header insert both Host header-value test:test.
    I added this action-list to the correct policy-map.
    When I checked the snifer output on the server side, there is no test value in the HTTP header.
    I test the same feature based on the "insert-http" command in the policy-map and this one works.
    Could anybody help me with this problem?
    Thank you in advance
    Regards
    Lucas

    Hi Lukas,
    Add a new parameter-map named PRMAP_PERST_REBLNC and add this to the policy map using command appl-parameter http advanced-options PRMAP_PERST_REBLNC as shown below:
    action-list type modify http test-insert
    header insert both My-Header header-value test
    header insert both SSL header-value TRUE
    policy-map type loadbalance http first-match HtppInsert
    class class-default
    serverfarm linux1-80
    action test-insert
    policy-map multi-match SLB1
    class VIP-122-80
    loadbalance vip inservice
    loadbalance policy HtppInsert
    loadbalance vip icmp-reply active
    loadbalance vip advertise active
    loadbalance vip advertise metric 1
    connection advanced-options SetTos
    appl-parameter http advanced-options PRMAP_PERST_REBLNC
    parameter-map type http PRMAP_PERST_REBLNC
    persistence-rebalance
    Hope this will make all the packets are inserted with the http header not the first one only.
    If it works then plz inform.
    Kind Regards.
    Sachin Garg

  • Src IP HTTP header insertion problem

    I have configured a vserver to loadbalance to 2 proxy servers over TCP port 8080.
    I use a policy to insert the source ip address of the client workstation to be
    inserted in the HTTP header.
    We use the same vserver to loadbalance HTTPS traffix.
    Appearantly the CSM also tries to insert the ip address when HTTPS traffic
    is passing this vserver.
    Is this a correct beheavior? How can I solve this one?
    Thanks!
    Regards Wim

    Actually mozilla lets you specify different ports for proxy http and proxy https.
    Anyway, are the servers behing your CSM proxy servers ?
    Do you have 'persistent rebalance" configured ?
    If so, could you try to turn do 'no persistent rebalance' and see if that solves your problem.
    Normally, https connection via a proxy are still done with HTTP connection with the request "CONNECT x.x.x.x:443" and the CSM should be able to inset the requested info.
    But we need to avoid the CSM to inspect further packets as this would be ssl traffic -> so disable peristent rebalance.
    Just an idea.
    Regards,
    Gilles.

  • Download files & header/footer problem

    Hello
    I'm having two problems on my application.
    I've created a table to save the files from a file browser following the tutorial.
    Everything is working fine except the download option. When I try to download the file I always get this message: "Forbidden
    The requested operation is not allowed".
    I've created the download_my_file procedure, executed the grant and changed the download link to use the new procedure.
    My other problem is with reports, I'm trying to make a template to my print reports, but header and footer aren't saved. DO I need to make something different for I can use header and footer?
    Edited by: Ownr on 21/Nov/2008 13:14

    Hi,
    Regarding your first question: Are you using OracleXE oder 11g with the PL/SQL Embedded Gateway (no Apache)?
    Then here might be a solution:
    http://daust.blogspot.com/2006/04/xe-calling-stored-procedures.html
    Best regards
    -Carsten

  • PanelBox light header icon problem

    I use icons in my panelBox component. Icons are used in panelBox header as well. The problem is that it doesn't show. Can this be a problem with icon size? or smth? please help..

    Hi,
    if you try and set these on
    .AFPanelBox:alias
    which works on all - header and content - the same. Does it still not show images? If no, what is the size of your icon and how do you access the icons?
    Fank

  • Page header location problem

    Hello,
    I'm a website application developer and I had a complaint from one of our customers that he was having a problem and when I tested it out I noticed that in Safari that when we use this code here to send a user with missing info in our db to the page to enter the missing details, it starts an endless loop..
    header("Location: ?s=mod_user&i=1&note=wb");
    this is using PHP btw, but what happens is, it keeps appending "?s=mod_user&i=1&note=wb" over nad over and over till Safari dies.. Strange thing is, that we dont have this problem with any other browsers and if we add a prepending / it fixes the problem, seems the browser has issues with urls that are relative and not absolute. Just figured I'd point this out so you can fix it in the next release.. btw, nice looking browser, I'm an IE power user myself but I'd most certainly use this browser, its clean and fast
    - Cecil

    Thanks for the reply Shwu. I checked and that is not the problem.
    I am in process of resolving this.
    Regards,
    Kanu
    Edited by: Kanupathak on Mar 9, 2012 4:14 PM

  • DG Header renderer problem

    Hi, I've encountered a problem with datagrid header renderer.
    I have custom header renderer based on let's say - Label, or
    something else, doesn't matter. Now when I run the application,
    everything is OK. Problem occuress, when I try to click on this
    header to sort data. Program runs into a loop and CPU is full
    loaded. I've tried to debug and I've found out, that my custom item
    renderer constructor (CustomHeaderRenderer ) is called all the time
    in a loop. Don't understand why... when I use standard header
    renderer, everything's ok.
    This is the whole code:
    package myClasses
    import mx.controls.Label;
    public class CustomHeaderRenderer extends Label
    public function CustomHeaderRenderer()
    this.text = &quot;Some Text&quot;;
    Does anybody knows, where could be a problem ?? thanks

    Here is the sample code I tried. I tried it using Flex 2.0.1
    and Flex 3. I am unable to reprodue your bug.
    quote:
    &lt;?xml version=&quot;1.0&quot;
    encoding=&quot;utf-8&quot;?&gt;
    &lt;mx:Application xmlns:mx=&quot;
    http://www.adobe.com/2006/mxml&quot;
    layout=&quot;absolute&quot;&gt;
    &lt;mx:Script&gt;
    &lt;![CDATA[
    private var input:Array =
    { x:100, y:10, z:11 },
    { x:20, y:12, z:14 },
    { x:10, y:14, z:18 },
    { x:10, y:14, z:18 }
    ]]&gt;
    &lt;/mx:Script&gt;
    &lt;mx:DataGrid
    dataProvider=&quot;{input}&quot;&gt;
    &lt;mx:columns&gt;
    &lt;mx:DataGridColumn dataField=&quot;x&quot;
    headerRenderer=&quot;CustomHeader&quot;
    headerText=&quot;Sample&quot; /&gt;
    &lt;mx:DataGridColumn dataField=&quot;y&quot;
    headerRenderer=&quot;CustomHeader&quot;
    headerText=&quot;Sample&quot; /&gt;
    &lt;mx:DataGridColumn dataField=&quot;z&quot;
    headerRenderer=&quot;CustomHeader&quot;
    headerText=&quot;Sample&quot; /&gt;
    &lt;/mx:columns&gt;
    &lt;/mx:DataGrid&gt;
    &lt;/mx:Application&gt;
    quote:
    package
    import mx.controls.Label;
    public class CustomHeader extends Label
    public function CustomHeader()
    super();
    this.text = &quot;Some text&quot;;

  • Header displaying problem

    Hello. I'm meeting a rather unpleasant problem on my PowerMac G5 with Mac OS X 10.4.6 at work.
    Despite the fact I have not changed anything to my configuration nor installed anything new on this Mac, Mail just started today displaying some things differently, in a weird way. Here is a screen capture to let you see what it is like.
    NB: I blurred some stuff for privacy reasons, please pay attention to how the header of the read mail is diplayed.
    Can anyone help me to make it work back the way it used to?
    Power Mac G5 at work, iMac Core Duo at home   Mac OS X (10.4.6)  

    Hello Heliks.
    Despite the fact I have not changed anything to my configuration
    Yes, you have, you've been playing with fonts too much:
    Font Management in Mac OS X Tiger and Panther

  • Header Authorization problem

    Hello,
    anyway to overcome this error?
    The HTTP request header Authorization cannot be set via
    ActionScript
    I get it when using twitter libs:
    http://twitter.com/help/api
    (both as2 and as3).
    I heard it is a problem of 9.0.115, which I am using now.
    Any workaroud?
    -c.

    Anthony and Irfan,
    Thanks so much for the responses. I may have been a bit unclear in my original question. My intention is to do the following:
    1) Users go to login.html and enter username and password
    2) Servlet reads the variable in from the form and validates the user base on his/her credentials.
    3) If user is authentic, continue to protected resource. If not back to login to try again.
    4) As the user navigates through the protected resource pages, the authentication servlet checks every time to validate the user. I want to maintain the username and password in the http Authenticate header in the same way that the browser popup does, so that the servlet can use the first chunk of code from my first post to validate users.
    In my searching, I have found others who have used URLConnection to do things similar to what I am trying to do, so I will give it a try.
    Irfan, I am unfamiliar with the URLConnection class, can you give me any help on the code I need?
    Again thanks all for the useful responses. Others are most welcome!
    Jesse

  • Header text problem

    Hi,
    Im trying to display the header text of PO order in the last page of my form. But the text may be unlimited, so in that case i have kept the text-element printing that text in the main window of the last page instead of keeping it in a separate window.
    Now, since its in main window the data is getting printed in other pages also (data is getting overlapped). I tried protect,endprotect but still the problem persists. I also tried to keep the other window as the main window. Its not printing the text.
    Any suggestions?

    HI Sudharsana,
    Call this text element in the driver program...
    at last
         call function 'WRITE_FORM'
           exporting
           element                          = 'PO_TEXT'
    Regards,
    Sravanthi

Maybe you are looking for

  • No audio slideshow on output to TV from nano

    I have the Apple Composite AV Cable which I'm using to output from my new Nano (with video) to my TV. For movies it plays the video and sound, but for slideshows I can only see the video (no audio portion) even though I've selected a playlist in the

  • Question about variables in TEXTCOLUMNS !!!HELP

    Hi friends, can somebody tell me if it is possible to put varaibles in textcolumns(VARCHAR2) like 'Das Fondsvolumen des Fonds betrdgt <Fondsvolumen>' (Fondsvolumen ist the variable--> which is a column of another table in the DB) into the database wh

  • Centering page and photo optimizing

    HI...I'm a newbie here with yet another question. I created an intitial index page, but it does not come out centered when you look at it online. How do i do this. Also, someone suggested I optimize the photo ("you might want to optimise the large Wa

  • Physical Inventory Sap script to Smart Form conversion

    Hi to all experts, there is standard print program RM07IDRU (tcode mi21) .This print is assigned to customized sapscript (zmm_phys_inv) for printing . Now the problem is that we have print barcode using this script on a different printer .For scripts

  • I just upgraded LR 5 to LR6 and LR6 is crashing open opening every time

    It says adobe lightroom has stopped working every time i try to open up LR 6.  My LR 5 is still working correctly.  What do I do and am I the only one that this is happening to?