[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-users
Subject:    Re: [asterisk-users] Get phone number from SIP header PAI
From:       Warren Selby <wcselby () selbytech ! com>
Date:       2011-03-29 17:02:05
Message-ID: AANLkTinEfTmEgiqc9jDS3CbJoA9dYsLL2icM5KCUkF2w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Mar 29, 2011 at 8:19 AM, Jonas Kellens <jonas.kellens@telenet.be>wrote:

>  Hello list,
>

<snip>


> I'm trying this :
> *exten => _XXX.,n,Set(PY4=${CUT(PY2,\:,1-)}) *
> but this does not change a thing to the string...
>

Try the following:

*exten => _XXX.,n,Set(PY4=${CUT(PY2,:,2)})  *



-- 
Thanks,
--Warren Selby, dCAP
http://www.selbytech.com

[Attachment #5 (text/html)]

<div class="gmail_quote">On Tue, Mar 29, 2011 at 8:19 AM, Jonas Kellens <span \
dir="ltr">&lt;<a href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;">






<div>
<font face="Helvetica, Arial, sans-serif">Hello \
list,</font></div></blockquote><div><br>&lt;snip&gt;<br> </div><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;"> <div text="#000000" bgcolor="#ffffff"><font \
face="Helvetica, Arial, sans-serif">I&#39;m trying this : <br> <i>exten =&gt; \
_XXX.,n,Set(PY4=${CUT(PY2,\:,1-)}) </i><br> but this does not change a thing to the \
string...</font><br></div></blockquote><div><br>Try the following: <br><br><font \
face="Helvetica, Arial, sans-serif"><i>exten =&gt; _XXX.,n,Set(PY4=${CUT(PY2,:,2)})  \
</i></font><br> </div></div><br><br clear="all"><br>-- <br>Thanks,<br>--Warren Selby, \
dCAP<br><a href="http://www.selbytech.com" \
target="_blank">http://www.selbytech.com</a><br>



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic