1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. Guest: We think the problem with locked threads from long message subjects has been resolved. Post a link here if you still see a problem.

Asterisk 1.4.21.2 Patch for SIP DTMF

Discussion in 'Bug Reporting and Fixes' started by dghundt, Dec 29, 2008.

  1. dghundt Guru

    I tried patching a system last year and things did not go too well. What would the command line look like to update asterisk with the sip dtmf patch?
  2. wardmundy Nerd Uno

    I'm out of pocket this week and Digium has removed the patch or their site is down. Perhaps someone else can zip up the patch and post it here as an attachment. Once you have the patch, copy it to /usr/src/asterisk and execute the following commands:
    Code:
    cd /usr/src/asterisk
    patch -p0 < 0013209.patch
    make clean
    ./configure
    make
    make install
    
    Note: This is for 1.4.21.2 only!! Make a full system backup first!!

    Attached Files:

  3. dghundt Guru

    Thanks! Trying to get my dell sc440 up and running. Looks like whole bug/bug tracker site is down.
  4. kmcdaniel Guru

    Anyone with the patch, please post!!! Thanks!
  5. tgtbad New Member

    Attached is a patch file that I created by diffing the original rtp.c with a patched version of the same.

    Download this file to /usr/src/asterisk/main, and do a

    patch rtp.c 0013209diffs.txt

    Go up one directory to /usr/src/asterisk and follow the other steps above.

    A word of caution - please backup you rtp.c so that if anything goes bad, you can restore the rtp.c and do another make.

    Wish you all a very Happy New Year.

    Attached Files:

  6. dghundt Guru

    Thank you. Will report on results after new year. :smile5:

    I used winscp to copy the 0013209diffs.txt file over to /usr/src/asterisk/main.
    Then with putty:

    Code:
    cd /usr/src/asterisk/main
    patch rtp.c 0013209diffs.txt
    cd ..
    This line below gave a file did not exist error (which makes sense now..)
    Code:
    patch -p0 < 0013209.patch
    but I continued..
    Code:
    make clean
    ./configure
    make
    make install
    I received ok status on building and installing asterisk.
    I did get some warnings below which are familiar to me when I have compiled asterisk before from source.
    I just wanted to make sure these warnings look ok to you-

    Code:
     WARNING WARNING WARNING
    
     Your Asterisk modules directory, located at
     /usr/lib/asterisk/modules
     contains modules that were not installed by this
     version of Asterisk. Please ensure that these
     modules are compatible with this version before
     attempting to run Asterisk.
    
        app_addon_sql_mysql.so
        app_devstate.so
        app_flite.so
        app_nv_backgrounddetect.so
        app_nv_faxdetect.so
        app_pickup2.so
        app_rxfax.so
        app_saycountpl.so
        app_txfax.so
        cdr_addon_mysql.so
        chan_ooh323.so
        format_mp3.so
        func_devstate.so
        res_config_mysql.so
    
    
    Hopefully I installed the patch correctly?????
    Since this is a fresh install, I was not having any sip dtmf errors yet. Any way to tell patch was installed ok?
  7. dghundt Guru

    I am getting dtmf errors when I try entering numbers with calling cards. At one point I entered a four digit pin, and it read back to me only the last three digits. Sometimes an account number is accepted, other times not recognized.
    So for my details above, sip dtmf is not working. Using a standard xlite sip extension to sip vitelity trunk.

    Also, the asterisk file I can download has a diff extension, not patch.
    When I compare the diff file from tgtbad and asterisk site, they are different. ?????

    Guess I'll load my backup image and try using the other diff file now that asterisk bug site is back up. Any tips are appreciated!
  8. dghundt Guru

    ok, got it working.
    Only difference I can tell was I had to download and use the digium site diffs file.
    I have attached the file that I used.

    I downloaded the 0013209diffs.txt file to my pc's desktop.
    Then I used winscp to copy it over to the directory /usr/src/asterisk/main
    I copied rtp.c over to my desktop as a backup.

    Then logged onto my server with putty and did the following:
    Code:
    cd /usr/src/asterisk/main
    patch rtp.c 0013209diffs.txt
    cd ..

    I got a hunks #1, and #3 status report after the patch command. Not sure why hunk #2 was not mentioned. Anyway, I went on..

    Code:
    make clean
    ./configure
    make
    make install
    amportal restart
    I then called my calling cards and had 100% success rate typing in account and pin numbers with a vitelity sip trunk and xlite sip extension. With the prior patch noted above I had nearly 100% failure rate.

    Well it appears to work, but I am always looking for something that is broken.
    1. Wonder if I should restore my imaged back up and do a clean patch with everything I have done?
    2. Do I need to be concerned about Hunk #2?

    Attached Files:

  9. kmcdaniel Guru

    I think it worked for me also. THX #2 Hunk was not mentioned for me either.
  10. phonebuff Guru

    Mind sharing which Asterisk / PIAF version it is that needs this patch ??
  11. wardmundy Nerd Uno

    Any system with Asterisk 1.4.21.2.
  12. dghundt Guru

    what about the missing modules notices a few posts back, particularly flite, fax detect. Are these expected/ok? Or did I lose something when recompiled?
  13. jades Guru

    Will asterisk 1.4.23 have this patch in an update?
  14. Bart Member

    You can safely ignore these messages. It's only asterisk telling you that they exist and may or may not be compatible

    Bart
  15. jono New Member

    Any? or Every?
  16. dghundt Guru

    I understand it to be every. Simple enough to test it out - make a call to your credit card or calling card with a sip provider.
    I was able to detect the issue easily using Vitelity sip trunk. Then after the patch, was fixed.
  17. jroper Guru

    It would appear to be certain DID providers with at least this version of asterisk.

    If you have a problem, use the patch, if you don't have a problem, then leave well alone, but it will probably do no harm

    Joe
  18. tshif Guru

    Perfect instructions, perfect solution. Using your instructions and code snippets, I was completely patched, and problem solved, in under 4 minutes.

    THANKS for posting the solution.
  19. tbank New Member

    1.6?

    Does anyone have info for patching an Asterisk 1.6 based system?
  20. Alex728 Guru

    I just installed a new build of PIAF 1.4 (32 bit, Asterisk 1.4.21.2), ran update-scripts and update-fixes and tried to apply this patch but a message comes up that it has already been added to rtp.c

    also there is this file

    -rw-r--r-- 1 root root 123028 Jun 10 13:36 rtp.c.orig

    in the usr/src/asterisk/main

    has this patch been built in to PIAF 1.4?

Share This Page