Author |
Message |
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Sat Dec 15, 2012 9:57 am Post subject: Adding prefix 1 to RPID (Remote Party ID) |
|
|
1. Brekeke Product Name and Version:Bpbx 2.4.9.0
2. Java version:5.1
3. OS type and the version:Window 2008 Server
4. UA (phone), gateway or other hardware/software involved:Cisco,Grandstream and Yealink IP Phone
5. Your problem:
I'd like to add prefix 1 to a registered user ID before sending the call to our ITSP.
I'd prefer to send this call through the SIP server and not pbx.
Our system supports a maximum of 10 digits user id but we'd like to pass 11 digits to our ITSP.
I've tried adding prefix 1 to the Deploy pattern as indicated in the below dial plans but each time I call,it rings twice and disconnects.It seems our ITSP is rejecting the call/s.
(1)
Matching Patterns | $Request = ^INVITE
|
To:sip:(.+)@
Deploy Patterns | $auth = false
|
To:sip:+1%1@ITSP ip
continue = false
(2)
Matching Patterns | $Request = ^INVITE
|
To:sip:(.+)@
Deploy Patterns | $auth = false
|
To:sip:1%1@ITSP ip
continue = false
(3)
Matching Patterns | $Request = ^INVITE
|
To:sip:(.+)@
Deploy Patterns | $auth = false
|
To:sip:001%1@ITSP ip
continue = false
I'd appreciate any information that could nudge me in the right direction.
Thanks,
Vincent.
Last edited by Vincent on Tue Jan 22, 2013 4:38 am; edited 1 time in total |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Sun Dec 16, 2012 1:05 am Post subject: |
|
|
put these dial plan rules on top of default pbx dial plan rules
and donot need $continue = false
if all three dial plan rules are enabled and put in the order shown
the first dial plan rule will apply to all calls and send number +1+dialed numbers to itsp ip
capture packets and what response sent back from itsp |
|
Back to top |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Sun Dec 16, 2012 1:37 am Post subject: |
|
|
Vincent.
Do you want to add the prefix in the callee number?
which SIP response code does the ITSP return for the rejecting? |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Sun Dec 16, 2012 5:56 am Post subject: |
|
|
Hope:
I want to send the call through the SIP server.What I'm trying to do is to pass CLI (Caller ID) to our ITSP.
The Caller ID in this case is the registered user account number. Right now we're successfully passing 10 digit CLI but our clients are requesting for 11 digits and our account factory (system) can only generate a maximum of 10 digit account number so we have to pass the remaining one digit through a dial plan.
Thanks. |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Sun Dec 16, 2012 6:24 am Post subject: |
|
|
JanP:
I'm trying to pass CLI (Caller ID) to our ITSP.
The Caller ID in this case is the registered user account number. Right now we're successfully passing 10 digit CLI but our clients are requesting for 11 digits and our account factory (system) can only generate a maximum of 10 digit account number so we have to pass the remaining one digit through a dial plan.
which SIP response code does the ITSP return for the rejecting? 404
404 is being returned because +1 is prefixed to the dialed number.
I want +1 to be placed in front of the registered user account number.Example this is the user account number 9865431243 and I
want to add +1 in front of the account number.
We're sending the call this way now 9865431234 (10 digit account number)
But I want to send it this way +19865431234 (11 digit)
Thanks. |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Sun Dec 16, 2012 9:28 am Post subject: |
|
|
Hi Hope and JanP,
I guess the User ID is appended in the "From" header. If that's true,how about this dial plan?
Matching Patterns | $Request = ^INVITE
|
From:sip:11(.+)@
To:sip:(.+)@
Deploy Patterns | $auth = false
|
From:sip:%1@
To:sip:+1%2@ITSP ip
continue = false
Thanks. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Sun Dec 16, 2012 8:03 pm Post subject: |
|
|
try dial plan rule below:
Matching Patterns | $request = ^INVITE From = sip:11(.+)@ To = sip:(.+)@
| Deploy Patterns | $auth = false From = sip:+1%1@ To = sip:%2@ITSP ip
|
with above dial plan, if a user registered at brekeke such as 112223333
and this user dial to 4445555
brekeke will send call with From number +12223333 and To number 4445555
is this what you need? |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Mon Dec 17, 2012 8:38 am Post subject: |
|
|
Hope:
Matching Patterns | $request = ^INVITE From = sip:11(.+)@ To = sip:(.+)@
| Deploy Patterns | $auth = false From = sip:+1%1@ To = sip:%2@ITSP ip
|
with the above dial plan, if a user registered at brekeke such as 112223333
and this user dial to 4445555
brekeke will send call with From number +12223333 and To number 4445555
is this what you need? Yes that's what I want but Brekeke is adding the +1 to the dialed number +144455555 instead of the User Id.
I also tried placing the +1 in the To header of the Deploy pattern like this:
Deploy Patterns | $auth = false From = sip:%1@ To = sip:+1%2@ITSP ip
|
and with this I got the call status showing provisioning.It stays in provisioning for a while and disconnects with no response message.
Do you have any more ideas on how I can tweak the dial plan to make it achieve the desired goal?
Thanks. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Dec 17, 2012 12:07 pm Post subject: |
|
|
do you need +1 added to caller number or destination number?
what is itsp_ip and can brekeke server reach itsp_ip (try ping to itst_ip)?
capture packet and check if there is invite sent from brekeke to itsp_IP |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Tue Dec 18, 2012 4:02 am Post subject: |
|
|
Hope:
Do you need +1 added to caller number or destination number?
Vincent:
I need +1 to be added to Caller number.
Example: if a user registered at Brekeke as 112223333
and this user dial to 4445555
Brekeke will send call with From number +12223333 and To number 4445555
is this what you need? Yes that's what I need.
Please advice,
Thanks. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue Dec 18, 2012 10:43 am Post subject: |
|
|
Quote: |
Matching Patterns | $request = ^INVITE From = sip:11(.+)@ To = sip:(.+)@
|
Deploy Patterns | $auth = false
From = sip:+1%1@
To = sip:%2@ITSP ip
|
|
have you tried the dial plan rule above?
what is the result?
the order of the lines in rule matching / deploy patterns should be the same as shown above |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Thu Dec 20, 2012 9:25 am Post subject: |
|
|
Matching Patterns | $request = ^INVITE From = sip:11(.+)@ To = sip:(.+)@
| Deploy Patterns | $auth = false From = sip:+1%1@ To = sip:%2@ITSP ip
|
With the above dial plan I get error 603.The reason is because +1 is placed in front of the dialed number.
However if I switch the To and From position like this:
Matching Patterns | $request = ^INVITE To = sip:11(.+)@ From = sip:(.+)@
| Deploy Patterns | $auth = false To = sip:%1@ITSP From = sip:+1%2@our server ip.
|
only + gets sent without 1.
Example: if a user registered at Brekeke as 2223333
and this user dials 4445555
I want Brekeke to send the call with From number +12223333 and To number 4445555
But now Brekeke is sending the call with From +2223333.
The problem now is that Brekeke is not adding 1 to the registered User number. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Thu Dec 20, 2012 11:35 am Post subject: |
|
|
set following at advanced page and restart server
net.listener.loglevel.file=255
net.sip.loglevel.file=255
make call and check sv log for original From and To number
and From and To sent by brekeke and what rule applied to the call
http://wiki.brekeke.com/wiki/log-SIP-packets |
|
Back to top |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 286
Location: Japan
|
Posted: Thu Dec 20, 2012 2:14 pm Post subject: |
|
|
Vincent,
From-header definition with the ending '@' is not allowed because it is not valid SIP-URI.
At first, disable all of current DialPlan rules.
Second, add the following DialPlan rule.
Matching Patterns | $request = ^INVITE From = sip:(.+)@ To = sip:(.+)@
| Deploy Patterns | From = sip:+1%1@<YOUR_SERVER_IP> To = sip:%2@<ITSP_IP> $auth = false
|
Replace <YOUR_SERVER_IP> and <ITSP_IP> with the actual IP addresses. |
|
Back to top |
|
Vincent Brekeke Addict
Joined: 27 Aug 2009 Posts: 25
|
Posted: Fri Dec 21, 2012 5:28 am Post subject: |
|
|
Hi Hope and Harold,
This dial plan works within our environment but not with our ITSP,so I guess our ITSP is not sending the CLI to the end point.I'll check with them and let you know,thanks.
Matching Patterns | $request = ^INVITE To = sip:11(.+)@ From = sip:(.+)@
| Deploy Patterns | $auth = false To = sip:%1@<ITSP_IP> From = sip:+1%2@<OUR_SERVER_IP>
|
|
|
Back to top |
|
Mr Tho Brekeke Addict
Joined: 25 May 2016 Posts: 25
|
Posted: Mon Aug 08, 2016 6:43 pm Post subject: |
|
|
Vincent wrote: |
Hi Hope and Harold,
This dial plan works within our environment but not with our ITSP,so I guess our ITSP is not sending the CLI to the end point.I'll check with them and let you know,thanks.
Matching Patterns | $request = ^INVITE To = sip:11(.+)@ From = sip:(.+)@
| Deploy Patterns | $auth = false
To = sip:%1@<ITSP_IP>
From = sip:+1%2@<OUR_SERVER_IP> |
|
You can set in ARS in matting patterns, To field: |
|
Back to top |
|
|