Hi,
when an incoming call answered by dynamic agent i get a log as below, I want to grep that answered agent and pass it via curl to my url. please suggest on this thanks
– Executing [5056361@from-trunk-sip-synway-vodafone:1] Set(“SIP/synway-vodafone-0000188e”, “cnn=5056361-1246289360-soni”) in new stack
– Executing [5056361@from-trunk-sip-synway-vodafone:2] NoOp(“SIP/synway-vodafone-0000188e”, “5056361-1246289360-soni”) in new stack
– Executing [5056361@from-trunk-sip-synway-vodafone:3] Dial(“SIP/synway-vodafone-0000188e”, “SIP/305,g”) in new stack
– SIP/305-0000188f answered SIP/synway-vodafone-0000188e
– Executing [5056361@from-trunk-sip-synway-vodafone:4] Log(“SIP/synway-vodafone-0000188e”, “NOTICE, Alice call result: ANSWER”) in new stack
– Executing [5056361@from-trunk-sip-synway-vodafone:5] Set(“SIP/synway-vodafone-0000188e”, “CALLERID(num)=50563611246289360”) in new stack
– Auto fallthrough, channel ‘SIP/synway-vodafone-0000188e’ status is ‘ANSWER’
– Executing [h@from-trunk-sip-synway-vodafone:1] Set(“SIP/synway-vodafone-0000188e”, “GROUP()=OUT_5”) in new stack
– Executing [h@from-trunk-sip-synway-vodafone:2] Goto(“SIP/synway-vodafone-0000188e”, “from-trunk,h,1”) in new stack
– Executing [h@from-trunk:1] Macro(“SIP/synway-vodafone-0000188e”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/synway-vodafone-0000188e”, “1?theend”) in new stack
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/synway-vodafone-0000188e”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/synway-vodafone-0000188e”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/synway-vodafone-0000188e’ in macro ‘hangupcall’
== Spawn extension (from-trunk, h, 1) exited non-zero on ‘SIP/synway-vodafone-0000188e’