How to set a destination to trigger a custom context?

Hello, I am running Trixbox 2.6 with FreePBX 2.4.0. Thanks in advance for any insights you can provide on this question.

I would like to run a command using System() to send some callerID information to an external serial device, but I have been unsuccessful thus far in getting my custom context with the System() command triggered. Here’s what I tried:

  1. Create a context in extensions_custom.conf:
  [custom-ledsign]
  exten => s,1,System(/bin/echo "<ID01><PA>${CALLERID(num)} ${CALLERID(NAME)}" > /dev/prolite) 
  1. Assign the context to a misc destination in freePBX:
    description: LED sign
    dial: {custom-ledsign,s,1}
  2. Assign the destination to an application:
    description: Sign
    Feature code: 197
  3. Add the feature code (197) to an extension’s followme group

When I dial from the outside and type an extension that has the feature code included in its followme group, I don’t see any evidence in the log that we executed the custom-ledsign context.

Any help would be appreciated. Here is some of the log. Thanks.

Rich

dialparties.agi: Methodology of ring is ‘ringall-prim’
– dialparties.agi: Added extension 125 to extension map
– dialparties.agi: Added extension 127 to extension map
– dialparties.agi: Added extension 197 to extension map
– dialparties.agi: Extension 125 cf is disabled
– dialparties.agi: Extension 127 cf is disabled
– dialparties.agi: Extension 197 cf is disabled
– dialparties.agi: Extension 125 do not disturb is disabled
– dialparties.agi: Extension 127 do not disturb is disabled
– dialparties.agi: Extension 197 do not disturb is disabled
> dialparties.agi: extnum 125 has: cw: 1; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 125 has ExtensionState: 0
– dialparties.agi: dbset CALLTRACE/125 to 831XXXXXXX
> dialparties.agi: extnum 127 has: cw: 1; hascfb: 0 [] hascfu: 0 []
– dialparties.agi: dbset CALLTRACE/127 to 831XXXXXXX
> dialparties.agi: extnum 197 has: cw: 0; hascfb: 0 [] hascfu: 0 []
> dialparties.agi: ExtensionState: -1
dialparties.agi: Extension 197 has ExtensionState: -1
– dialparties.agi: Checking CW and CFB status for extension 197
– dialparties.agi: dbset CALLTRACE/197 to 831XXXXXXX
– dialparties.agi: Filtered ARG3: 125-127-197
> dialparties.agi: NODEST: 125 adding M(auto-blkvm) to dialopts: trM(auto-blkvm)
> dialparties.agi: NODEST: 125 blkvm enabled macro already in dialopts: trM(auto-blkvm)
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“SIP/4.68.250.148-09354c80”, “SIP/125&SIP/127|20|trM(auto-blkvm)”) in new stack
– Called 125
– Called 127
– Incoming call: Got SIP response 500 “Internal Server Error” back from 192.168.16.48
– SIP/127-09366048 is ringing
– SIP/125-093602d8 is ringing