<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<small><small><font face="Helvetica, Arial, sans-serif"><small><small><small><font
size="3" color="black"><small><small><small><small><small><span
style="font-size: 12pt;"><small>exten =>
start,n,Set(_PICKUPMARK=${CALLERID(num)})<br>
<br>
In your example this means that the calling number (for example
3291234567 in Belgium or 49215790657 in Germany) will be set as
PICKUPMARK.<br>
<br>
If I want to pick up Phone-1 which rings on an incoming call, how can I
know on which incoming number the call was made ??</small><br>
<br>
</span></small></small></small></small></small></font></small></small></small></font></small></small><font
size="3" color="black" face="Helvetica, Arial, sans-serif"><span
style="font-size: 12pt;"><small>exten =>
**XX1,n,Pickup(4001@PICKUPMARK)</small></span></font><small><br>
<small><font face="Helvetica, Arial, sans-serif"><small><small><small><font
size="3" color="black"><small><small><small><small><small><span
style="font-size: 12pt;"><small><br>
This needs to be more dynamic as I have multiple lines and multiple
users...</small><br>
<br>
<small>Jonas.</small></span></small></small></small></small></small></font></small></small></small></font><small><font
size="3" color="black" face="Helvetica, Arial, sans-serif"><small><small><small><span
style="font-size: 12pt;"></span></small></small></small></font></small></small></small><font
size="3" color="black" face="Times New Roman"><span
style="font-size: 12pt;"><br>
</span></font><font face="Helvetica, Arial, sans-serif"><br>
</font><br>
On 06/17/2010 06:17 PM, Danny Nicholas wrote:
<blockquote cite="mid:201006171607.o5HG7EGP016432@mail.debsinc.com"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;">If you stand
on one foot, this might work:
(assumes you get CALLERID(num) to be 4001 for IPphone1 and 4002 for
IPphone2;
In my shop DAHDI-1 is 4001 and DAHDI-2 is 4002)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black"
face="Times New Roman"><span style="font-size: 12pt;">[sub-settings]<br>
exten => start,1,NoOp()<br>
exten => start,n,Set(_PICKUPMARK=${CALLERID(num)})<br>
exten => start,n,Return()<br>
<br>
[example-pickup]<br>
exten => **XX1,1,NoOp()<br>
exten => **XX1,n,Pickup(4001@PICKUPMARK)<br>
exten => **XX2,1,NoOp()<br>
exten => **XX2,n,Pickup(4002@PICKUPMARK)<br>
<br>
</span></font><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
</div>
</o:smarttagtype></blockquote>
<br>
</body>
</html>