Moderators: muppetmaster, Moderator, Support
[from-pstn-pri]
exten => _X.,1,Monitor(,,b)
exten => _X.,n,Dial(DAHDI/g11/${EXTEN})
exten => _X.,1,Answer
exten=>_X.,,n,Set(CALLFILENAME=/var/spool/asterisk/monitor/${CALLERID(num)}-${STRFTIME(${EPOCH},%Y%m%d-%H%M)})
exten => _X.,n,Monitor(wav,${CALLFILENAME},m)
exten => _X.,n,Dial(DAHDI/g3/${EXTEN})
exten => _X.,1,Answer
exten=>_X.,n,Set(CALLFILENAME=/var/spool/asterisk/monitor/${CALLERID(num)}-${STRFTIME(${EPOCH},%Y%m%d-%H%M)})
exten => _X.,n,Monitor(wav,${CALLFILENAME},m)
The PRI is splinted and I have taken one parallel connection from that. And that PRI parallel end is plugged into the AX-4E card. ( The parallel cable is RJ-45 cross cable as per your suggestion )
The PRI came up. The calls coming on the Standard PBX should also come to Asterisk. As the PRI line is parallel in Standard PBX and Asterisk. But there is no event on asterisk. I m not getting anything on asterisk.
[PSTN-IN]
exten => _X.,1,Monitor(,,b)
exten => _X.,n,Dial(DAHDI/g2/${EXTEN})
[PBX-IN]
exten => _X.,1,Monitor(,,b)
exten => _X.,n,Dial(DAHDI/g1/${EXTEN})
* flags: If flags contains the letter m, then when recording finishes, Asterisk will execute a unix program to combine the two sound files into a single sound file. By default, Asterisk will execute soxmix and then delete the original two sound files. Note that sox/soxmix may not necessarily understand the sound format (e.g. alaw) and can't therefore mix the in and out files down to one single file. You may specify a different mixing method by setting the MONITOR_EXEC channel variable to the path of the unix program you wish executed, then call Monitor to begin recording. At the completion of recording, the specified unix program will be executed with three command-line parameters: the two sound files and the filename where the program should save the combined sound file. In this situation, earlier versions of Asterisk will not delete the two original sound files; it's up to your program to do that if you need/wish to. The "m" flag is settable through the manager interface. Also see b - Don't begin recording unless a call is bridged to another channel.
Users browsing this forum: No registered users and 11 guests