<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Murf,<br>
this is what I get from CLI if I type : "[.]" instead of ".":<br>
<br>
[example]<br>
exten => test.skype/example[.]skype,1, NoOp(nothing)<br>
exten => test.skype/example[.]skype,n, Hangup() <br>
<br>
CLI> show dialplan example<br>
[ Context 'example' created by 'pbx_config' ]<br>
'test.skype' (CID match <b>'example[]skype'</b>) => 1.
NoOp(nothing) [pbx_config]<br>
2. Hangup()
[pbx_config]<br>
<br>
<br>
As you can see the only "." has been erased.<br>
There is no problem on DID ("." notations works fine), but only in CID
field.<br>
I'm usign Asterisk 1.4.26.2<br>
<br>
Thanks,<br>
<br>
Daniel<br>
<p class="western" style="margin-bottom: 0cm;"><br>
</p>
<br>
Il 16/03/2010 14.19, Steve Murphy ha scritto:
<blockquote
cite="mid:6798df801003160619j5bbdb8cbhdacb7cfbfec3e6c9@mail.gmail.com"
type="cite">Daniel--<br>
<br>
Haven't tried this myself, but have you tried '[.]' instead of just '.'
in the string (as a pattern search)?<br>
<br>
So,<br>
<br>
[example]<br>
exten => _test[.]skype/e[x]ample[.]skype,1, NoOp(nothing)<br>
exten => _test[.]skype/e[x]ample[.]skype,n, Hangup() <br>
<br>
If you don't really mean the cid matching (denoted with /), you have to
also 'escape' the '/'...<br>
<br>
and watch out for N,X,Z in the pattern, they mean something, and will
have to be 'escaped'<br>
like the '.' if you want them to match literally. I can't remember how
case is handled at the<br>
moment, so... just for safety, you can 'escape' the little 'x' also...<br>
<br>
murf<br>
<br>
<br>
<div class="gmail_quote">On Tue, Mar 16, 2010 at 5:59 AM, Daniel
Grotti <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:daniel.grotti@klarya.it">daniel.grotti@klarya.it</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Hi all,<br>
using Skype for Asterisk I have the following problem.<br>
In my dialplan I need to have a CID matching (example.skype) over a DID
(test.skype) :<br>
<br>
[example]<br>
exten => test.skype/example.skype,1, NoOp(nothing)<br>
exten => test.skype/example.skype,n, Hangup() <br>
<br>
Where test.skype and example.skype are Skype business account.<br>
In this case, when I get a :<br>
<br>
CLI> show dialplan example<br>
<br>
I get:<br>
<br>
[ Context 'example' created by 'pbx_config' ]<br>
'<b>test.example</b>' (CID match '<b>danexample</b>') => 1.
NoOp(nothing) [pbx_config]<br>
2. Hangup()
[pbx_config]<br>
<br>
<br>
As you can see, the "." (dot) is disappeared and, of course, CID
matching doesn't work as I aspected.<br>
I've try to escape "." with something like that "\.", but nothing. <br>
It seems that asterisk doesn't consider "." in DID/CID evaluations.<br>
This is an important point, because many Skype account uses "dot"
notation.<br>
<br>
It seems to work, instead, with "_" or "-".<br>
<br>
Any clues?<br>
<br>
Regards,<br>
<br>
Daniel<br>
<div>
<p style="margin-bottom: 0cm;"><br>
</p>
</div>
</div>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true"
href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>
--<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a moz-do-not-send="true"
href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Steve Murphy<br>
ParseTree Corp<br>
<br>
</blockquote>
</body>
</html>