RTP Payload 96, need to modify source code and recompile

blackgecko
Posts: 2
Member Since:
2006-06-12

Hi:

My itsp uses a payload of 96 for the DTMF, what causes DTMF is not working in the incoming SIP calls, as you know, the providers not always are able (or want) to change this, so ive read that this can ve solved modifying the rtp.c and adding the following

1) Unknown RTP codec 96 received:

If you are getting messages such as the one below, chances are big you are trying to connect to a Cirpack/v4.39a (gw_sip) sip gateway or to a Mediatrix 1124 gateway

Dec 24 10:57:40 NOTICE[5570]: rtp.c:564 ast_rtp_read: Unknown RTP codec 96 received

This is because those 2 devices for some reason decide to send DTMF as a dynamic payload type 96, and asterisk expects the DTMF to have number 101 or 121.

We can easily fix this with a one line patch to rtp.c

Look for:

[34] = {1, AST_FORMAT_H263},
[103] = {1, AST_FORMAT_H263_PLUS},
[97] = {1, AST_FORMAT_ILBC},
[101] = {0, AST_RTP_DTMF},
[110] = {1, AST_FORMAT_SPEEX},

and change this to:

[34] = {1, AST_FORMAT_H263},
[103] = {1, AST_FORMAT_H263_PLUS},
[96] = {0, AST_RTP_DTMF},
[97] = {1, AST_FORMAT_ILBC},
[101] = {0, AST_RTP_DTMF},
[110] = {1, AST_FORMAT_SPEEX},

ive already installed the asterisk-devel package but it only contains the headers, not the source code, can anyone please provide a hint about how to do what i need to ?

Thanks



SkykingOH
Posts: 9681
Member Since:
2007-12-17
I would download the latest

I would download the latest 1.4.23 Asterisk and Asterisk add-ons from www.asterisk.org and follow the guide in the wiki for installing 1.4 on trix 2.2

That will get you the latest and greatest.

If you have any TDM hardware (PSTN cards) you will need to build DAHDI which replaces zaptel.

--

Scott

aka "Skyking"



blackgecko
Posts: 2
Member Since:
2006-06-12
Yeah but this way i would be

Yeah but this way i would be unable to upgrade using yum, wich i prefer, is there any way i can get the asterisk source code, modify the rtp.c, make the rpm and install it ?



SkykingOH
Posts: 9681
Member Since:
2007-12-17
Sure you could still update

Sure you could still update with yum, you just could not update Asterisk.

I don't recommend yum's -y option anyway. You should always confirm what you want.

The instructions I pointed you to in the wiki show you how to download and compile Asterisk from source.

--

Scott

aka "Skyking"



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.