[asterisk-users] DID/CID doesn't match "." (dot) in CID field

Tilghman Lesher tlesher at digium.com
Tue Mar 16 10:22:31 CDT 2010


On Tuesday 16 March 2010 09:18:21 Richard Kenner wrote:
> > exten => test.skype/example.skype,1, NoOp(nothing)
> > exten => test.skype/example.skype,n, Hangup()
> >
> > As you can see, the "." (dot) is disappeared and, of course, CID matching
> > doesn't work as I aspected.
> > I've try to escape "." with something like that "\.", but nothing.
> > It seems that asterisk doesn't consider "." in DID/CID  evaluations.
> > This is an important point, because many Skype account uses "dot"
> > notation.
>
> I've been having the same problem.  I tried various escapes and couldn't
> get it to work and I think there was also a length-related component to
> this. I ended up doing something like:
>
>   exten => _test.,1,Goto(some_context,${FILTER([a-z][0-z],${EXTEN})},1)
>
> I think there's some sort of bug or misfeature here, but I gave up trying
> to see exactly what it was.

That filter line probably does not do what you think it does.  I would suggest
checking the documentation.

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list