I want to use the SIP Header for my home phone for extensions 313 and 314. I want to use the SIP Header for my business line for all other extensions. None of the business extensions begin “31”.
However, all calls are tagged with the businessphone CID. I tried the “" in my pattern, and also thought the "” to the left of the “/” might still rule, but neither syntax appears to work.
hi,
Like I remember for me this kind of patterns were working fine _1NXXNXXXXXX/_31X.
Maybe you should move this pattern _1NXXNXXXXXX,1 on top.
I suppose it match any call.
OK, I got it working. Patterns are working after the /, but my ATA was not putting in the leading “1” like the smart phones (Polycom IP 321) were. So now,
It’s no shorter, but has two benefits: a) it’s elegant and b) it works! Now, to find the pattern that matches both 1NXXNXXXXXX and NXXNXXXXXX. It’s not obvious to me in the doc how to do that. I could do it easily with a regular expression, but I don’t think asterisk uses re for patterns.