Put javascript in the region.

Hello

This application is in the apex 5.0.

I loading DA running Javascript on the page code. This code draws something. But I don't want to draw on my regions. I want to put this picture in one of my areas.


How can I do? This is what it looks like currently. I have a 'ghost' on the left and the region with some info on the right. http://i.imgur.com/UMn2WWu.jpg

I want to make it look like this http://blog.theapexfreelancer.com/wp-content/uploads/2011/08/body-chart-example1.png

Para wrote:

It's possible to "join" somehow this circle (example below using raphael.js) for the region of the apex.

I wish this circle was still drawn in the center of a region (there is little region on one page). How can I change the code so that it draws in the region?

Whats happening is essentially. On appeal from the Im header HTML

and I have a load DA than excecutes the code below.

var paper = Raphael (10, 50, 320, 200);

Did you read the documentation of Raphael? There are several methods of constructor for the creation of the canvas. You use above creates the Web from the browser window. To create the drawing within a region of the APEX, you use the method that includes a container object to the canvas as a parameter, with the body of the area element in the container. To do this, you must specify a static region ID for the region of container and use it to recover the body of region as a DOM object element and pass it to the constructor of Raphael:

var canvasRegionBody = $('#static-region-id .t-Region-body')[0]; // .t-Region-body selector is theme-specific: inspect region code or template definition to determine region body element.
var paper = Raphael(canvasRegionBody, 320, 200);
var circle = paper.circle(50, 40, 10);
circle.attr("fill", "#f00");
circle.attr("stroke", "#fff");

Tags: Database

