Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
how to strip +852 when the call is made from OCS
Author Message
s_wonga
Brekeke Newbie


Joined: 25 Apr 2011
Posts: 2
Location: HK

PostPosted: Mon Apr 25, 2011 7:08 am    Post subject: how to strip +852 when the call is made from OCS Reply with quote

1. Brekeke Product Name and version:
Brekeke SIP Server: 2.4.8.6/286.3

2. Java version:
JRE6

3. OS type and the version:
Windows 2003 R2

4. UA (phone), gateway or other hardware/software involved:
OCS

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
N/A
6. Your problem:
when ocs makes outbound call, it is always in E.164 format, e.g., +852600000001. However, the users in Brekeke SIP Server are created in 8 digits format, e.g., 60000001. So how can the dial plan in Brekeke strip the +852 and route to call to the brekeke sip server (there is only one Brekeke sip server)?

_________________
stephen
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 289
Location: Japan

PostPosted: Mon Apr 25, 2011 12:10 pm    Post subject: Reply with quote

For example:

Matching Patterns
$request = INVITE
To = sip:\+8526(.+)@
Deploy Patterns
To = sip:%1@
&net.sip.transport.follow.request = true
$auth = false
$continue = true
Back to top
View user's profile
s_wonga
Brekeke Newbie


Joined: 25 Apr 2011
Posts: 2
Location: HK

PostPosted: Tue Apr 26, 2011 4:16 am    Post subject: Reply with quote

Harold wrote:
For example:

Matching Patterns
$request = INVITE
To = sip:\+8526(.+)@
Deploy Patterns
To = sip:%1@
&net.sip.transport.follow.request = true
$auth = false
$continue = true
----------------------------------------

thank you so much!!!!!
_________________
stephen
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1