<br><br><div><span class="gmail_quote">On 8/8/06, <b class="gmail_sendername">Chan Kwang Mien</b> &lt;<a href="mailto:kwangmien@asgent-tech.com">kwangmien@asgent-tech.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<font face="Courier New, Courier">From the SIP messages exchange, sip1
informs Asterisk in the INVITE<br>
message that it supports g.729 and g.711u. Asterisk then compares
its<br>
first allowed codec which is g.729 with the supported codec by sip1.
Since<br>
sip1 supports g.729 and it is an &quot;allowed&quot; codec, Asterisk
chooses g.729<br>
as the codec between itself and sip1.<br>
<br>
Asterisk then forwards the INVITE message but the codec in the INVITE
is<br>
changed to g.711u. sip3 replied that it supports g.711u in the OK
message.<br>
Asterisk then realised that the codec between itself and sip3 is
different<br>
from the codec between itself and sip1. There is a need for
transcoding.<br>
And since there isn't any g.729 Licence, the connection breaks.<br>
<br>
In short, once Asterisk is sure that the first codec of the allowed list
<br>
is supported by sip1, it will use that codec and will ignore the
remaining<br>
codec, in this case, g.711u.<br>
<br>
Intuitively, I thought that since sip1 supports both g.729 and g.711u,
it<br>
should be able to connect to a g.729 phone or a g.711u phone via
Asterisk<br>
using the same sip.conf.</font></div></blockquote><div><br>it can - the only problem is that it needs to do transcoding and since g.729 is proprietary and the owner wants some royalty payments from it then you are stuck in the mud
<br><br><br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="q"><font color="#800000" face="Courier New, Courier">
&gt; I have the
same problem here, why does asterisk not use ulaw with Sip1 -&gt;<br>
&gt; Sip3 ?&nbsp; As it has allow=g729 and allow=ulaw in Sip1, should it
not<br>
&gt; fallback onto ulaw when the g729 fails?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Dean.<br>
&gt;&nbsp;&nbsp; -----Original Message-----<br>
&gt;&nbsp;&nbsp; From:
</font><font color="#0000ff" face="Courier New, Courier"><u><a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com
</a><br>
</u></font><font color="#800000" face="Courier New, Courier">&gt;
[<a href="mailto:asterisk-users-bounces@lists.digium.com%5DOn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mailto:</a></font><font color="#0000ff" face="Courier New, Courier"><u><a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
asterisk-users-bounces@lists.digium.com</a></u></font><a href="mailto:asterisk-users-bounces@lists.digium.com%5DOn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#800000" face="Courier New, Courier">
]On</font></a>
Behalf Of Rosli Sukri<br>
&gt;&nbsp;&nbsp; Sent: 08 August 2006 13:38<br>
&gt;&nbsp;&nbsp; To: Asterisk Users Mailing List - Non-Commercial
Discussion<br>
&gt;&nbsp;&nbsp; Subject: Re: [asterisk-users] Problems with Codecs in
Asterisk<br>
&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp; either<br>
&gt;&nbsp;&nbsp; 1)pay digium for g.729 license or<br>
&gt;&nbsp;&nbsp; 2)allow g.729 for sip3<br>
&gt;<br>
&gt;&nbsp;&nbsp; - sip 1 -&gt; sip2 work cause it will pass thru,<br>
&gt;&nbsp;&nbsp; - sip 2 -&gt; sip3 fails because since asterisk wants to
do transcoding to<br>
&gt; 729&lt;-&gt;711 and no license<br>
&gt;&nbsp;&nbsp; if bandwidth is a concern just use GSM (if available as
a codec on the<br>
&gt; phone)<br>
&gt;<br>
&gt;<br></span></div><div><span class="e" id="q_10cee3fdd8bbfb7f_2">
&gt;&nbsp;&nbsp; On 8/8/06, Chan Kwang Mien &lt;
<font color="#0000ff" face="Courier New, Courier"><u><a href="mailto:kwangmien@asgent-tech.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kwangmien@asgent-tech.com</a></u></font></span></div>
<div><font color="#800000" face="Courier New, Courier">&gt;
wrote:</font></div><font color="#800000" face="Courier New, Courier"></font><div><span class="e" id="q_10cee3fdd8bbfb7f_4"><font color="#800000" face="Courier New, Courier"><br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi,<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; My test-setup is as follows :<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; sip1 &lt;--&gt; Asterisk &lt;--&gt;
sip2<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
^<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|-------&gt; sip3<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; In sip.conf,<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; [sip1]<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; type=friend<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; host=dynamic<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; secret=pass<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; disallow=all<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; allow=g729<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; allow=ulaw<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; [sip2]<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; type=friend<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; host=dynamic<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; secret=pass<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; disallow=all<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; allow=g729<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; [sip3]<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; type=friend<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; host=dynamic<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; secret=pass<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; disallow=all<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; allow=ulaw<br>
&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; sip1 supports g.729 and g.711u only<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; sip2 supports g.729 only<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; sip3 supports g.711u only<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; sip1 is able to establish a call to
sip2.<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; However, I have problem establishing a call
from sip1 to sip3. sip3<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; rings but when I answered it, it hanged
up.<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; The Logs are :<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing
Dial(&quot;SIP/2006-389a&quot;, &quot;SIP/2003&quot;) in new stack<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Called 2003<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Aug&nbsp; 8 09:55:15 WARNING[6937]:
channel.c:2725<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; ast_channel_make_compatible: No path to
translate from<br>
&gt; SIP/2003-b5f8(4)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; to SIP/2006-389a(256)<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- SIP/2003-b5f8 is
ringing<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- SIP/2003-b5f8
answered SIP/2006-389a<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Aug&nbsp; 8 09:55:16 WARNING[6937]:
channel.c:2725<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; ast_channel_make_compatible: No path to
translate from<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; SIP/2006-389a(256) to SIP/2003-b5f8(4)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Aug&nbsp; 8 09:55:16 WARNING[6937]:
app_dial.c:1608 dial_exec_full: Had to<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; drop call because I couldn't make
SIP/2006-389a compatible with<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; SIP/2003-b5f8<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; == Spawn extension (phones,
2003, 1) exited non-zero on<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; 'SIP/2006-389a'<br>
&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; I think the codecs used by sip3 and sip1 are
incompatible. Does anyone<br></font></span></div><div><span class="q">
<font color="#800000" face="Courier New, Courier">&gt;&nbsp;&nbsp;&nbsp;&nbsp; know how I could make them compatible 
?<br>
&gt;<br>
&gt;<br></font></span></div><div><span class="q">
<font color="#800000" face="Courier New, Courier">&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thank you.<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Regards,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Kwang Mien<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;
_______________________________________________<br></font></span></div><div><span class="q">
<font color="#800000" face="Courier New, Courier">&gt;&nbsp;&nbsp;&nbsp;&nbsp; --Bandwidth and Colocation provided by
<a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com</a> --<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; asterisk-users mailing list<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; To UNSUBSCRIBE or update options 
visit:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font></span></div><div><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#0000ff" face="Courier New, Courier"><u>http://lists.digium.com/mailman/listinfo/asterisk-users
<br>
</u></font></a></div><div><span class="e" id="q_10cee3fdd8bbfb7f_9"><font color="#800000" face="Courier New, Courier">&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&nbsp;&nbsp;&nbsp;
</font><a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><font color="#0000ff" face="Courier New, Courier"><u>http://lists.digium.com/mailman/listinfo/asterisk-users
<br>
</u></font></a><font color="#800000" face="Courier New, Courier">&gt;<br>
<br>
</font><br>


</span></div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com
</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>