No subject


Sun Jul 19 19:54:31 CDT 2009


 

-- SIP/ vaso -e26c answered Zap/14-1

                -- Executing DumpChan("SIP/ vaso -e26c", "") in new stack

 

 

 

    -- Executing DumpChan("SIP/vaso-e26c", "") in new stack

 

Dumping Info For Channel: SIP/vaso-e26c:

============================================================================
====

Info:

Name=               SIP/vaso-e26c

Type=               SIP

UniqueID=           1280487752.1809

CallerID=           8221

CallerIDName=       (N/A)

DNIDDigits=         (N/A)

State=              Up (6)

Rings=              0

NativeFormat=       2

WriteFormat=        4

ReadFormat=         4

1stFileDescriptor=  74

Framesin=           3

Framesout=          0

TimetoHangup=       0

ElapsedTime=        0h0m0s

Context=            macro-testing

Extension=          s

Priority=           1

CallGroup=

PickupGroup=

Application=        DumpChan

Data=               (Empty)

Blocking_in=        (Not Blocking)

 

Variables:

MACRO_DEPTH=1>

ARG1=30086

MACRO_PRIORITY=1

MACRO_CONTEXT=siptest

============================================================================
====

    -- Executing AGI("SIP/vaso-e26c", "whopicked.rb") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/whopicked.rb

AGI Tx >> agi_request: whopicked.rb

AGI Tx >> agi_channel: SIP/vaso-e26c

AGI Tx >> agi_language: en

AGI Tx >> agi_type: SIP

AGI Tx >> agi_uniqueid: 1280487752.1809

AGI Tx >> agi_callerid: 8221

AGI Tx >> agi_calleridname: unknown

AGI Tx >> agi_callingpres: 3

AGI Tx >> agi_callingani2: 0

AGI Tx >> agi_callington: 33

AGI Tx >> agi_callingtns: 0

AGI Tx >> agi_dnid: unknown

AGI Tx >> agi_rdnis: unknown

AGI Tx >> agi_context: macro-testing

AGI Tx >> agi_extension: s                                         

AGI Tx >> agi_priority: 2

AGI Tx >> agi_enhanced: 0.0

AGI Tx >> agi_accountcode:

AGI Tx >>

    -- AGI Script whopicked.rb completed, returning 0

    -- Executing Hangup("SIP/vaso-e26c", "") in new stack    

 

 

 

I need simple whopicked.agi (instead of .rb) which will simply take the
value 30086 (that I pass to macro)

And do this:

 

                UPDATE call_log SET local = 'CHANNEL' WHERE id = '30086'

                

Where channel is agi_channel: SIP/vaso-e26c

 

 

This should be simple - no ruby  - just agi.

 

 

 

 

 


------=_NextPart_000_0183_01CB2FE9.8E423460
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DWordSection1>

<p class=3DMsoNormal>I am trying this approach to see who picked the =
line:<o:p></o:p></p>

<p class=3DMsoNormal>Here is what i am doing:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in;text-indent:.5in'>EXEC =
DIAL SIP/ vaso
&amp;Zap/35||M(testing^<b>30086</b>)<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Macro:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>[macro-testing]<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>exten =3D&gt; =
s,1,DumpChan()<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>exten =3D&gt; =
s,2,AGI(whopicked.rb)<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>exten =3D&gt; =
s,3,Hangup()<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>From console:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in;text-indent:.5in'>-- =
SIP/ vaso -e26c
answered Zap/14-1<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.0in'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --
Executing DumpChan(&quot;SIP/ vaso -e26c&quot;, &quot;&quot;) in new =
stack<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.0in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>&nbsp;&nbsp;&nbsp; -- =
Executing
DumpChan(&quot;SIP/vaso-e26c&quot;, &quot;&quot;) in new =
stack<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>Dumping Info For =
Channel:
SIP/vaso-e26c:<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>Info:<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Name=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SIP/vaso-e26c<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Type=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SIP<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>UniqueID=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;
1280487752.1809<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>CallerID=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;
8221<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>CallerIDName=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;
(N/A)<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>DNIDDigits=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;
(N/A)<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>State=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Up (6)<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Rings=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>NativeFormat=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;
2<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>WriteFormat=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;
4<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>ReadFormat=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;
4<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>1stFileDescriptor=3D&nbsp; 74<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Framesin=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;
3<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Framesout=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;
0<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>TimetoHangup=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;
0<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>ElapsedTime=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;
0h0m0s<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Context=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
macro-testing<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Extension=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;
s<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Priority=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;
1<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>CallGroup=3D<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>PickupGroup=3D<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Application=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;
DumpChan<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Data=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(Empty)<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Blocking_in=3D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;
(Not Blocking)<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>Variables:<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>MACRO_DEPTH=3D1&gt;<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>ARG1=3D30086<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>MACRO_PRIORITY=3D1<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>MACRO_CONTEXT=3Dsiptest<o:p></o:p></p>

<p class=3DMsoNormal =
style=3D'margin-left:1.5in'>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>&nbsp;&nbsp;&nbsp; -- =
Executing
AGI(&quot;SIP/vaso-e26c&quot;, &quot;whopicked.rb&quot;) in new =
stack<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>&nbsp;&nbsp;&nbsp; -- =
Launched AGI
Script /var/lib/asterisk/agi-bin/whopicked.rb<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_request:
whopicked.rb<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_channel:
SIP/vaso-e26c<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_language: en<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_type: SIP<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_uniqueid:
1280487752.1809<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_callerid: 8221<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_calleridname:
unknown<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_callingpres: 3<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_callingani2: 0<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_callington: 33<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_callingtns: 0<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_dnid: unknown<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_rdnis: unknown<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_context:
macro-testing<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_extension:
s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_priority: 2<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_enhanced: 0.0<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx &gt;&gt; =
agi_accountcode:<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>AGI Tx =
&gt;&gt;<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>&nbsp;&nbsp;&nbsp; -- =
AGI Script
whopicked.rb completed, returning 0<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'>&nbsp;&nbsp;&nbsp; -- =
Executing
Hangup(&quot;SIP/vaso-e26c&quot;, &quot;&quot;) in new =
stack&nbsp;&nbsp;&nbsp; <o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:1.5in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>I need simple whopicked.agi (instead of .rb) which =
will
simply take the value 30086 (that I pass to macro)<o:p></o:p></p>

<p class=3DMsoNormal>And do this:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p =
class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UPDATE
call_log SET local =3D 'CHANNEL' WHERE id =3D '30086'<o:p></o:p></p>

<p =
class=3DMsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p>

<p class=3DMsoNormal>Where channel is agi_channel: =
SIP/vaso-e26c<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>This should be simple &#8211; no ruby&nbsp; - just =
agi.<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

 <BR><BR>__________ Information from ESET NOD32 Antivirus, version of =
virus signature database 5325 (20100730) __________<BR><BR>The message =
was checked by ESET NOD32 Antivirus.<BR><BR><A =
HREF=3D"http://www.eset.com">http://www.eset.com</A><BR> </body>

</html>

------=_NextPart_000_0183_01CB2FE9.8E423460--




More information about the asterisk-users mailing list