Skip to main content

YAC

About

Until someone writes mod_yac you can do it like this:

Click here to expand Table of Contents

<action application="system" data="echo -e @CALL${caller_id_name}~${caller_id_number}\\0|nc -q 0 192.168.1.10 10629"/>

On CentOS 5.2 you should strip out the "-q 0" as that is not a valid option, so it becomes.

<action application="system" data="echo -e @CALL${caller_id_name}~${caller_id_number}\\0|nc 192.168.1.10 10629"/>

I have added this action to the default dialplan in the extension "Local_Extention" like this: (when extention 1010 gets called, a yac message will be send to a yac listener on 192.168.1.10)

<condition field="destination_number" expression="^1010$">
<action application="set" data="command=echo -e @CALL${caller_id_name}~${caller_id_number}\\0|nc 192.168.1.10 10629"/>
<action application="system" data="${command}"/>
</condition>

Get the listener here: http://sunflowerhead.com/software/yac/index.html