Hello,
Running latest evaluation copy of BSS, we are looking to replace our existing asterix system with BSS.
On the dial plan there seems to be some detail missing from the help doc's I am trying to achieve the following:-
When user dials anything starting 0 I add a prefix and send it to our gateway. I need to change the CLI, I can hard code this but I would like to either prefix their CLI or ideally change it for user name (from the DB) or say, their description or email from the DB
is this possible? heres what I have:-
$request=^INVITE
To=sip:(0.+)@
To=sip:123456%1@1.2.3.4
I tried From=207456%1<sip:207456%1>
But this added the called number not the calling number.
%1 is not documented anywhere other than its used in dial plan examples so it maybe me being thick but can someone explain the relationship of %1 and what it contains?
Thanks!
Wayne
Dial plan how to add CLI prefix or replace with CLI from DB
Moderator: Brekeke Support Team
Hi,
Here is the link of dial plan syntax
http://www.brekeke-sip.com/download/bss ... min_en.pdf
from page 35 to 60, maybe it's useful to you.
for the "%1", it refers to the numbers in the first parenthesis in the "TO" of the matching patterns.
And in your matching patterns, maybe you need to put the prefix "0" outside the parenthesis, then dial plan can match the dialed number starting with "0"
such as, To=sip:0(.+)@
Good Luck
Here is the link of dial plan syntax
http://www.brekeke-sip.com/download/bss ... min_en.pdf
from page 35 to 60, maybe it's useful to you.
for the "%1", it refers to the numbers in the first parenthesis in the "TO" of the matching patterns.
And in your matching patterns, maybe you need to put the prefix "0" outside the parenthesis, then dial plan can match the dialed number starting with "0"
such as, To=sip:0(.+)@
Good Luck
Hi,
I'm not sure what's your exact action.
Could you give more details, if possible?
there is a link about "how to work with 3rd party DB"
http://www.brekeke-sip.com/download/bss ... ase_en.pdf
hope it can give you some idea.
I'm not sure what's your exact action.
Could you give more details, if possible?
there is a link about "how to work with 3rd party DB"
http://www.brekeke-sip.com/download/bss ... ase_en.pdf
hope it can give you some idea.
Hello, thanks again for the reply, I will read that, been meaning to get round to it anyway.
What I am trying to do is this:-
When I create the user I create user:bob Pass:bob2 email: 123456789
When the user makes a call, they will authenticate as above, but their From: could be anything, including bob, I want to replace the From: header and replace it with the value in the email field, in this case 123456789.
The reason is because the call will then hit a bigger switch and authenticate them on their CLI/ANI so its important thats it valid, and that they cannot change it to , say another customers CLI/ANI I know you can change the From: field but can you replace it with the value in the DB?
Wayne
What I am trying to do is this:-
When I create the user I create user:bob Pass:bob2 email: 123456789
When the user makes a call, they will authenticate as above, but their From: could be anything, including bob, I want to replace the From: header and replace it with the value in the email field, in this case 123456789.
The reason is because the call will then hit a bigger switch and authenticate them on their CLI/ANI so its important thats it valid, and that they cannot change it to , say another customers CLI/ANI I know you can change the From: field but can you replace it with the value in the DB?
Wayne