The default data format should fit the point code of the ISUP call controller.

git-svn-id: http://voip.null.ro/svn/yate@3227 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-04-21 08:57:27 +00:00
parent 2024c8f685
commit f61060d708
2 changed files with 13 additions and 4 deletions

View File

@ -134,10 +134,10 @@
; Defaults to user-provided if missing or incorrect
;screening=user-provided
; format: string: Default data format for outgoing calls. Values: alaw, mulaw, g721
; Defaults to alaw if missing or incorrect
; format: string: Default data format for outgoing calls. Values: alaw, mulaw, g721
; Defaults to mulaw for ANSI and Japan point codes, alaw for all others
; alaw is used commonly in Europe while mulaw is used commonly in US and Japan.
;format=alaw
;format=
; print-messages: boolean: Print decoded protocol data units to output
; This option is applied on reload

View File

@ -2254,7 +2254,16 @@ SS7ISUP::SS7ISUP(const NamedList& params)
m_format = params.getValue("format");
if (-1 == lookup(m_format,SignallingUtils::dict(0,0),-1))
m_format = "alaw";
switch (m_type) {
case SS7PointCode::ANSI:
case SS7PointCode::ANSI8:
case SS7PointCode::Japan:
case SS7PointCode::Japan5:
m_format = "mulaw";
break;
default:
m_format = "alaw";
}
const char* rpc = params.getValue("remotepointcode");
m_remotePoint = new SS7PointCode(0,0,0);