ChanSpy GoSub

Hi there,

I have a special setting in extensions_custom.conf, that disables ChanSpy’s very slow announcements (the ones that go “S-P-Y-dash-P-J-S-I-P-slash-2-3-4”), but now that Asterisk moved from Macro to GoSub, it doesn’t work anymore: it declines calls to 555, due to an old line in the config file.

Do you guys know the translation to GoSub for the following line?

exten => 555,1,Macro(user-callerid,q)

Here’s the entire part of the config file, that’s related to ChanSpy:

[from-internal-custom]
exten => 555,1,Macro(user-callerid,q)
exten => 555,n,Answer
exten => 555,n,Wait(1)
exten => 555,n,ChanSpy(,q)
exten => 555,n,Hangup

Thanks in advance

From the Asterisk CLI on 17, the gosub is:

exten => 555,1,Gosub(macro-user-callerid,s,1())
*CLI> dialplan show 555@from-internal
[ Included context 'app-chanspy' created by 'pbx_config' ]
  '555' =>          1. Gosub(macro-user-callerid,s,1())           [extensions_additional.conf:3026]
                    2. Answer()                                   [extensions_additional.conf:3027]
                    3. Wait(1)                                    [extensions_additional.conf:3028]
                    4. ChanSpy()                                  [extensions_additional.conf:3029]
                    5. Hangup()                                   [extensions_additional.conf:3030]

That fixed it, thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.