Phones - Sangoma P Codes
Table of Contents
Overview
Sangoma phone configs use "P Codes" or Programming Codes. Each P Code is assigned a number. The configs then use a standard XML layout, ie: <pcode>value</pcode>. Below is a list of all P Codes, the value that Endpoint Manager sets by default, and the description of the P Code including possible settings.
Sangoma Phone P Codes
P271
EPM Default Value: __line1Enable__
Description: Account Active (In Use). 0 - No, 1 - Yes
P47
EPM Default Value: __line1Dest__:__line1ServerPort__
Description: Primary SIP Server(eg:sip.mycompany.com or IP address)
P4567
EPM Default Value: 0
Description: Prefer Primary SIP Server (In Use). 0 - No, 1 - Yes
P130
EPM Default Value: __transport1__
Description: SIP Transport 0 - UDP, 1 - TCP, 2 - TLS
P52
EPM Default Value: 2
Description: NAT Traversal. 0 - No, 1 - STUN 2 - No,but send keep alive
P35
EPM Default Value: __line1Ext__
Description: SIP User ID
P36
EPM Default Value: __line1Ext__
Description: Authenticate ID
P34
EPM Default Value: __line1Pass__
Description: Authenticate password
P3
EPM Default Value: __line1Name__
Description: Name
P103
EPM Default Value: 0
Description: DNS Mode. 0 - A Record, 1 - SRV, 2 - NAPTR/SRV
P63
EPM Default Value: 0
Description: User ID Is Phone Number.0 - No, 1 - Yes
P31
EPM Default Value: __line1Enable__
Description: SIP Registration. 0 - No, 1 - Yes
P81
EPM Default Value: 1
Description: Unregister On Reboot.0 - No, 1 - Yes
P32
EPM Default Value: 15
Description: Register Expiration(in minutes. default 1 hour, max 45 days)
P109
EPM Default Value: 1
Description: Outgoing Call Without Registration.0 - No, 1 - Yes
P78
EPM Default Value: 0
Description: Use Random Port.0 - No, 1 - Yes.
When set to YES (value of 1) the SIP source port the phone uses will be randomly generated rather than using 5060. This can be very useful in resolving NAT issues where many phones use the same port of 5060. Using 5060 for many phones is not an issue in itself, but this can expose issues in certain router NAT configurations. To quickly resolve these issues the phones can all just use different SIP ports. In summary, if this option is needed it's essentially a work around for a NAT/router issue.
P33
EPM Default Value: __voicemail__
Description: Voice Mail UserID(UserID for voice mail system)
P57
EPM Default Value: __line1Codec1__
Description: Preferred Vocoder In listed order 0 - PCMU, 2 - G.726-32, 4 - G.723.1, 8 - PCMA, 9 - G.722, 18 - G.729A/B
P58
EPM Default Value: __line1Codec2__
Description: Second Preferred Vocoder In listed order 0 - PCMU, 2 - G.726-32, 4 - G.723.1, 8 - PCMA, 9 - G.722, 18 - G.729A/B