Adding to what I already said, just tested that Asterisk indeed doesn't translate between inband and rfc2833, here is the setup:

Analog phone<->SPA-3000fxs(g729,rfc2833 friend in sip.conf)<-Asterisk->
<->anotherSPA-3000fxo(g711alaw,inband friend in sip.conf)<->PSTN

Calling from PSTN, and into the FXS port's extension:

a.b.c.d   54321       74acc9957be  00102/00000  g729  No       Tx: ACK
e.f.g.h   123456789   f10b0644-47  00102/00149  alaw  No       Tx: ACK

DTMF sounds get muted within 20-50ms and what is left is high-pitch burst. At the same time, DTMFs from FXS extension sounds same, but generate

Mar 1 20:44:56 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:56 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:56 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:56 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:56 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received Mar 1 20:44:57 NOTICE[38801]: rtp.c:565 ast_rtp_read: Unknown RTP codec 101 received

Resume: while all-g711/inband and all-g729/rfc2833 setups work flawlessly, mixed setups are broken. It's not a Sipura issue too, as adding canreinvite=yes makes the devices communicate correctly. Same thing with other FXO gateways.

:S

sip.conf:

[54321]
username=54321
secret=xxxxxxx
dtmfmode=rfc2833
disallow=all
allow=g729
host=dynamic
type=friend

[spafxo#]
username=theusername
secret=xxxxxxx
dtmfmode=inband
disallow=all
allow=alaw
allow=ulaw
host=dynamic
type=friend

begin:vcard
fn:Vahan Yerkanian
n:Yerkanian;Vahan
org:ARMINCO Global Telecommunications;Head, Research & Development dept.
adr:;;28, Isahakian ave., PO BOX 10;Yerevan;;375009;Armenia
email;internet:[EMAIL PROTECTED]
x-mozilla-html:FALSE
url:http://www.arminco.com/
version:2.1
end:vcard

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to