Trouble with 2811 IP-IP gateway

After replacing IP-IP gateway 2611XM with 2811(various version IOS) all calls via this gateway originated from Call Manager (or othes sources when signaling and media address are different) to Cisco AS5350 are disconnects with code 47 (no resource).
All voip settings of 2611XM and 2811 are same.
Is anybody have this troubles?

Have the same scenario with a 2801 IPIP GW SIP to H.323:
CCM-->H323IPIPGWSIP--->SIPGW.
Calls are completed ok only from CCM to outside but not on the opposite direction;
When call flow from SIPGW-->SIPIPIPGWH323-->CCM the call is completed but there is no audio, 5 secs after completed the call is released by de CCM.
CCM Release is 4.1(3) and IPIP GW I have tried with c2801-adventerprisek9_ivs-mz.124-4.T7, c2801-adventerprisek9-mz.124-11.XJ and c2801-spservicesk9-mz.124-6.T2.bin and have the same result.
I also tried the same scenario but with H.323 to H.323 on the IPIP GW and have encountered the same problem. Anyone can help me with this?
Thanks in advance

Similar Messages

  • Configuring AAA with 2811 IPIP Voice Gateway

    Hi,
    I am trying to configure 2811 Gateway for IP to IP VoIP calls as a carrier and need to calls to be Authenticated/Accounted on Radius Billing Server. The problem is that when a call comes into the GW, the call is forwarded on the second leg without authenticated but the accounting messages are coming properly.
    Cisco TAC advised that I need to run TCL which I don't understand why. I am NOT using any IVR for the incoming calls, but still they insist using it.
    Anyone has any experience in this implementation.

    TCL != IVR
    TCL is just a scripting language.
    There is such a TCL script that authenticates IP-to-IP calls.
    So what the TAC has advised you is right.
    Just configure the proper TCL script at your dial-peer and it will handle the authentication for you (will send authentication/authorization messages to the Radius server).

  • Trouble with CCME 4 and VIC2-2FXO; IOS 12.4(9)T

    Trouble with CCME 4 and VIC2-2FXO; IOS 12.4(9)T
    I am having trouble making outgoing call or answering incoming call.
    When I try to call out from my IP 7961 phone, it fails with the message "unknown number".
    For incoming call, it rings but when I pick up the call nothing happens,
    Put the receiver back on hook, the phone carries on ringing. I am in UK
    and just trying to set up test system with one analogue line. Any help will
    be most appreciated. My config of the 2811 router is posted below. All calls ineternally works fine.
    Thank you for your help.
    hostname Test-CME
    ip cef
    no ip dhcp use vrf connected
    ip dhcp excluded-address 10.10.10.1 10.10.10.10
    ip dhcp excluded-address 10.139.139.1 10.139.139.10
    ip dhcp pool host
    network 10.10.10.0 255.255.255.0
    default-router 10.10.10.1
    option 150 ip 10.10.10.1
    ip dhcp pool data
    network 10.139.139.0 255.255.255.0
    default-router 10.139.139.1
    dns-server 10.139.139.5
    voice-card 0
    no dspfarm
    voice service voip
    allow-connections h323 to h323
    allow-connections h323 to sip
    allow-connections sip to h323
    allow-connections sip to sip
    supplementary-service h450.12
    h323
    sip
    header-passing
    registrar server expires max 3600 min 3600
    interface FastEthernet0/1
    no ip address
    no ip mroute-cache
    duplex auto
    speed auto
    no shut
    interface FastEthernet0/1.2
    description ** Data VLAN **
    encapsulation dot1Q 2
    ip address 10.139.139.1 255.255.255.0
    interface FastEthernet0/1.3
    description ** Voice VLAN **
    encapsulation dot1Q 3
    ip address 10.10.10.1 255.255.255.0
    ip http server
    ip http authentication local
    no ip http secure-server
    ip http path flash:
    tftp-server flash:S00104000100.sbn
    tftp-server flash:TERM41.7-0-3-0S.loads
    tftp-server flash:term61.default.loads
    tftp-server flash:term41.default.loads
    tftp-server flash:CVM41.2-0-2-26.sbn
    tftp-server flash:cnu41.2-7-6-26.sbn
    tftp-server flash:Jar41.2-9-2-26.sbn
    tftp-server flash:term70.default.loads
    tftp-server flash:term71.default.loads
    tftp-server flash:cnu70.2-7-6-26.sbn
    tftp-server flash:Jar70.2-9-2-26.sbn
    tftp-server flash:TERM70.7-0-3-0S.loads
    tftp-server flash:CVM70.2-0-2-26.sbn
    control-plane
    voice-port 0/3/0
    connection plar opx 202
    caller-id enable
    dial-peer voice 1 pots
    incoming called-number .
    destination-pattern 9T
    port 0/3/0
    telephony-service
    load 7914 S00104000100
    load 7941 TERM41.7-0-3-0S
    load 7961 TERM41.7-0-3-0S
    load 7970 TERM70.7-0-3-0S
    max-ephones 20
    max-dn 40
    ip source-address 10.10.10.1 port 2000
    calling-number initiator
    service phone videoCapability 1
    system message MKC CME
    url services http://10.10.10.1/voiceview/common/login.do
    url authentication
    http://10.10.10.1/voiceview/authentication/authenticate.do
    time-zone 21
    date-format dd-mm-yy
    voicemail 600
    max-conferences 8 gain -6
    call-forward pattern .T
    call-forward system redirecting-expanded
    moh music-on-hold.au
    web admin system name admin secret 0 test
    dn-webedit
    time-webedit
    transfer-system full-consult dss
    transfer-pattern 9.T
    secondary-dialtone 9
    create cnf-files
    ephone-dn 1 dual-line
    number 201
    label 201
    description Sarah
    name Sarah
    ephone-dn 2 dual-line
    number 202
    label 202
    description Vitthal
    name User2 Vitthal
    ephone-dn 3 dual-line
    number 203 secondary
    label 203
    description Neil
    name User3 Neil
    ephone 1
    video
    username "user1" password 201
    mac-address 0018.18EE.947F
    type 7961 addon 1 7914
    button 1:1
    ephone 2
    video
    username "user2" password 202
    mac-address 0018.18BB.B973
    type 7941
    button 1:2
    ephone 3
    video
    username "user3" password 203
    mac-address 0018.1885.6BA2
    type 7970
    button 1:3

    Hi
    Please find enclosed debug attachment for voice ccapi and ephone. First, I called from outside. Extension 202 rings but when I answered on extension 202 nothing happens. Replace the rceiever and the pone starts ringing again.Second step. I tried to call out by dialing 9 and then number but after a while phone displays unknown number.
    Thank you for your help.
    Vitthal

  • Can wpg_docload work with the embedded plsql gateway?

    Hi,
    Looking at all the sample code with wpg_docload.download_file. Put the following in a plsql region, but it does not work. Is it due to my running with the embedded plsql gateway, rather than http server and mod_plsql?
    Here's the code. The file exists and is a small 213-byte file.
    declare lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.txt';
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    owa_util.mime_header('text/plain', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: attachment; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end;
    It returns:
    "HTTP/1.1 500 Internal Server Error Server: Oracle XML DB/Oracle Database Content-Type: text/html; charset=UTF-8 X-DB-Content-length: 213 Transfer-Encoding: chunked Transfer-Encoding: chunked"
    The filesize is correct and if I comment out the call to wpg_docload.download_file I see:
    "Content-type: text/plain; charset=UTF-8 Content-length: 213 Content-Disposition: attachment; filename="x.txt""
    Thanks.
    Susan

    Hi,
    Tried simply doing the grant, but it did not work. Aside from having a bit of trouble with the loadblobfromfile (had to enumerate all 5 parameters) and also having to specifically do a dbms_lob.open, it worked!
    Here's the final code that worked:
    declare
    lob_loc bfile;
    v_length integer;
    fname varchar2(100) := 'x.txt';
    l_blob blob;
    des_offset number := 1;
    src_offset number := 1;
    begin
    lob_loc := bfilename('CELFILES_9906', fname);
    v_length := dbms_lob.getlength(lob_loc);
    DBMS_LOB.createtemporary(l_blob, FALSE);
    dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
    DBMS_LOB.LOADBLOBFROMFILE(
    dest_lob=>l_blob,
    src_bfile=>lob_loc,
    amount=>v_length,
    dest_offset=>des_offset,
    src_offset=>src_offset);
    owa_util.mime_header('text/plain', false);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: attachment; filename="' || fname || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( l_blob );
    DBMS_LOB.freetemporary(l_blob);
    EXCEPTION WHEN OTHERS THEN
    DBMS_LOB.freetemporary(l_blob);
    RAISE;
    end;
    Thanks Udo.
    Susan

  • Trouble with Ip redirect

    I am having a bit of trouble with ip redirects on an airnet 1042N
    Here is what happens, I turn off ip redirect, everything works fine, turn it on, everything works fine.  The problem is when I apply an ACL to it.
    If I apply an ACL, I can ping web sites, but I can not browse websites or telnet to port 80.  This is simply a test configuration before I move it into production.  10.0.0.0/22 is our subnet.  I want the guest ssid to allow access to the internet, but not the the internal network (with the exception of the gateway (10.0.1.254) , dhcp, and dns servers (same server 10.0.1.221)
    Running config
    Current configuration : 2475 bytes
    version 12.4
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname testap
    logging rate-limit console 9
    enable secret 5 $1$PBvp$dH8HqNdXBTP7eCzYanRRo.
    no aaa new-model
    dot11 syslog
    dot11 ssid main
       authentication open
       authentication key-management wpa version 2
       wpa-psk ascii 7 1234567890abcdefghi
       ip redirection host 10.0.1.254 access-group 102 in
    dot11 ssid secondary
       authentication open
       authentication key-management wpa version 2
       guest-mode
       wpa-psk ascii 7 075E731F1A5C4F524F4B5B0D06292F212E343D2B
       ip redirection host 10.0.1.254 access-group 103 in
    username Cisco password 7 01300F175804
    bridge irb
    interface Dot11Radio0
    no ip address
    no ip route-cache
    encryption mode ciphers aes-ccm
    ssid main
    ssid secondary
    antenna gain 0
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface Dot11Radio1
    no ip address
    no ip route-cache
    shutdown
    antenna gain 0
    dfs band 3 block
    channel dfs
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface GigabitEthernet0
    ip address 10.0.2.150 255.255.252.0
    no ip route-cache
    duplex auto
    speed auto
    no keepalive
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    interface BVI1
    ip address 10.0.2.150 255.255.252.0
    no ip route-cache
    ip http server
    no ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    access-list 101 permit ip any host 10.0.1.254
    access-list 101 permit ip any host 10.0.1.221
    access-list 101 deny   ip 10.0.0.0 0.0.3.255 10.0.0.0 0.0.3.255
    access-list 101 permit ip any any
    access-list 102 permit ip any 10.0.0.0 0.0.3.255
    access-list 103 permit 80 any any
    access-list 103 permit ip any host 10.0.1.254
    access-list 103 permit ip any host 10.0.1.221
    access-list 103 deny   ip 10.0.0.0 0.0.3.255 10.0.0.0 0.0.3.255
    access-list 103 permit ip any any
    access-list 120 permit ip host 10.0.3.41 any
    access-list 120 permit ip any host 10.0.3.41
    bridge 1 route ip
    line con 0
    logging synchronous
    line vty 0 4
    login local
    end

    James:
    Welcome to the forum.
    To enable both encrypted and unencrypted traffic on same radio you need to use VLANs. If you are using only the native VLAN then you are abide by only one encryption method for all SSIDs.
    Check this for multiple SSIDs and multiple VLANs:
    https://supportforums.cisco.com/docs/DOC-14496
    For your network above, you should review the ACL and make sure it allows the needed traffic. Make sure both ports 80 and 23 are opened. Make sure to choose correct ports (udp, tcp) on the ACL.
    You can also try configuring ip redirect from GUI. give a look to the ip redirect doc: http://tiny.cc/gdsekw.
    HTH
    Amjad
    Rating useful replies is more useful than saying "Thank you"

  • Having trouble with the most simple of things: Static IP

    I am having trouble with the most simple of things: Static IP.
    I am working in Windows Server 2008 R2 SP1.
    "Control Panel\Network and Internet\Network and Sharing Center\Local Area Connections>Properties>Internet Protocol Version 4 (TCP/IPv4) and Internet Protocol Version 6 (TCP/IPv6)"
    IPv4: I have went to "ipconfig /all" and found the "preferred" IP Address and the Default Gateway. 
    Assign DNS Servers?
    IPv6: I used "netsh interface ipv6 show address level=verbose" and found 3 usable IPv6 IPs.
    Assign IP Address, Default Gateway and DNS Servers?

    What is the question?
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Intregation iDCS with 2811 Router

    Greetings,
    first the scenario, i have one DX Quitum with E1 interface and Samsumg iDCS with TEPRI card for pbx to E1 convertion.
    We have purchased 1 2811 with VWIC-2MFT-E1, NM-PVDM2 64 and planning to buy CallManager 4.1.
    I want to intregate iDCS with 2811 and use the router as transcorder+gateway, i need to terminate outbound calls and well as receive inbound calls from US and UK DIDs i have.
    Please suggest if its better to use 2811 as gateway for termination aswell as inbound or should i use CCM.
    what IOS i need for 2811 to act as gateway for both SIP & H323 calls.
    i'm new to cisco solution so please excuse me if it sounds stupid Q.

    For supporting both SIP & H.323 its better to go for 'ipvoice' feature set of IOS 12.4 release.

  • I have been having a lot of trouble with the latest itunes update and my ipod classic 80Gb i.e. being unable to sync songs, but now i have no files at all on my ipod, it is completely blank when i view it from my computer. I need help, please, anybody.

    As it says above, i have been having a lot f trouble with my ipod classic and the latest itunes update, i was unable to sync songs or anything to it and have tried every conceivable 'fix' i could find. i have run an itunes diagnostic and the results are posted below. a major problem is that when i try and view my ipod through my computer it displays nothing at all on the ipod, no files or anything, this may be the problem but i have no idea how it has happened or how i could resolve it.
    This ipod holds huge sentimental value and i am loathe to buy a new one! If anybody can help it is greatly appreciated, than kyou in advanced.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    ASUSTeK Computer Inc. K50IJ
    iTunes 11.1.5.5
    QuickTime not available
    FairPlay 2.5.16
    Apple Application Support 3.0.1
    iPod Updater Library 11.1f5
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.1.1.3
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 0038B8600B98D1E0
    Current user is not an administrator.
    The current local date and time is 2014-03-21 16:52:39.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2fd81a1f13cf3ff25a8b4f0e8e725116
    **** Device Connectivity Tests ****
    iPodService 11.1.5.5 (x64) is currently running.
    iTunesHelper 11.1.5.5 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) ICH9 Family USB Universal Host Controller - 2934.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2935.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2936.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2937.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2938.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2939.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293C.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • Trouble with Toshiba built-in webcam: "unable to enumerate USB device"

    I am running archlinux on a Toshiba Satellite L70-B-12H laptop, and having troubles with the Webcam. *Once in a while*, everything goes well and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 004: ID 04f2:b448 Chicony Electronics Co., Ltd
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    # dmesg
    [ 3433.456115] usb 3-1.3: new high-speed USB device number 4 using ehci-pci
    [ 3433.781119] media: Linux media interface: v0.10
    [ 3433.809842] Linux video capture interface: v2.00
    [ 3433.826889] uvcvideo: Found UVC 1.00 device TOSHIBA Web Camera - HD (04f2:b448)
    [ 3433.835893] input: TOSHIBA Web Camera - HD as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input15
    [ 3433.835976] usbcore: registered new interface driver uvcvideo
    [ 3433.835977] USB Video Class driver (1.1.1)
    Unfortunately, *most of the time* the camera seems invisible to my system, and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    (note the missing "04f2:b448 Chicony Electronics Co., Ltd" device), and
    # dmesg
    [ 480.104252] usb 3-1.3: new full-speed USB device number 4 using ehci-pci
    [ 480.171097] usb 3-1.3: device descriptor read/64, error -32
    [ 480.341235] usb 3-1.3: device descriptor read/64, error -32
    [ 480.511375] usb 3-1.3: new full-speed USB device number 5 using ehci-pci
    [ 480.578007] usb 3-1.3: device descriptor read/64, error -32
    [ 480.748151] usb 3-1.3: device descriptor read/64, error -32
    [ 480.918282] usb 3-1.3: new full-speed USB device number 6 using ehci-pci
    [ 481.325196] usb 3-1.3: device not accepting address 6, error -32
    [ 481.392091] usb 3-1.3: new full-speed USB device number 7 using ehci-pci
    [ 481.798926] usb 3-1.3: device not accepting address 7, error -32
    [ 481.799166] hub 3-1:1.0: unable to enumerate USB device on port 3
    Searching on the web, most results I found lead to this page, where it is said that the problem is due to badly tuned overcurrent protection, and advocated that unplugging and switching off the computer for a little while gets things back into normal. This does not really work for me; the problem seems to occur more randomly, unfortunately with high probability (my camera is available after less than one boot out of ten).
    I tried to ensure that the ehci-hcd module is loaded at boot with the ignore-oc option (with a file in /etc/module-load.d/), to no avail.
    I also wrote a script which alternatively removes and reloads the ehci-pci driver until my device is found in lsusb. It is sometimes helpful, but usually not. And even when my device is found that way, it can only be used for a while before disappearing again.
    Anyway, such a hack is unacceptable... So, my questions are:
    is it indeed related to overcurrent protection ?
    is there anything else I can try ?
    should I file somewhere an other of the numerous bug reports about "unable to enumerate USB device" already existing ?
    If of any importance, I am running linux 3.15.7, because at the time I installed my system, I couldn't get the hybrid graphic card Intel/AMD working under 3.16.
    Last edited by $nake (2014-10-18 16:29:06)

    uname -a
    Linux libra 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux
    pacman -Qi linux
    Name : linux
    Version : 3.9.4-1
    Description : The linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licences : GPL2
    Groups : base
    Provides : kernel26=3.9.4
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 65562.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sat 25 May 2013 16:28:17 CEST
    Install Date : Sun 02 Jun 2013 15:30:35 CEST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature

  • Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hello Sue,
    I have an iPad 3, iPad Mini and iPhone 5S and they are all sluggish on capitalisation using shift keys. I hope that Apple will solve the problem because it is driving me crazy.
    I find using a Microsoft Surface and Windows 8 phone, which I also have, work as well as all the ios devices before the ios 7 upgrade.
    It has something to do with the length of time that you need to hold the shift key down. The shift key needs to be held longer than the letter key for the capitalisation to work. For some reason, this is a major change in the way we have learnt to touch type on computers. I am having to relearn how to type!
    Michael

  • Trouble with OR in where clause

    Hello,
    I'm having trouble with execution speed. The problem seems to be with using OR in my where clause.
    Here's the meat of the function where i_pledge_number is an input parm:
    BEGIN
    SELECT /*+ INDEX (pp) */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM
    primary_pledge pp
    WHERE
    -- Get total if multiple allocations
    pp.prim_pledge_number IN
    (SELECT pc.pledge_number
    FROM pledge_codes pc
    WHERE pc.pledge_code_type = 'M'
    AND pc.pledge_code = 'AC'
    AND lpad(pc.pledge_comment,10,'0') = i_pledge_number)
    -- Get total if single allocation
    OR pp.prim_pledge_number = i_pledge_number;
    RETURN return_amount;
    END;
    If I comment out either half of the OR statement (either the subquery or the pp.prim_pledge_number = i_pledge_number half) the function returns a value in .02 seconds. If I leave the OR in, it takes 2.764 seconds to execute?? Can someone please show me a better way (faster) to do this? I tried using nvl() around the subquery but couldn't get it to compile.
    Thanks

    These things are difficult to diagnose remotely, but here is something you can try....
    SELECT */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM   primary_pledge pp
    WHERE  pp.prim_pledge_number IN (SELECT pc.pledge_number
                                     FROM pledge_codes pc
                                     WHERE pc.pledge_code_type = 'M'
                                     AND pc.pledge_code = 'AC'
                                     AND lpad(pc.pledge_comment,10,'0') = i_pledge_number
    UNION ALL
    SELECT i_pledge_number FROM dual)
       RETURN return_amount;
    END;If that doesn't do anything (and it might well not) there are a large number of different ways we can recast this query. To save us further guessing please give us more details: execution plans, database version number, volumetrics.
    Cheers, APC

  • A trouble with "LIKE" in a select statement

    Hi!
    I'm having trouble with "LIKE" in a select statement...
    With Access I can make the following and everything works well:
    SELECT name, birthday
    FROM client
    WHERE birthday LIKE '*/02/*';
    but if try to do it in my application (it uses Access), it doesn't work - I just can't understand that!!!
    In my application the "month" is always the currently month taken from the "System". Look what I'm doing...
    String query1 = "SELECT name, birthday " +
              "FROM client " +
              "WHERE birthday " +
              "LIKE '*/" +
              pMonth +
              "/*' " +
              "ORDER BY birthday ASC ";
    ResultSet rs = statement1.executeQuery(consulta1);
    boolean moreRecords = rs.next();
    The variable "moreRecords" is always "false", the query returns nothing although the table "client" has records that attend the query.
    Please, anyone can help me?! It's a little bit urgent.
    Thanks,
    Katia.

    Hi Katia,
    I'll bet the problem lies with the characters you're using to escape the LIKE clause. You're using the ones that Access likes to see, but that's not necessarily what's built into the JDBC-ODBC driver class.
    You can find out what the correct escape wildcard characters are from the java.sql.DatabaseMetaData.getSearchStringEscape() method. It'll tell you what to use in the LIKE clause.
    I'm not 100% sure about your code. It doesn't use query1 anywhere. I'd do this:
    String query = "SELECT name, birthday FROM client WHERE birthday LIKE ? ORDER BY birthday ASC";
    PreparedStatement statement = connection.createStatement(query);
    String escape = connection.getMetaData().getSearchStringEscape();
    String test = escape + '/' + pMonth + '/' + escape;
    statement.setString(1, test);
    ResultSet rs = statement.executeQuery();
    while (rs.hasNext())
    // load your data into a data structure to pass back.
    rs.close();
    statement.close();Let me know if that works. - MOD

  • (Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.

    Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
    I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
    Let me know if you know why this is happening.

    With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
    Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
    While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
    I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
    You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
    Something you can try:
    System Preferences -> Network
    Gear icon on the bottom left, next to the [+] [-] icons.
    Select *Set Service Order...*
    Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
    NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to.

  • Edge Animation having troubles with iOS devices within Muse Site

    Hi All! I've been creating a mobile version of my website www.rinkdesigns.com and have it all complete. I created an animation/navigation bar within Adobe Edge Animate and imported it into Muse. It functions AMAZINGLY on my Nexus 4 (Android) in Chrome but on a buddies iPhone 5 Chrome only loads about 3/4 of the animation/nav bar, in Safari the animation does not load at all and half of the page background does not load either. Please check out the preview site here http://rinkdesignsmobile.businesscatalyst.com/phone
    Has anyone else been having animation/mobile troubles with iOS devices? Any hints as to how you fixed your errors would be extremely helpful! I also posted this question in the Muse forum and haven't gotten a response...
    Thanks,
    John

    Or, how about this:
    Does anyone know how to have Edge Animate objects that utilize "_top" in an open url trigger make the Muse site that they are a part of open a new window/tab with that action (as opposed to having it open the url in the current page, or using "_blank" in the trigger)?

  • Trouble with 3rd party VST installs for Garageband, can't find instruments

    Hi,
    I am having trouble with Audio Units for Garageband when installing 3rd party software, VSTs, loops, instruments. I have more issues with Logic Pro. I am hoping that it is the same underlying issue and that I am just missing something. I have the manuals (not great for troubleshooting). I am confused with some installs use User Library and others use the Computer Library. I do go to the mfgs sites for updates. The installs sometimes work as standalones but I don't see ALL of the components of the software in say Garageband or Logic. Mostly, I am missing the "instruments" and "loops" that I want to access within the DAW. Some examples:
    • Here is some of the software I am talking about:  East West sample libraries (Play and Native Instruments); Vienna Symphonic librarires; Sylenth1 (just last night); Sample Tank 2 and Total Workstation 2 from IK Multimedia and others.
    • In GB I see the Audio Units for Vienna, Play, Sylenth, some of the IK Multimedia but NOT any instruments when I go to the "Sound Generator" -- I seem to be missing the instruments and loops. I see less AUs in Logic Pro. Some of these are VST instruments.
    • Can I just drag-drop samples to the library folders to fix this?
    • The plug-ins do not seem to work (though Sylenth1 worked for a single sound). When there is a standalone app (as in Sample Tank), I finally got the "sounds" to be reinstalled and loaded, those sounds/samples don't show up in any DAW.
    • When and if the sounds/loops/samples show up in GB's "Instruments" section will I be able to tell that they belong to that particular software or library?
    Thanks in advance.
    John

    Found the answer myself, it was simple:
    • Select the Track
    • Show the Instrument (info area)
    • Click on Edit
    • Click on the "Sound Generator" pop up field.
    • At the bottom of the pop-up list, select from the Audio Units that you have installed. This is where you see "Sample Tank 2, Vienna Instruments..."
    • NEXT -- IMPORTANT:   CLICK ON THE PICTURE next to the Sound Generator pop-up field.The AU unit loads up, the interface pops up, you load up the instruments in this AU Unit. You do NOT see the sounds from the AU unit in the normal Apple instrument list.
    This was not intuitive but once you know it, fairly simple.
    Still, the devil is in the details -- more questions on the way.

Maybe you are looking for

  • How do I get my data from my old iphone to a new iphone?

    Hi I backed-up the data from my old iphone via itunes onto my computer.  Now, I have "restored" the replacement iphone- or so I thought.  There is none of my old info onto this new phone.  Help.  I am at a loss.  Where do I go to get all of my old da

  • DTP load data from DSO to CUBE can't debug

    Hi,all expert. I met a problem yestoday. When I load data from datasource to DSO,and debug the start routine,it was ok.But when I load data from DSO to CUBE,and debug the routine,it got an error like this: inconsistent input parameter(parameter:<unkn

  • 3 Schedule lines

    Hi, I have 10 PCs of material in stock as of today- 02.05.2015. I create an order with qty 12 on 02.04.2015. .The requested delivery date is 04.05.2015. I press Enter and the Availability Check scree appears. It shows confirmed qty on 04.05.2015 as Z

  • Ok_code for next_line

    Hi Everybody, Can any of you experts tell me the ok_code for next line  in table control. thanks, Rajesh K. Moderator message: Welcome to SCN! Moderator message: please search for available information before asking. [Rules of engagement|http://wiki.

  • When I click to customize firefox (themes and such), the page won't completely load. I only get the words no thumbtabs. And when I click on the words, it does

    on the drop down menu for firefox(in my bookmarks) I used to be able to customize firefox to change my themes. Now when I click on it, it only loads words, no pictures or thumb tabs to hover over or anything. When I click on the words, it does nothin