[Asterisk-Dev] app_rpt and iaxcomm ptt

Steve Kann stevek at stevek.com
Thu Aug 25 10:52:43 MST 2005


Andreas Bayer wrote:

>Am Donnerstag, 25. August 2005 17:35 schrieb hwstar at rodgers.sdcoxmail.com:
>  
>
>>We have not tested iaxcomm with app_rpt.
>>
>>app_rpt uses control frames (AST_CONTROL_RADIO_UNKEY,
>>AST_CONTROL_RADIO_KEY) to send key and unkey states. iaxcomm would need to
>>be modified to send these frames when the ptt button is pressed on the
>>client side. It would also be handy to modify iaxcomm to send commands to
>>the radio using text frames.
>>    
>>
>
>i thought iaxcomm (in ptt mode) only send audio frames when the ptt button is 
>pressed.
>
>It should be easy to implement that app_rpt detect that there a no more audio 
>frames and emulate these control frames.
>There a several voip-clients with functions similar to ptt. So all these apps 
>could be used for radio messages with this emulation.
>  
>

The latest iaxclient, and, by extension, iaxcomm, also send a CNG frame 
when they stop sending audio.  So, app_rpt can easily keep track of the 
PTT state:

Start in state OFF.

State OFF -- receive a voice frame -> State ON
State ON -- receive a CNG frame -> State OFF

-SteveK




More information about the asterisk-dev mailing list