Ignore:
Timestamp:
Jun 25, 2008 6:18:32 PM (16 years ago)
Author:
nanang
Message:

Ticket #543: Updated mod_pseq & mod_media_playrec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua/mod_media_playrec.py

    r2051 r2052  
    3535         
    3636        # Get input file name 
    37         endpt.sync_stdout() 
    38         endpt.send("dc") 
    39         line = endpt.expect(const.MEDIA_PLAY_FILE) 
    40         ud.input_filename = re.compile(const.MEDIA_PLAY_FILE).match(line).group(1) 
     37        ud.input_filename = re.compile(const.MEDIA_PLAY_FILE).search(endpt.inst_param.arg).group(1) 
    4138        endpt.trace("Input file = " + ud.input_filename) 
    4239 
    4340        # Get output file name 
    44         endpt.sync_stdout() 
    45         endpt.send("dc") 
    46         line = endpt.expect(const.MEDIA_REC_FILE) 
    47         ud.output_filename = re.compile(const.MEDIA_REC_FILE).match(line).group(1) 
     41        ud.output_filename = re.compile(const.MEDIA_REC_FILE).search(endpt.inst_param.arg).group(1) 
    4842        endpt.trace("Output file = " + ud.output_filename) 
    4943 
Note: See TracChangeset for help on using the changeset viewer.