<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">We would be happy to accept a pull request adding some logging there.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 22, 2015, at 3:36 PM, Sean Devoy <<a href="mailto:sdevoy@bizfocused.com" class="">sdevoy@bizfocused.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">*** RESOLVED ***<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">I have some testing to do, but I think I found the problem. All of my tests have been dialing a did that routes directly to a test extension, then intercepting that call from that extension. The user’s calls however take a slightly different route. They come in and got directly to an IVR, then to an extension which seems to not allow intercept!<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">The problem lies in my intercept call dialplan:<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">extension</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">directed-call-pickup</span>"<span style="color: blue;" class="">></span><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 1in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""><!--</span><span style="font-size: 9.5pt; font-family: Consolas; color: green;" class=""><span class="Apple-converted-space"> </span>picks up the call with db key saved like this: <action application="db"<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 1in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: green;" class="">data="insert/ESTA_call_pickup_uuid/22/${uuid}"/> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">--></span><span style="font-size: 9.5pt; font-family: Consolas;" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">condition</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">field</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">destination_number</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">expression</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">^\*\*(\d\d)$</span>"<span style="color: blue;" class="">></span><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">answer</span>"<span style="color: blue;" class="">/></span><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <span class="Apple-converted-space"> </span></span><b class=""><span style="font-family: Consolas; color: blue;" class=""><</span></b><b class=""><span style="font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span></b><b class=""><span style="font-family: Consolas; color: blue;" class=""> </span></b><b class=""><span style="font-family: Consolas; color: red;" class="">application</span></b><b class=""><span style="font-family: Consolas; color: blue;" class="">=</span></b><b class=""><span style="font-family: Consolas;" class="">"<span style="color: blue;" class="">set</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">data</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">intercept_unanswered_only=true</span>"<span style="color: blue;" class="">/></span><o:p class=""></o:p></span></b></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">intercept</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">data</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">${db(select/esta_call_pickup_uuid/$1)}</span>"<span style="color: blue;" class="">/></span><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">sleep</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">data</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">2000</span>"<span style="color: blue;" class="">/></span><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">condition</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">></span><span style="font-size: 9.5pt; font-family: Consolas;" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">extension</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">></span><span style="font-size: 9.5pt; font-family: Consolas;" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">A DID bridged directly to an extension that has not been “answered” can be picked up just as expected. However, a DID that comes in and goes to an IVR (which requires the call to be “answer()”ed), and then is bridged to one or more extensions CANNOT be intercepted if you include:<span class="Apple-converted-space"> </span></span><b class=""><span style="font-family: Consolas; color: blue;" class="">intercept_unanswered_only=true.</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">It appears the correct variable is:<span class="Apple-converted-space"> </span></span><b class=""><span style="font-family: Consolas; color: blue;" class="">intercept_unbridged_only=true</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Hope this helps someone else in the future.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Maybe it is just me, but perhaps if an “intercept()” fails it could give a hint in the log what happened and why!<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Thanks to those that tried to help.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Sean<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div class=""><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" class="">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" class="">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Sean Devoy<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Sunday, March 22, 2015 12:37 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] Call intercept.<o:p class=""></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">I would think so too. Since I did provide the full logs, and I can’t figure out what happened, could someone PLEASe take a look:<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In this pastebin: <span class="Apple-converted-space"> </span><a href="https://pastebin.freeswitch.org/24023" target="_blank" style="color: purple; text-decoration: underline;" class=""><span style="color: rgb(31, 73, 125); text-decoration: none;" class="">https://pastebin.freeswitch.org/24023</span></a><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Line 1 through about 170 show the call coming in from the IVR to an extension “MAINLINE”.<br class="">it is bridged to one extension immediately (ext 10) and a couple of others with [leg delay]<br class="">It has UUID: 574583db-22d2-4b7f-a9a4-3cadd419b93d<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In Line 284, you can see extension 20 dialed **10 to intercept extension 10.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In line 298, It matches the dial plan **dd.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In line 299-to 302 you can see the dialplan for the intercept.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In line 334, you can see: “intercept(574583db-22d2-4b7f-a9a4-3cadd419b93d)”<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In line 340, you see<span class="Apple-converted-space"> </span><a href="mailto:sofia/external/20@fs_esta.bizfocused.com%20entering%20state%20%5bready%5d%5b200%5d" style="color: purple; text-decoration: underline;" class=""><span style="color: rgb(31, 73, 125); text-decoration: none;" class="">sofia/external/20@fs_esta.bizfocused.com entering state [ready][200]</span></a><br class="">Does that mean the intercept was successful?<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -0.25in;" class=""><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" class=""><span class="">·<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Then after EXCTLY the “sleep(2000)” the channel for ext 20 says “has executed the last dialplan instruction, hanging up.”<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Does “intercept()” not bridge the two legs together? <o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Am I missing a step? <o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">I find no further entries in the log for the intercepted UUID.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Thanks for looking.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Sean<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;" class="">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" style="color: purple; text-decoration: underline;" class="">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Brian West<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, March 19, 2015 11:48 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] Call intercept.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">Sounds like the UUID isn't there that you expected, so it couldn't pick it up. I'm guessing the full logs would show that. <o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">On Thu, Mar 19, 2015 at 10:28 AM, Sean Devoy <<a href="mailto:sdevoy@bizfocused.com" target="_blank" style="color: purple; text-decoration: underline;" class="">sdevoy@bizfocused.com</a>> wrote:<o:p class=""></o:p></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;" class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Anyone help with this, PLEASE? The customer is quite upset.</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Thank you,</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Sean</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span><o:p class=""></o:p></div><div class=""><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;" class="">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;" class="">freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Sean Devoy<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, March 18, 2015 3:46 PM</span><o:p class=""></o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] Call intercept.<o:p class=""></o:p></div></div></div></div></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Yes, that is what I pass to the intercept call vie the dialplan/database. Check the log:</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">62cc7ef5-f121-4fa2-97be-e45ff28d9c95 Dialplan:<span class="Apple-converted-space"> </span><a href="mailto:sofia/external/20@fs_esta.bizfocused.com" target="_blank" style="color: purple; text-decoration: underline;" class="">sofia/external/20@fs_esta.bizfocused.com</a><span class="Apple-converted-space"> </span>Action<span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;" class="">intercept(${db(select/esta_call_pickup_uuid/10)})</span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">. . . .<span class="Apple-converted-space"> </span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">62cc7ef5-f121-4fa2-97be-e45ff28d9c95 EXECUTE<span class="Apple-converted-space"> </span><a href="mailto:sofia/external/20@fs_esta.bizfocused.com" target="_blank" style="color: purple; text-decoration: underline;" class="">sofia/external/20@fs_esta.bizfocused.com</a><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;" class="">intercept(574583db-22d2-4b7f-a9a4-3cadd419b93d)</span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Sean</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;" class="">freeswitch-users-bounces@lists.freeswitch.org</a><span class="Apple-converted-space"> </span>[<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: purple; text-decoration: underline;" class="">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Brian West<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, March 18, 2015 3:39 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>FreeSWITCH Users Help<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Freeswitch-users] Call intercept.</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">intercept takes a UUID, not an extension number.<o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">On Wed, Mar 18, 2015 at 2:12 PM, Sean Devoy <<a href="mailto:sdevoy@bizfocused.com" target="_blank" style="color: purple; text-decoration: underline;" class="">sdevoy@bizfocused.com</a>> wrote:<o:p class=""></o:p></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;" class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">Hi All,<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">I have directed call intercept running via dialplan **\d\d (two digit extensions).<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">In this pastebin: <span class="Apple-converted-space"> </span><a href="https://pastebin.freeswitch.org/24023" target="_blank" style="color: purple; text-decoration: underline;" class="">https://pastebin.freeswitch.org/24023</a><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">You should see a call come from the IVR into “MAINLINE” which dials ext 10, then after delay adds other extensions. In this case, the person from extension 10 was at extension 20 and dialed **10. They report it did not work. I must say I am not clear if it worked or not. It appears to work, but ended with<span class="Apple-converted-space"> </span><span style="font-size: 9.5pt; font-family: Consolas;" class=""><a href="mailto:sofia/external/20@fs_esta.bizfocused.com%20has%20executed%20the%20last%20dialplan%20instruction,%20hanging%20up." target="_blank" style="color: purple; text-decoration: underline;" class="">sofia/external/20@fs_esta.bizfocused.com has executed the last dialplan instruction, hanging up.</a></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">Can someone who is more log savvy than I review that log and tell me what happened?</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">Perhaps my dialplan is missing something:</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">extension</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">directed-call-pickup</span>"<span style="color: blue;" class="">></span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <!--</span><span style="font-size: 9.5pt; font-family: Consolas; color: green;" class=""><span class="Apple-converted-space"> </span>picks up the call with db key saved like this: <action application="db" data="insert/ESTA_call_pickup_uuid/223/${uuid}"/> <span class="Apple-converted-space"> </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">--></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">condition</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">field</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">destination_number</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">expression</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">^\*\*(\d\d)$</span>"<span style="color: blue;" class="">></span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">answer</span>"<span style="color: blue;" class="">/></span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">set</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">data</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">intercept_unanswered_only=true</span>"<span style="color: blue;" class="">/></span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">intercept</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">data</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">${db(select/esta_call_pickup_uuid/$1)}</span>"<span style="color: blue;" class="">/></span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> <</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">action</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;" class="">application</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">=</span><span style="font-size: 9.5pt; font-family: Consolas;" class="">"<span style="color: blue;" class="">sleep</span>"<span style="color: blue;" class=""><span class="Apple-converted-space"> </span></span><span style="color: red;" class="">data</span><span style="color: blue;" class="">=</span>"<span style="color: blue;" class="">2000</span>"<span style="color: blue;" class="">/></span></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">condition</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class=""> </</span><span style="font-size: 9.5pt; font-family: Consolas; color: rgb(163, 21, 21);" class="">extension</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;" class="">></span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">I see in the log the uuid for the appropriate call is in the intercept statement. After intercept, I am missing something to bridge the 2 legs together?</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">Thanks,</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class="">Sean Devoy</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 9.5pt; font-family: Consolas;" class=""> </span><o:p class=""></o:p></div></div></div></blockquote></div></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br class=""></div></body></html>