zhouhailin / freeswitch-externals

FreeSWITCH externals projects
https://zhouhailin.github.io/freeswitch-externals/
Apache License 2.0
163 stars 84 forks source link

异步发送命令还是调用sendSyncSingleLineCommand? #30

Closed mark420524 closed 1 year ago

mark420524 commented 1 year ago

freeswitch-esl/src/main/java/link/thingscloud/freeswitch/esl/inbound/handler/InboundChannelHandler.java

public String sendAsyncCommand(final String command) { /*

sendAsyncCommand 方法内部还是调用 sendSyncSingleLineCommand 的方法,这样岂不是异步调用的也是同步命令?

zhouhailin commented 1 year ago

esl调用都是同步,sendAsyncCommand 在执行命令时使用 bgapi 同步等待一个jobuuid