[asterisk-bugs] [Asterisk 0015975]: Unable to change the packetization settings (ptime) for codecs from default of 20ms

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 2 11:30:00 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15975 
====================================================================== 
Reported By:                jehanzeb
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15975
Category:                   Codecs/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           Older 1.4 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-28 05:27 CDT
Last Modified:              2009-10-02 11:30 CDT
====================================================================== 
Summary:                    Unable to change the packetization settings (ptime)
for codecs from default of 20ms
Description: 
Hi, I am currently running Asterisk version 1.4.21
my problem is that even though i have tried to force outbound calls with a
codec packetization rate of 10ms, or 30ms, asterisk keeps sending the
Invite message with the default ptime of 20ms.

my sip.config file for this peer is 

[sylantro]
type=friend
disallow=all                    ; First disallow all codecs
disallow=gsm
allow=ulaw:10,alaw:30           ; Allow codecs in order of preference
autoframing=yes
context=testcontext
trustrpid = yes
;dtmfmode=inband
canreinvite=yes
host=195.219.133.219
port=5065

sip show peer command shows the following settings

Name       : sylantro
  Secret       : <Not set>
  MD5Secret    : <Not set>
  Context      : testcontext
  Subscr.Cont. : <Not set>
  Language     : en
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  Callgroup    :
  Pickupgroup  :
  Mailbox      :
  VM Extension : asterisk
  LastMsgsSent : 32767/65535
  Call limit   : 0
  Dynamic      : No
  Callerid     : "" <>
  MaxCallBR    : 384 kbps
  Expire       : -1
  Insecure     : no
  Nat          : RFC3581
  ACL          : No
  T38 pt UDPTL : No
  CanReinvite  : Yes
  PromiscRedir : Yes
  User=Phone   : No
  Video Support: No
  Trust RPID   : Yes
  Send RPID    : Yes
  Subscriptions: Yes
  Overlap dial : Yes
  DTMFmode     : auto
  LastMsg      : 0
  ToHost       : 195.219.133.219
  Addr->IP     : 195.219.133.219 Port 5065
  Defaddr->IP  : 0.0.0.0 Port 0
  Def. Username:
  SIP Options  : (none)
  Codecs       : 0xc (ulaw|alaw)
  Codec Order  : (ulaw:10,alaw:30)
  Auto-Framing:  Yes
  Status       : Unmonitored
  Useragent    :
  Reg. Contact :
====================================================================== 

---------------------------------------------------------------------- 
 (0111795) jehanzeb (reporter) - 2009-10-02 11:30
 https://issues.asterisk.org/view.php?id=15975#c111795 
---------------------------------------------------------------------- 
Hi, I have tried setting the codec setting in the [general] portion of the
sip.conf file and this seems to do the trick. i get  the required codec
packetization rate in the invite for the Outgoing INVITE. i guess my
problem isn't why the packetization isn't being set, it to do with getting
asterisks to recognize that the outgoing call is going through a peer thats
been setup in the sip.conf and not just an unrecognized peer. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-02 11:30 jehanzeb       Note Added: 0111795                          
======================================================================




More information about the asterisk-bugs mailing list