<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<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]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;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:12.0pt'>[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:10.0pt;
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:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Jonas Kellens<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, June 17, 2010
11:01 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Asterisk
Users Mailing List - Non-Commercial Discussion</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
Unable to pickup an extension</span></font><font color=black><span
style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>If I have one incoming call that rings IPphone-1 and
another incoming call that rings IPphone-2, then the Set(_PICKUPMARK=whatever)
is overwritten.<br>
<br>
When I do a pickup I'm always picking up the conversation that rang IPphone-2.<br>
<br>
Is there a way to pick up the first conversation to IPphone-1 ??<br>
<br>
Dialplan :<br>
<br>
[incoming]<br>
exten => 1234567,1,NoOp()<br>
exten => 1234567,n,GoSub(sub-settings,start,1) <br>
exten => 1234567,n,Dial(SIP/IPphone-1)<br>
<br>
exten => 3456789,1,NoOp()<br>
exten => 3456789,n,GoSub(sub-settings,start,1) <br>
exten => 3456789,n,Dial(SIP/IPphone-2)<br>
<br>
[sub-settings]<br>
exten => start,1,NoOp()<br>
exten => start,n,Set(_PICKUPMARK=whatever)<br>
exten => start,n,Return()<br>
<br>
[example-pickup]<br>
exten => **XX,1,NoOp()<br>
exten => **XX,n,Pickup(whatever@PICKUPMARK)<br>
<br>
<br>
So I first call 1234567 (I see IPphone-1 ringing with BLF-settings) and
then 5 seconds later I call 3456789 (I see IPphone-2 ringing with
BLF-settings).<br>
I want to pickup IPphone-1, but I always have the conversation to IPphone-2.<br>
<br>
Does anyone see a workaround ??<br>
<br>
<br>
Jonas.<br>
<br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
On 06/16/2010 09:26 PM, Philipp von Klitzing wrote:<br>
<br>
<o:p></o:p></span></font></p>
<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Set("SIP/testcorp4-> 00000005","_PICKUPMARK=SIP/testcorp5&SIP/testcorp6")<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Pickup("SIP/testcorp1-00000009", "testcorp6@PICKUPMARK")<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Can you see the difference? That's what you need to change so that it <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>matches. "SIP/testcorp5&SIP/testcorp6" is not the same as "testcorp6".<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Philipp<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre></div>
</body>
</html>