<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>ok... I've trying to fix this for days... I have a
sip device that registers with my *. The sip device is ONLY set up to use ulaw.
My asterisk server sends ALL PSTN calls to a Sonus gateway/softswitch. When I
place a PSTN call, the sip device sends the INVITE with SDP and the ONLY codec
option is ulaw. Asterisk then turns around and sends an INVITE with SDP to the
Sonus gateway with ulaw as the first option and g729 as a second option. The
Sonus sees the TWO options and ALWAYS chooses g729. The codec negotiation fails
and the call never completes.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I understand that the TWO options are sent because
I have no peer set up for the Sonus in my sip.conf and it defaults to the
[general] codec settings which are ulaw and g729. However, MOST of my calls to
the Sonus ARE using g729, only a few need to use ulaw. (for faxing) So I can't
restrict the Sonus peer to only ulaw...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Here is my question:(finally...sorry:))<BR>Can I
force asterisk to send ONLY my prefered codec?(the first one in the INVITE) or
is this only fixed by pleading with the people who run the Sonus sofswitch to
stop ignoring my preferred codec? or is there some other solution? Any
suggestions would be very appreciated!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453292220-01042005>CONFIG
FILES:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>Sip.Conf:<BR>[general]<BR>context=default
; Default context for incoming
calls<BR>;recordhistory=yes
; Record SIP history by
default<BR>
; (see sip history / sip no
history)<BR>;realm=mydomain.tld
; Realm for digest
authentication<BR>
; defaults to
"asterisk"<BR>
; Realms MUST be globally unique according to RFC
3261<BR>
; Set this to your host name or domain
name<BR>port=5060
; UDP Port to bind to (SIP standard port is
5060)<BR>bindaddr=0.0.0.0
; IP address to bind to (0.0.0.0 binds to
all)<BR>srvlookup=no
; Enable DNS SRV lookups on outbound
calls<BR>
; Note: Asterisk only uses the first
host<BR>
; in SRV
records<BR>
; Disabling DNS SRV lookups disables
the<BR>
; ability to place SIP calls based on
domain<BR>
; names to some other SIP users on the Internet</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>;pedantic=yes
; Enable slow, pedantic checking for
Pingtel<BR>
; and multiline formatted headers for
strict<BR>
; SIP compatibility (defaults to
"no")<BR>;tos=184
; Set IP QoS to either a keyword or numeric
val<BR>;tos=lowdelay
;
lowdelay,throughput,reliability,mincost,none<BR>;maxexpirey=3600
; Max length of incoming registration we
allow<BR>;defaultexpirey=120
; Default length of incoming/outoing
registration<BR>;notifymimetype=text/plain ; Allow
overriding of mime type in MWI
NOTIFY<BR>;videosupport=yes
; Turn on support for SIP video</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>disallow=all
; First disallow all
codecs<BR>allow=g729<BR>allow=ulaw
; Allow codecs in order of
preference<BR>;allow=alaw<BR>;allow=g723.1<BR>;allow=ilbc
; Note: codec order is respected only in
[general]<BR>;musicclass=default
; Sets the default music on hold class for all SIP
calls<BR>
; This may also be set for individual
users/peers<BR>;language=en
; Default language setting for all
users/peers<BR>
; This may also be set for individual
users/peers<BR>;relaxdtmf=yes
; Relax dtmf
handling<BR>;rtptimeout=60
; Terminate call if 60 seconds of no RTP
activity<BR>
; when we're not on
hold<BR>;rtpholdtimeout=300
; Terminate call if 300 seconds of no RTP
activity<BR>
; when we're on hold (must be > rtptimeout)<BR>;trustrpid =
no
; If Remote-Party-ID should be
trusted<BR>;progressinband=no
; If we should generate in-band ringing always<BR>useragent=Abox
SS1.0 ; Allows
you to change the user agent
string<BR>;nat=no
; NAT
settings<BR>
; yes = Always ignore info and assume
NAT<BR>
; no = Use NAT mode only according to
RFC3581<BR>
; never = Never attempt NAT mode or RFC3581
support<BR>
; route = Assume NAT, don't send rport (work around more UNIDEN
bugs)<BR>;usereqphone=no</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>[8138644418]<BR>type=friend<BR>username=8138644418<BR>secret=C34589Y<BR>host=dynamic<BR>nat=yes<BR>context=from-sip<BR>callerid=8138644418<BR>canreinvite=yes<BR>mailbox=8138644418<BR>accountcode=accxx_group<BR>disallow=all<BR>allow=g729<BR>allow=ulaw</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>######################################################################<BR>extensions.conf:<BR>[general]<BR>static=yes<BR>writeprotect=no</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>[globals]</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453292220-01042005>[local]<BR>;<BR>;
Master context for local, toll-free, and iaxtel calls only<BR>;<BR>include =>
default<BR>include => parkedcalls<BR>include => iaxtel700<BR>include =>
iaxprovider<BR>include => from-sip</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453292220-01042005>[default]<BR>include
=> from-sip</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453292220-01042005>[from-sip]<BR>exten
=> _1NXXNXXXXXX,1,Dial(<A
href="mailto:SIP/${EXTEN}@216.229.127.60">SIP/${EXTEN}@216.229.127.60</A>)</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453292220-01042005>exten =>
18138644418,4,Dial(IAX2/poseidon:olympus@72.21.12.4/8138644418@from-sip)<BR>exten
=> 18138644418,3,Wait(2)<BR>exten =>
18138644418,2,Dial(SIP/8138644418,20)<BR>exten =>
18138644418,1,SetCDRUserField(accxx_group)</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005>###################################################################</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453292220-01042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453292220-01042005>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thank you!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Clay
Reiche</FONT></DIV></SPAN></FONT></DIV></BODY></HTML>