Changeset 161
- Timestamp:
- 09/17/07 17:03:07
(1 year ago)
- Author:
- klaus
- Message:
- set proper audio format on channel
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r160 |
r161 |
|
| 861 | 861 | u = ast_module_user_add(chan); |
|---|
| 862 | 862 | |
|---|
| | 863 | /* we only do support AMR as voice codec - thus make sure that |
|---|
| | 864 | Asterisk's core transcode voice frames to/from AMR */ |
|---|
| | 865 | if (ast_set_read_format(chan, AST_FORMAT_AMRNB)) |
|---|
| | 866 | ast_log(LOG_WARNING, "app_h324m_call: Unable to set read format to AMR-NB!\n"); |
|---|
| | 867 | if (ast_set_write_format(chan, AST_FORMAT_AMRNB)) |
|---|
| | 868 | ast_log(LOG_WARNING, "app_h324m_call: Unable to set read format to AMR-NB!\n"); |
|---|
| | 869 | |
|---|
| 863 | 870 | /* Request new channel */ |
|---|
| 864 | 871 | pseudo = ast_request("Local", AST_FORMAT_ALAW | AST_FORMAT_ULAW, data, &reason); |
|---|
| 865 | | /* pseudo = ast_request("Local", AST_FORMAT_DIGITAL, data, &reason);*/ |
|---|
| 866 | 872 | |
|---|
| 867 | 873 | /* If somthing has gone wrong */ |
|---|
Download in other formats:
|
|