<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:289938017;
mso-list-type:hybrid;
mso-list-template-ids:1201054514 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.25in;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:1.25in;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:1.75in;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.25in;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:2.75in;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.25in;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.75in;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:4.25in;
text-indent:-9.0pt;}
@list l1
{mso-list-id:1330135995;
mso-list-type:hybrid;
mso-list-template-ids:25304902 1433946114 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l2
{mso-list-id:1822384623;
mso-list-type:hybrid;
mso-list-template-ids:-1950602344 760896476 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
{mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.25in;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;}
@list l2:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:"Courier New";}
@list l2:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:1.25in;
text-indent:-.25in;
font-family:Wingdings;}
@list l2:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:1.75in;
text-indent:-.25in;
font-family:Symbol;}
@list l2:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.25in;
text-indent:-.25in;
font-family:"Courier New";}
@list l2:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.75in;
text-indent:-.25in;
font-family:Wingdings;}
@list l2:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.25in;
text-indent:-.25in;
font-family:Symbol;}
@list l2:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.75in;
text-indent:-.25in;
font-family:"Courier New";}
@list l2:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:4.25in;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">The PJSIP endpoint is configured for ulaw only. Not sure how or why we are seeing the g729 on calls for this endpoint.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Would this be a case that asterisk detects the rtp stream is g729 even though it’s negotiated as ulaw?
<o:p></o:p></p>
<p class="MsoNormal">Why would asterisk change the format to g729 when disallow = all and allow = ulaw are the endpoint settings?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[121]<o:p></o:p></p>
<p class="MsoNormal">type = endpoint<o:p></o:p></p>
<p class="MsoNormal">context = IS<o:p></o:p></p>
<p class="MsoNormal">transport = transport1<o:p></o:p></p>
<p class="MsoNormal">aors = 121<o:p></o:p></p>
<p class="MsoNormal">accountcode = 2<o:p></o:p></p>
<p class="MsoNormal">dtmf_mode = inband<o:p></o:p></p>
<p class="MsoNormal">device_state_busy_at = 96<o:p></o:p></p>
<p class="MsoNormal">force_rport = no<o:p></o:p></p>
<p class="MsoNormal">identify_by = username,ip<o:p></o:p></p>
<p class="MsoNormal">disallow = all<o:p></o:p></p>
<p class="MsoNormal">allow = ulaw<o:p></o:p></p>
<p class="MsoNormal">from_user = 121<o:p></o:p></p>
<p class="MsoNormal">acl = acl1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[10/03 11:29:34.240] DEBUG[21414][C-00000226] chan_pjsip.c: <span style="background:yellow;mso-highlight:yellow">
Oooh, got a frame with format of g729 on channel 'PJSIP/121-000001d2' when we're sending 'ulaw', switching to match</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">INVITE <a href="sip:2197@XXX.XXX.XXX.XXX:5060">sip:2197@XXX.XXX.XXX.XXX:5060</a> SIP/2.0<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/UDP YYY.YYY.YYY.YYY:5060;branch=z9hG4bKxqyYl2Jg84158000<o:p></o:p></p>
<p class="MsoNormal">To: <<a href="sip:2197@192.168.11.176">sip:2197@<span style="color:windowtext;text-decoration:none">
</span>XXX.XXX.XXX.XXX </a>><o:p></o:p></p>
<p class="MsoNormal">From: <<a href="sip:STUFF@YYY.YYY.YYY.YYY%20">sip:STUFF@YYY.YYY.YYY.YYY
</a>>;tag=I0n4X7KK<o:p></o:p></p>
<p class="MsoNormal">Contact: <<a href="sip:STUFF%20@YYY.YYY.YYY.YYY:5060">sip:STUFF @YYY.YYY.YYY.YYY:5060</a>><o:p></o:p></p>
<p class="MsoNormal">Call-ID: <a href="mailto:OlrmFuyOq-0000-@192.168.10.213">OlrmFuyOq-0000-@<span style="color:windowtext;text-decoration:none"> YYY.YYY.YYY.YYY
</span></a><o:p></o:p></p>
<p class="MsoNormal">CSeq: 2223 INVITE<o:p></o:p></p>
<p class="MsoNormal">Max-Forwards: 70<o:p></o:p></p>
<p class="MsoNormal">Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,REFER,NOTIFY<o:p></o:p></p>
<p class="MsoNormal">Supported: replaces<o:p></o:p></p>
<p class="MsoNormal">Content-Type: application/sdp<o:p></o:p></p>
<p class="MsoNormal">Content-Length: 335<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">v=0<o:p></o:p></p>
<p class="MsoNormal">o=- 11264000 11264000 IN IP4 YYY.YYY.YYY.YYY<o:p></o:p></p>
<p class="MsoNormal">s=-<o:p></o:p></p>
<p class="MsoNormal">c=IN IP4 192.168.10.213<o:p></o:p></p>
<p class="MsoNormal">t=0 0<o:p></o:p></p>
<p class="MsoNormal">m=audio 32768 RTP/AVP 0 2 8 18 110 120 100<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:0 PCMU/8000<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:2 G726-32/8000<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:8 PCMA/8000<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:18 G729/8000<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:110 G723/5300<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:120 G723/6300<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:100 telephone-event/8000<o:p></o:p></p>
<p class="MsoNormal">a=fmtp:100 0-15<o:p></o:p></p>
<p class="MsoNormal">a=sendrecv<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Send<o:p></o:p></p>
<p class="MsoNormal">SIP/2.0 200 OK<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/UDP YYY.YYY.YYY.YYY:5060;received=YYY.YYY.YYY.YYY;branch=z9hG4bKxqyYl2Jg84158000<o:p></o:p></p>
<p class="MsoNormal">Call-ID: <a href="mailto:OlrmFuyOq-0000-@YYY.YYY.YYY.YYY%20">
OlrmFuyOq-0000-@YYY.YYY.YYY.YYY </a><o:p></o:p></p>
<p class="MsoNormal">From: <<a href="sip:STUFF@YYY.YYY.YYY.YYY">sip:STUFF@YYY.YYY.YYY.YYY</a> >;tag=I0n4X7KK<o:p></o:p></p>
<p class="MsoNormal">To: <<a href="sip:2197@XXX.XXX.XXX.XXX%20">sip:2197@XXX.XXX.XXX.XXX
</a>>;tag=b4134118-08f4-4dbc-a145-573d04438092<o:p></o:p></p>
<p class="MsoNormal">CSeq: 2223 INVITE<o:p></o:p></p>
<p class="MsoNormal">Server: Asterisk PBX 13.20.0<o:p></o:p></p>
<p class="MsoNormal">Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE<o:p></o:p></p>
<p class="MsoNormal">Contact: <<a href="sip:YYY.YYY.YYY.YYY:5060">sip:YYY.YYY.YYY.YYY:5060</a>><o:p></o:p></p>
<p class="MsoNormal">Supported: 100rel, timer, replaces, norefersub<o:p></o:p></p>
<p class="MsoNormal">Content-Type: application/sdp<o:p></o:p></p>
<p class="MsoNormal">Content-Length: 181<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">v=0<o:p></o:p></p>
<p class="MsoNormal">o=- 11264000 11264002 IN IP4 YYY.YYY.YYY.YYY<o:p></o:p></p>
<p class="MsoNormal">s=Asterisk<o:p></o:p></p>
<p class="MsoNormal">c=IN IP4 192.168.11.176<o:p></o:p></p>
<p class="MsoNormal">t=0 0<o:p></o:p></p>
<p class="MsoNormal">m=audio 18380 RTP/AVP 0<o:p></o:p></p>
<p class="MsoNormal">a=rtpmap:0 PCMU/8000<o:p></o:p></p>
<p class="MsoNormal">a=ptime:20<o:p></o:p></p>
<p class="MsoNormal">a=maxptime:150<o:p></o:p></p>
<p class="MsoNormal">a=sendrecv<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Receive<o:p></o:p></p>
<p class="MsoNormal">ACK <a href="sip:XXX.XXX.XXX.XXX:5060">sip:XXX.XXX.XXX.XXX:5060</a> SIP/2.0<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/UDP YYY.YYY.YYY.YYY:5060;branch=z9hG4bKCIJuiRuH8415a000<o:p></o:p></p>
<p class="MsoNormal">To: <<a href="sip:2197@192.168.11.176">sip:2197@<span style="color:windowtext;text-decoration:none">
</span>XXX.XXX.XXX.XXX </a>>;tag=b4134118-08f4-4dbc-a145-573d04438092<o:p></o:p></p>
<p class="MsoNormal">From: <<a href="sip:STUFF@%20YYY.YYY.YYY.YYY%20">sip:STUFF@ YYY.YYY.YYY.YYY
</a>>;tag=I0n4X7KK<o:p></o:p></p>
<p class="MsoNormal">Max-Forwards: 70<o:p></o:p></p>
<p class="MsoNormal">Call-ID: <a href="mailto:OlrmFuyOq-0000-@YYY.YYY.YYY.YYY">OlrmFuyOq-0000-@YYY.YYY.YYY.YYY</a><o:p></o:p></p>
<p class="MsoNormal">CSeq: 2223 ACK<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Asterisk debugging outputs the following.<o:p></o:p></p>
<p class="MsoNormal">[10/03 11:29:34.240] DEBUG[21414][C-00000226] chan_pjsip.c: <span style="background:yellow;mso-highlight:yellow">
Oooh, got a frame with format of g729 on channel 'PJSIP/121-000001d2' when we're sending 'ulaw', switching to match</span><o:p></o:p></p>
<p class="MsoNormal">[10/03 11:29:34.240] DEBUG[21414][C-00000226] channel.c: Channel PJSIP/121-000001d2 setting write format path: ulaw -> g729<o:p></o:p></p>
<p class="MsoNormal">[10/03 11:29:34.240] DEBUG[21414][C-00000226] channel.c: Channel PJSIP/121-000001d2 setting read format path: ulaw -> g729<o:p></o:p></p>
<p class="MsoNormal">[10/03 11:29:34.240] DEBUG[21414][C-00000226] channel.c: Channel PJSIP/121-000001d2 setting read format path: g729 -> g729<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>