Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How to accept +90 call in dial plan
Author Message
serdara2000
Brekeke Newbie


Joined: 21 Apr 2011
Posts: 2
Location: Turkey

PostPosted: Thu Apr 21, 2011 5:27 am    Post subject: How to accept +90 call in dial plan Reply with quote

1. Brekeke Product Name and version:Brekeke SIP Server

2. Java version:2.1.6.6/239

3. OS type and the version:Windows 2008

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

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:
Hi, we have customer and he want to send call with +90 prefix. but + sign is problem. how to describe plus sign in "to" and "invite" section. how to accept this kind of calls.

Matching Patterns
$request = ^INVITE sip:.905
To = sip:.905(.*)@
$registered = false
$addr = ^213\.248\.81\.100$

Deploy Patterns


To=sip:67890%1@178.22.9.195
&net.sip.addrecordroute=true
&net.sip.addrecordroute.lr=true
$target=178.22.9.195

_________________
selam
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Apr 21, 2011 2:53 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE sip:\+905(.+)
To = sip:\+905(.*)@
$registered = false
$addr = ^213\.248\.81\.100$

Deploy Patterns
$request = INVITE sip:67890%1
To = sip:67890%2@178.22.9.195
&net.sip.addrecordroute = true
&net.sip.addrecordroute.lr = true
$target = 178.22.9.195


this dial plan will replace INVITE request and To header prefix +905 with 67890
Back to top
View user's profile
serdara2000
Brekeke Newbie


Joined: 21 Apr 2011
Posts: 2
Location: Turkey

PostPosted: Thu Apr 21, 2011 11:22 pm    Post subject: Reply with quote

Hi, thank you for your response, there is one problem. when i change invite message, there isn't "request value" in deploy patterns. how can i add this line in deploy patterns "$request = INVITE sip:67890%1" when i add this line, system does not accept. Best Regards..
_________________
selam
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:01 pm    Post subject: Reply with quote

what do you mean??

Do you want to define "$request" in Deploy Patterns even if an INVITE's request-line is unique?

Matching Patterns
$request = INVITE
To = sip:\+905(.+)@
$registered = false
$addr = ^213\.248\.81\.100$
Deploy Patterns
$request = INVITE sip:67890%1@178.22.9.195 SIP/2.0
To = sip:67890%1@178.22.9.195
&net.sip.addrecordroute = true
&net.sip.addrecordroute.lr = true
$target = 178.22.9.195
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:05 pm    Post subject: Reply with quote

wow.. it seems you are using version 2.1.x.x...
I suppose this old version didn't support "$request" in Deploy Patterns.

Try the latest version. it is 2.4.x.x.
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