How to accept +90 call in dial plan

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
serdara2000
Posts: 2
Joined: Thu Apr 21, 2011 5:09 am
Location: Turkey

How to accept +90 call in dial plan

Post by serdara2000 »

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/ ... terns.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
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

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
serdara2000
Posts: 2
Joined: Thu Apr 21, 2011 5:09 am
Location: Turkey

Post by serdara2000 »

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
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

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
----------------------------------------
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

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.
Post Reply