Hi Malcolm
Just to clarify …
Can i do playback right after chanspy on the dialplan?
I am originating call between exten 123 and 456 like so:
And the dialplan looks like this:
[code][dummy]
exten => 123,1,Answer()
exten => 123,n,Wait(30)
exten => 123,n,Hangup()
exten => 456,1,Answer()
exten => 456,1,ChanSpy(“SIP”,b)
exten => 456,n,Playback(hello-world)
exten => 456,1,Hangup[/code]
I can see on the cli that the call was originated and asterisk plays the file on extension 456 (the local channels) but not the SIP channels. I am surely missing something …
The cli looks something like this:
== Spying on channel SIP/CISCO-00000029
[May 10 10:37:45] NOTICE[10006]: app_chanspy.c:414 start_spying: Attaching Local/123@dummy-e45f;1 to SIP/CISCO-00000029
[May 10 10:37:45] NOTICE[10006]: app_chanspy.c:414 start_spying: Attaching Local/123@dummy-e45f;1 to SIP/CISCO-00000029
[May 10 10:37:45] NOTICE[10006]: app_chanspy.c:414 start_spying: Attaching Local/123@dummy-e45f;1 to SIP/CISCOIN-00000028
-- Executing [123@dummy:1] NoOp("Local/123@dummy-d078;2", ""In Dummy"") in new stack
-- Executing [123@dummy:2] Answer("Local/123@dummy-d078;2", "") in new stack
-- Executing [456@dummy:1] Answer("Local/123@dummy-d078;1", "") in new stack
-- Executing [456@dummy:2] Playback("Local/123@dummy-d078;1", "hello-world") in new stack
-- <Local/123@dummy-d078;1> Playing 'hello-world.gsm' (language 'en')
-- Executing [123@dummy:3] Playback("Local/123@dummy-d078;2", "hello-world") in new stack
-- <Local/123@dummy-d078;2> Playing 'hello-world.gsm' (language 'en')
-- Auto fallthrough, channel 'Local/123@dummy-d078;1' status is 'UNKNOWN'
== Spawn extension (dummy, 123, 3) exited non-zero on 'Local/123@dummy-d078;2'
== Spawn extension (nts-online, s, 7) exited non-zero on 'SIP/CISCOIN-00000028'
== Done Spying on channel SIP/CISCO-00000029
-- <Local/123@dummy-a257;1> Playing 'beep.gsm' (language 'en')
Thanks for your continued help!