Add something to ext-group-custom

Discussion in 'General' started by MageMinds, Mar 13, 2009.

  1. MageMinds

    Joined:
    Jun 26, 2008
    Messages:
    55
    Likes Received:
    0
    Hi,

    I want to add something to ext-group-custom which is included in ext-group, my Ring Group is 600 and I want to execute a system command before making the 600 group ring. I don't know how to build that, since the first line of the ext-group is "exten => 600,1,..." I can't put an other "exten => 600,1,..." in the custom context...

    How can I execute that
    Code:
    exten => 600,1,System(/bin/echo -n -e "${CALLERID(name)}\\n${CALLERID(num)}\\n" | nc -w 1 10.77.2.20 10629)
    I don't care if the rule would be fired for every ring group, I only have one.

    Oh and by the way this is a command to send to a YAC (Yet An other CallerID) listener that run on my media center (Media Portal).

    Right now I'm using a custom context, but every phone number that call me get send to the YAC even if the call is being handled by the PBX and doesn't get to the ring group. If so, I don't want to see it, I only want to see the caller id on my screen when my ring group actually ring...

    Thanks in advance

    MageMinds
     
  2. nodonorte

    Joined:
    Nov 22, 2010
    Messages:
    1
    Likes Received:
    0
    did u found any solution?
     

Share This Page