<!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">
On 03/16/2011 02:07 PM, Danny Nicholas wrote:
<blockquote cite="mid:201103161307.p2GD7Vq3003369@debsweb.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:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;}
span.EmailStyle17
        {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">
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 face="Times New Roman" size="3" color="black"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" size="2" width="100%" align="center"></span></font></div>
  <p class="MsoNormal"><b><font face="Tahoma" size="2" color="black"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 face="Tahoma" size="2" color="black"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] <b><span
 style="font-weight: bold;">On Behalf Of </span></b>Jonas Kellens<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, March
16, 2011
2:39 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>
[asterisk-users] Extract
Remote-Party-ID from incoming INVITE indialplan</span></font><font
 color="black"><span style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"
 color="black"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Helvetica" size="3" color="black"><span
 style="font-size: 12pt; font-family: Helvetica;">Hello list,<br>
  <br>
is it possible to extract the Remote-Party-ID from an incoming call in
the
dialplan ? Is there some kind of function for this ?<br>
  <br>
  <br>
  <br>
Kind regards,<br>
Jonas.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2" color="navy"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">If you&#8217;re on
the 1.8 branch, it&#8217;s
just a SIPHeader function, otherwise you&#8217;re out of luck.</span></font></p>
  </div>
  </o:smarttagtype></blockquote>
<br>
I'm on 1.6.2.16.1. How about :<br>
<br>
exten =&gt; _XXX.,n,Set(DID="${SIP_HEADER(Remote-Party-ID)}")<br>
<br>
<br>
Kind regards,<br>
Jonas.<br>
</body>
</html>