Hi. I'm experiencing a issue (not big, but important) I have an asterisk installation with a buch of sip phones & analog ones. I have 2 1 sip phone that's outside in the "world", and is nat'ed. I'm using g.729 with it. I wanna use g.729 only for the remote phone, and ulaw for the local ones, since they're on a lan. What happens? when I call the remote phone, g.729 is used, but when the remote calls ulaw is used... beside there's a disallow=all , allow=g729 is the user definition.
so seems that when we call it, the codec definitions are taken from the user config itself, but when it call us, the codec defs are from the global settings. that's the same if we call remote (or receive) from an analog or iax phone. Here's a snippet of my sip.conf: ; ; SIP Configuration for Asterisk ; [general] port = 5060 bindaddr = 0.0.0.0 context = local tos = lowdelay disallow = all allow = ulaw ;local phone definition [200] accountcode=localphone mailbox=200 type=friend secret=secret username=200 host=dynamic callgroup=1 pickupgroup=1 ; remote phone definition [250] accountcode=remotephone type=friend secret=XXXXX nat=yes username=250 context=local reinvite=no disallow=all allow=g729 canreinvite=no host=dynamic qualify=1000 callgroup=1 pickupgroup=1 Any hint? -- Matteo Brancaleoni Powered by RedHat Linux 8.0 Linux User #153521 -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS d? s:- a- C+++ UL++++ P+ L+++ E- W+++ N++ o K- w-- O- M-- V-- PS PE- Y PGP++ t 5 X+ R tv- b++ DI D+ G e h! r++ y ------END GEEK CODE BLOCK------ -- Matteo Brancaleoni Espia System Administrator Email : [EMAIL PROTECTED] Web : http://www.espia.it Phone : +39.02.70633354 - ext 911 IAX(2): [EMAIL PROTECTED] - ext 911 or tel:17005662458 - ext 911 _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users