Changeset 161

Show
Ignore:
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
  • app_h324m/app_h324m.c

    r160 r161  
    861861        u = ast_module_user_add(chan); 
    862862 
     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 
    863870        /* Request new channel */ 
    864871        pseudo = ast_request("Local", AST_FORMAT_ALAW | AST_FORMAT_ULAW, data, &reason); 
    865 /*      pseudo = ast_request("Local", AST_FORMAT_DIGITAL, data, &reason);*/ 
    866872  
    867873        /* If somthing has gone wrong */ 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software