Similar Questions

  • Use of javascript within the page fragment

    Im trying to use javascript code within a fragment of a page with the tag

    AF:resource

    But the second time the page reloads I got this error: "ReferenceError: works is undefined"

    <af:resource type="javascript">
          function funciona() {
              alert(123);
          }
    </af:resource>
    

    IM using JDeveloper 12 c

    Check the 'witch hunt during the use of JavaScript in the regions of the ADF' in this document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2012-otn-harvest-1571998.pdf

    Timo

  • JavaScript to hide the region

    I want to hide an entire region based on JavaScript. I can't use the conditional display of a region because it is at the request and cannot submit the page to check the value. I can't hide specific values, but the labels remain and the border of the region remains. Here's what I have so far.


    OnChange = "Show_On_Selectlist_Value('P15_SIRT_DCSN_ID','6'); »


    < script >
    function Show_On_Selectlist_Value (CWnd, pValue)
    {
    var rv is $x (CWnd) .value;.

    If (rv is pValue)
    {
    html_ShowElement ('P15_RR_COMMENTS');
    html_ShowElement ('P15_RR_USER');
    html_ShowElement ('P15_RR_DATE');
    }
    on the other
    {
    html_HideElement ('P15_RR_COMMENTS');
    html_HideElement ('P15_RR_USER');
    html_HideElement ('P15_RR_DATE');
    }
    }
    < /script >

    For the region that you want to hide, provide a value for the static attribute "ID". You can then use the javascript functions integrated '$x_Hide (NDP) and $x_Show (NDP)' to show or hide this region.
    example of

    $x_Hide('REGION_STATIC_ID') 
    

    http://download.Oracle.com/docs/CD/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDDAGFE

    CITY

  • How to put a link to the upper right of the region?

    Hi, gurus:

    I have a question of the reorganization of the links on a region. We have two links that need to show on the upper right corner of the region, and they will show depending on their values in the database (by the business logic that do not show at the same time). If we use the link in the column of the vertical report, we cannot do show on the position of the upper right. If we use the sub-region, it goes inside the region, could someone give us a clue?

    Thank you

    Sam

    lxiscas wrote:

    I have a question of the reorganization of the links on a region. We have two links that need to show on the upper right corner of the region, and they will show depending on their values in the database (by the business logic that do not show at the same time).

    As usual, the answer is "it depends." Where exactly is "at the top right of the region"? Depends on model and the content area. What is the logic determines that is displayed? When should it be run? I can think of several ways to achieve this: a subregion of the list; only display items; hidden, items referred to as chains of substitution; or shortcuts. Unable to determine which is appropriate given the information provided.

    As I said, you will answer your questions much faster if you have spent time creating examples on apex.oracle.com rather than posting long descriptions and pieces of code, that we cannot use it on the forum...

    If we use the link in the column of the vertical report, we cannot do show on the position of the upper right.

    You probably pourrait, using the right combination of model report, CSS and jQuery, but there are a lot of the best options available.

    If we use the sub-region, it goes inside the region

    There is a very simple solution to this: use the two subregions, with links in the first, and the contents of the box main in the second and the models of the region without titles or borders.

  • Dynamic action to refresh the region-&gt; see the message to user

    Hello

    I have a page in the apex 4.2.2.

    In this page, I have an interactive report and a filter sets, users can choose.

    When users choose one of the filters, I implemented a dynamic action to refresh the interactive report region, so it should refresh the data being shown without submitting it.

    So far so good... but... when the region is refreshing there is point 'charge of circle' which displays and allows the user to know he is done on the page. But this icon is not so obvious.

    What I want is to add a message, for example to display a region, which showed a message like "being the updating of the report, please wait" (something like that).

    I tried to insert in my dynamic action, as 1st action, to SHOW this area and as the last action to HIDE. But nothing is done, the region is never shown.

    How can I perform this task? All I need is to be able to display a message, for the duration of the dynamic action, to inform the user that he or she must wait until the task is completed.

    All real common actions have been reported to "wait for result", if I didn't get this wrong, it means that he expects the previous real action remaining to be done, in order to trigger the next... This should show the region and then hide it, but it does not work.

    Can someone help me with this? Maybe give an idea?

    Kind regards.

    You can actually go several routes with a solution for this. A refresh of the IR will start forward and after updating the events that you can hang on to dynamic actions or jQuery, so you can show something at the start of the update and then hide it again. And since you can do all this in jQuery you could easily hold it in a javascript file and attach it to every page of the ir. This is probably the cleanest solution and more independable.

    Another way is to use the already existing waiting icon and play with his presentation a little. You know, that you are talking about loading icon. You can change this to something much better with minimal effort!

    Example:

    Run when the page loads, to execute javascript code:

    $("#apexir_LOADER").append("
    Please wait. Refreshing the data.
    ");

    Add this css to inline css in the page:

    span#apexir_LOADER {
    display: block;
    width: 150px;
    text-align: center;
    background-color: white;
    border-style: solid;
    border-radius: 5px;
    border-width: 2px;
    top: 20%;
    }
    

    It'll make a little white box with black borders rounded around the loading icon and put a text below.

    You can get the html code to add a bit more generic, or you can raise some html of the page if necessary. You can put it in a dynamic action on the load, put in a js file, or whatever. The css can be put in a page template or a css file.

    It's only less independable hanging in front or after updating because we are taking advantage of the system in place, which means that maybe he could change in the future - but this is hardly on the same scale as the 'hacking' the ir for example javascript.

  • Dynamic action on the region

    Hello

    Request Express 4.1.0.00.32

    I have a report region on a page that is conditionaly displayed depending on the value of an element of page Pn_ITEM = "HIDE".

    I have dynamic stock running on the page that fill a collection and update the report without the need to submit the page. However, I need to show the report somehow when the collection contains at least one of the members present.

    I tried the following:

    1st real action running pl/sql that adds a record / member of a collection, then a 2nd action sets the value to a page Pn_ITEM = true 'SHOW' action item and a 3rd that should show the region based on the value of the real action 2.

    My collection has an added member. The value 'SHOW' is applied to my article on Pn_ITEM page by the dynamic action but the region of report I want now displayed is not displayed. Obviously if the page is submitted, the report will now be shown however I can't send the page at this stage that's why I need to do this dynamicaly or through javascript and on the application process.

    Any ideas how to get my region report to display once the collection has at least one member without submitting the page?

    Thanks in advance.

    Remove the requirement for the view from the region. You don't want this here since it completely stops rendering region if the condition is not fullfilled to the render time. You want that he made, but not displayed.

    Add css to the region (inline, class):

    style="display: none;"
    

    Add real action that will do a refresh on your area (component - refresh, select your report as an affected item region).

    Now, either:
    Add a real action of type run javascript. Since you can not put conditions on the real actions, we will test the condition in javascript.
    Choose one:

    if($v("Pn_ITEM")=='SHOW'){
    //if you want to target the region to be shown by an ID (static id?)
    $("#region_id").show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if the triggering element would be the region to be shown
    $(this.triggeringElement).show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if you'd want multiple affected elements to be shown at once drop the [0]
    $(this.affectedElements[0]).show();
    };
    

    Create a new dynamic action that has the same conditions of release as your other dynamic action.
    Specify a when condition:

    $v("Pn_ITEM")=='SHOW'
    

    Create a real "Show" type action to show the region.

    Final result should be your dynamic action creating an item in the collection, an update of the report based on the item (but still not represented) and finally a show in the region.

    Remember that stocks will also fire on page load (so don't forget to check the box on the actions of true), otherwise the region does not appear initially.
    I would say that the item is probably not necessary, but depends on any other logic, you might have on your page and possibly interacts with it.

  • Reports: Javascript in the area on foot of page with links in cells

    Hi all!
    I need to put hyperlinks in my APEX (4.0) report and I read there is no direct option for IT... that's how I thought to do, so...


    My reports contains two columns:
    DEVICE and HEALTH.
    The first contains a string with the name of the device and the second is a number that is expected as in percent.

    I need channels in the DEVICE columns are also links to another APEX page where I have to generate a graph of "dynamic".


    That is: we can intend to a report that the DEVICE is '000 x 0' and line '30 HEALTH.
    APEX generate HTML code like this:

    < headers td = 'DEVICE' class = 'data' > 000 x 0 < table > < headers td = 'HEALTH' class = 'data' > < table > 30

    But I also need '000 x 0' to be a link to: "f?" p = 104:4:2205607043123699:THE_DEVICE:000 x 0 "."
    To say: the fourth page of my site of APEX, where "THE_DEVICE" is an APPLICATION_ITEM and contains the name of the device clicked.


    First thing I tried is to re - write pl/sql query to automatically returns the HTML for the link, such as:

    Select
    ''|| DEVICE of |'' as a PERIPHERAL,
    trunc (HEALTH, 2) than HEALTH
    of [...]

    But the APEX convert special characters to the & x; values:
    & amp; Lt; a href = & amp; quot; f? p = 104:4:2205607043123699:THE_DEVICE:000 & amp; quot; target = & amp; quot; _self & amp; quot; & amp; quot; & amp; GT; 000 & amp; Lt; /a & amp; GT;


    Second thing, I thought is to give a Unique ID to the region of the report ("ALARM_DEVICES_REG") and try to change this text dynamically by adding JavaScript to the footer area.

    I checked and found in this forum a JavaScript suggested to someone who has had a similar problem to mine, then I tried to adapt to my situation.
    The fact is that my JavaScript in the footer area does not seem to work at all! Or a simple document.write ("bye!"); COMAND!
    How possible?

    The JavaScript code, I tried to create could also contains errors, and it is the following:


    < script type = "text/javascript" >
    var y = document.getElementById('report_ALARM_DEVICES_REG')
    var x = y.getElementsByTagName ('TD');
    var s;
    If (x)
    {
    for (var i = 0; i < x.length; i ++)
    {
    s = x.item (i);
    If (s.GetAttribute ('headers') == 'DEVICE')
    {
    s.Data = replaceHtmlEntites (s.data);
    }
    }
    }
    < /script >

    I noticed the innerTable for reports a "report_ALARM_DEVICES_REG" id area (while the outside has "ALARM_DEVICES_REG") so I used to be more selective.

    replaceHtmlEntites is a function which should bring the special character of "& x; ' values and it is the following (I put it in"Function and Variable overall statement"field of the APEX of the State page):

    var replaceHtmlEntites =)
    function() {}
    var translate_re = "/ & (nbsp |)» amp | quot | Lt | GT); / g » ;
    definition of var = {}
    "nbsp": "",
    'amp': '& ',.
    "quot ': ' \ ',"
    "lt": ".."
    'gt': ' > '.
    };
    function (s) {}
    Return (SS. Replace (translate_re, {function (match, entity)
    back translation [entity];
    }) );
    }
    })();


    Shouldn't this work? And if not, why?
    Thanks to you all!

    You should be able to edit the column in the developer and scroll up to 'Column link' and use it. Tried not to who? Or he does not satisfy your needs?

  • Format of the region of the art disappeared in the iOS 10

    There used to be a setting under general-> language & region-> region Formats: Advanced where I could put according to the language in which a date, time and number of currency should be displayed. This setting has disappeared and will allow me more English as a language main iOS have yet show dates, numbers, time, and local currency according to my French Canadian criteria (i.e. international standards).

    For example, I get:

    Tuesday, September 13, 2016 instead of Tuesday, September 13, 2016

    $1 instead of $ 1 234,56 234,56

    4,567.89 instead of 4 567,89

    I was able to get both is 24 hour format under the Date & time pane, but since the update to iOS 10, we can define more formats on one language other than the iPhone's main language as the latest versions of authorized iOS. Why!

    No doubt Apple forget it or have chosen to abandon it. Really a terrible decision as I had used for years to have my tongue of device in English language, region in Dutch und under advanced as language also Dutch. If Ha d had the days of week and months in Dutch.

    Aldo read these ar MacRumors thread:

    http://forums.MacRumors.com/threads/ios10-no-longer-able-to-dissociate-region-fo format language-os - language.1995313.

    http://forums.MacRumors.com/threads/iOS-10-regional-settings.1987621/

  • Equim M40x: DVD player will not change the region even with 1 change remaining

    I have a Toshiba Equim M40x with a carpet * a DVD - Ram drive 830 s. My children recently tried to play a region 2 dvd and it failed with the message the DVD player is set in a different region.

    When I went into Device Manager to change the region (it was set to 1), it showed that I had a chance to change.
    However, when I tried to change it, I received an error message: "unable to update region setting. Please make sure the drive contains a region 2 media and you have the privilege of the administration. »

    I tried to put a region 2 dvd in the drive and I have the privilege of the administration and it still does not work.
    I then went looking for firmware free region for this disc, and of course, it does not exist.

    Help!

    Hello

    It of not possible to unlock the DVD player on a legal way.
    Of course, I found many sites that suggest that it of possible to unlock the firmware flash drive.
    But believe me; It is not desirable and very risky!
    You may damage the disc and then you can not read or burn CD or DVD media!

    I assume that you have already changed the region 5 times code. In such cases, it s already locked.

  • How can I change the region on the optiarc AD-5560

    I would like to know how to get to the place to change the region on an optiarc AD-5560 has DVD + RW.    Apparently a few months ago I received a software update from Microsoft on 4 different computers at home. I took a local of so-called expert to get the computer to recognize the dvd drive.  Fixed it.  The display was not the same since I came back.  I tried to get the other computers to recognize on them dvd players since then. Today I tried to fix the problem on another computer and anyway I'm going on a screen so that I was in Device Manager which allowed me to see the region that did it has been configured for. There was no region are entrusted to him. I took a chance and put the region 1 for the United States and the computer has finally acknowledged the dvd player.  I tried to fix the same problem on the laptop that I use now and have been unable to find the place to check the region assigned to the dvd drive and fix it.

    See this article if this can help:

    How to change DVD region? How to make your DVD player region free?
    http://www.gromkov.com/FAQ/faq2004-0063.html

  • Change the region on a C3180 printer

    Hello!

    I just moved to France with my beloved C3180 printer and need to change the region on this matter to take printer cartridges HP French... but support HP on the phone tells me because my printer is 6 years old, it is obsolete and that they do not give me area at the entrance codes.

    I can't believe! It is a great printer, that I use a LOT (like the journos) and I am very happy with and you won't have to buy a new (which obviously won't HP)... I already changed the region formerly of HK to the Japan (assistance telephone Japanese was beautiful and very useful). Can someone give me the codes of the Japan to Europe?

    Thank you very much!!!

    Update after receipt of oranginasanguin

    I called them today, I don't know what you tell them but I transferred to technical support, where a man sent me to buy new cartridges French and out my Japanese those and then when I called to say I, another man told me to put them in and then when I did he put me on hold and then came back and told me he would send me a new printer C1380 the next week!

    It was a little weird... but in any case, thank you very much for your help, I could not have resolved the situation without your help in this climbing...

    While I was doing this, I realized every PC in the House was HP, and reminded me that I chose this brand because it is one that I trust for its longevity and reliability.

    Thank you very much

    Best regards

    oranginasanguin

    Hi oranginasanguin,

    I am pleased to hear that the problem has been resolved. Have a wonderful evening.

  • When typing password, cursor does not move & nothing is displayed also cannot get to any other control panel or in the region

    Original title: password

    I have Win7

    I know that my password

    My computer starts up & goes to the screen where I put in password.

    I type password but the cursor does not move and nothing is displayed.

    I can't go to any other control panel or in the region

    Help, please

    try taking your laptop battery, if it is a desktop computer, unplug it, for some reason, it worked for me

  • I put everything on the English bit still some sceens are in Spanish

    Original title: I live in nicaragua, but I am an English speaking American.  I have a few screens that show in English and Spanish.  I put everything on the English bit still some sceens are in Spanish... Help

    I live in nicaragua but am American... I want that all screens in English and have changed the English although I have still a few screens in Spanish

    If a Spanish version of Windows has been installed, you will not be able to force all to English. An English regional setting will work for certain purposes, but not all.

    In Windows 7 Ultimate or Enterprise only, it is possible to completely change the language with a different language pack.

    Windows 7 language packs are available for computers that are running Windows 7 ultimate or Windows 7 Enterprise
    http://support.Microsoft.com/kb/972813?WA=wsignin1.0

  • Can you change the regional settings of the system via a shortcut?

    I often have to change local to my system (settings called 'Format' and 'Place' in the "Region and language" applet in the control panel) between German and English.

    To speed up this tedious process and make a simple click, I want to define me two 'links' or shortcuts that I can put on the desk, so that I can just click on those to adjust these settings.

    Is it possible, i.e. is it a console command or ability to change which corresponds to changes made via the control panel applet? Or an order let PowerShell (s) that could be used in a short script that can then be triggered via the desktop shortcuts?

    M.

    Hello

    This problem would be better suited in the MSDN forums.

    Please visit the link below to find a community that will provide the support you want.

    http://social.msdn.Microsoft.com/forums/en-us/categories

    Thank you.

  • Preference out codec based on the region

    Hi all

    We have a CUCM cluster, connected to a CUBE connected to the ISP. All circuits are SIP:

    CUCM - SIP SIP-CUBE - RTC.

    The connection to the PSTN is centralized, but there are several offices. Through the region settings, all local traffic is set to G.711, but all WAN traffic is G.729, with the exception of faxes. The provider also supports G.711 and G.729 codecs. On incoming calls, apply the parameters of region, and most of the calls come as G.729, except those in the pool unit Faxes, which is connected to the region of faxes. The connection to the PSTN is also suitable for the region of the phone setting, so no transcoding occurs.

    The outgoing however, we see that the connection to the PSTN is all that we put first in the class of codec, and if necessary, transcoding is done on the bridge. Is it possible negotiate the codec out according to the region of the phone settings?

    We have now solved by adding a prefix to the number composed and corresponding to a different dial-peer for faxes, but I was wondering if it is possible otherwise.

    Thanks in advance,

    Tom

    Tom after more research, I think I finally found how codecs are selected...

    +++ Inbound call +++
    Region between phone and cube is configured to use G711
    inbound and outbound dial-peer configured to use the codec class voice with as prefered codec g729

    +++ Cube receives invite to ITSPS all supported codecs and early offer +++

    Received:
    GUEST sip:[email protected]/ * /: SIP-5060/2.0
    Via: SIP/2.0/UDP 192.168.50.49:5070; branch = z9hG4bKeao3hl307oi03u4716b0.1
    From:; tag = 451687893-1338998863036-
    To: 'codec test'[email protected] / * />
    Call ID: [email protected] / * /
    CSeq: INVITATION 558275167
    Contact:
    Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, PRACK, CONSULT, INFORM
    Accept: multipart/mixed, application/media_control + xml, application/sdp
    Support:
    Max-Forwards: 69
    Content-Type: application/sdp
    Content-Length: 207

    v = 0
    o = BroadWorks 161384816 1 IN IP4 192.168.50.100
    s = -.
    c = IN IP4 192.168.50.100
    t = 0 0
    m = audio 15382 RTP / AVP-18 0 8 101
    a rtpmap:101 telephone-event/8000 =
    a = fmtp:101 0-15
    a = ptime:20
    a = fmtp:18 annex b = No.

    +++ CUBE send invite to cucm with early supply and codecs on voice-class codec macthed +++

    Envoy:
    GUEST sip:[email protected]/ * /: SIP-5060/2.0
    Via: SIP/2.0/TCP 172.16.5.10:5060; branch = z9hG4bK7954A198F
    Remote-Party-ID:; part = call; screen = no; intimacy = off
    From:; tag = 4C85AF62-DA1
    TO:
    Date: Wednesday, June 6, 2012 16:07:43 GMT
    Call ID: [email protected] / * /
    Supported: timer, resource-priority, replaces, sdp-anat
    Min - SE: 1800
    Cisco-Guid: 2499069035-2938638817-2515636045-1568562753
    User-Agent: Cisco-SIPGateway/IOS - 12.x
    Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, VIEW, SUBSCRIBE, NOTIFY, INFO, REGISTER
    CSeq: INVITE 101
    Time stamp: 1338998863
    Contact:
    Expires: 180
    Allow-events: kpml, telephone-event
    Max-Forwards: 68
    Content-Type: application/sdp
    Content-Disposition: session; handling = required
    Content-Length: 355

    v = 0
    o = CiscoSystemsSIP-GW-UserAgent 6494 4459 IN IP4 172.16.5.10
    s = call SIP
    c = IN IP4 172.16.5.10
    t = 0 0
    m = audio 16668 RTP / AVP-18 0 8 100 101
    c = IN IP4 172.16.5.10
    a G729/8000 rtpmap:18 =
    a = fmtp:18 annex b = No.
    a = rtpmap:0 PCMU/8000
    a = rtpmap:8 PCMA/8000
    a = rtpmap:100 X-NSE/8000
    a = fmtp:100 192-194
    a rtpmap:101 telephone-event/8000 =
    a = fmtp:101 0-15

    +++ After a couple to try and ring CUBE Gets an ok 200 of cucm with point of endpoints and IP codec +++
    Received:
    SIP/2.0 200 OK
    Via: SIP/2.0/TCP 172.16.5.10:5060; branch = z9hG4bK7954A198F
    From:; tag = 4C85AF62-DA1
    Up to:; tag=811681~ffa80926-5fac-4dd6-b405-2dbbc56ae9a2-477917860
    Date: Wednesday, June 6, 2012 16:07:43 GMT
    Call ID: [email protected] / * /
    CSeq: INVITE 101
    Allow: PROMPT, OPTIONS, INFO, BYE, ACK, CANCEL, PRACK, UPDATE, VIEW, SUBSCRIBE, NOTIFY
    Allow-events: presence, kpml
    Supported: replaces
    Support: X-cisco-srtp-relief
    Support: geolocation
    Session-expires: 84600; refresher = UAS
    Require: timer
    Contact:
    Content-Type: application/sdp
    Content-Length: 214

    v = 0
    o = CiscoSystemsCCM-SIP 811681 1 IN IP4 10.100.10.50
    s = call SIP
    c = IN IP4 10.44.43.13
    t = 0 0
    m = audio RTP/AVP 0 101 27770
    a = rtpmap:0 PCMU/8000
    a = ptime:20
    a rtpmap:101 telephone-event/8000 =
    a = fmtp:101 0-15

    +++ CUBE sends and ACK +++
    Envoy:
    SIP ACK:[email protected]/ * /: 5060; transport = tcp SIP/2.0
    Via: SIP/2.0/TCP 172.16.5.10:5060; branch = z9hG4bK7954B2403
    From:; tag = 4C85AF62-DA1
    Up to:; tag=811681~ffa80926-5fac-4dd6-b405-2dbbc56ae9a2-477917860
    Date: Wednesday, June 6, 2012 16:07:43 GMT
    Call ID: [email protected] / * /

    +++ CUBE then sends a 200 ok for ITSP with codec to use for the call endpoint.
    Envoy:
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP 192.168.50.49:5070; branch = z9hG4bKeao3hl307oi03u4716b0.1
    From:; tag = 451687893-1338998863036-
    To: 'codec test'[email protected] / * />; tag = 4C85AF76-1
    Date: Wednesday, June 6, 2012 16:07:43 GMT
    Call ID: [email protected] / * /
    CSeq: INVITATION 558275167
    Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, VIEW, SUBSCRIBE, NOTIFY, INFO, REGISTER
    Allow-events: kpml, telephone-event
    Remote-Party-ID:; part = called; screen = no; intimacy = off
    Contact:
    Supported: replaces
    Supported: sdp-anat
    Server: Cisco-SIPGateway/IOS - 12.x
    Supported: timer
    Content-Type: application/sdp
    Content-Disposition: session; handling = required
    Content-Length: 247

    v = 0
    o = 3682 3869 CiscoSystemsSIP-GW-UserAgent IN IP4 172.16.5.10
    s = call SIP
    c = IN IP4 172.16.5.10
    t = 0 0
    m = 25278 audio RTP/AVP 0 101
    c = IN IP4 172.16.5.10
    a = rtpmap:0 PCMU/8000
    a rtpmap:101 telephone-event/8000 =
    a = fmtp:101 0-15
    a = ptime:20

    +++ Received ACK then ITSP +++

    002855: June 6 16:07:45.557: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
    Received:
    SIP ACK:[email protected]/ * /: SIP-5060/2.0
    Via: SIP/2.0/UDP 192.168.50.49:5070; branch = z9hG4bKhcdhmt20fg9gu7pf22b0.1
    From:; tag = 451687893-1338998863036-
    To: 'codec test'[email protected] / * />; tag = 4C85AF76-1
    Call ID: [email protected] / * /
    CSeq: ACK 558275167
    Contact:
    Max-Forwards: 69
    Content-Length: 0

    So in summary, here's how the codec is selected...

    +++ INCOMING LEG +++

    on the inbound leg...

    The region setting will take effect no matter what you have configured on the voice-class codec to your incoming dial-peer. This is because when sending 200 ok CUCM will send the codec defined between the endpoint and the CUBE as the codec. CUBE then passes this ITSP.

    +++ OUTGOING LEG +++

    on the outbound direction...

    Announced for ITSP codec will be used, ITSP being the decision that a codec use from the announced codec. So, here with the codec of voice of class, the preferred codec in the list is selected by the ITSP and this will be used for the call regardless of which is the region setting on the phone at the gateway of the cube.

    If the codec is hardcoded... If its value g711, then g711 response will come from the ITSP and this codec will be used for the call.

    If its g729, then it will be g729...

    The outbound leg is so regardless of the setting of the region because it's the end that is to choose

    which codec to use for the call.

    If in both cases the codec selected by the end will determine which codec is used for the call

    Inbound leg, end is CUCM... region takes effect
    the outbound leg, end is ITSPS, prefered codec codec announced take effect... Simple!

    So if you want to choose a codec for your outbound leg, you have either defined as favorite in your list of classes in voice or hard code it is the codec was announced as the prefferd to your ITSP

    NB: for faxes, when entering, we use voice class codec and region settings (g711 is used for fax). As explained above, fax will use G711 because of its region at the gateway of cube settings

    On the outbound leg, we did a similar config as yours. Prefix numbers for the called number, then configure dial-peer to use G711.

    Please note the useful messages

    "I am complete in God, God completes me.

Maybe you are looking for

  • flashing desktop iMac computer

    10.11.6 OSxiMac 24 inch mid-2007ATI Radeon HD 2600 Pro 256 MB This afternoon there was a close call of thunder/lightning. I didn't know the brief storm coming, but the computer worked always fine afterwards. I stopped it immediately. Flashes when I r

  • How can I add a site to use the master password I clicked previously never "for this site?

    When first asked me if I wanted to use the master password to a site (specifically www.facebook.com) I clicked on "never" do not forget the password for this site. How can I use the master password to this site (or any site) now?Thank you

  • How to give a default file path

    Hi all How to give a default path for a vi... It should take path to the deffault d without a prompt and writing the desired string to this place... I gud get default file path option... but later realized that there is no file created in this place

  • Outlook Express not to remember my password.

    Outlook Express not to remember my password. When I first of all, connect the 'Remember password' and also the tick are weak characters and not assets. I go to tools, accounts, properties, servers, and check "Remember password", but it does not work.

  • usefulness of reading the measurement file express vi

    Hello I found reading file express vi measure in LV7.1 does not read from the beginning of the file when you run it the second time. Instead, it resume from where it left off last time. Usually, the user would read the entire file measure each time.