Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
DID, what I'm doing wrong?
Author Message
jaldulaimi
Brekeke Member


Joined: 30 Mar 2008
Posts: 17
Location: Sydney

PostPosted: Fri Jun 19, 2009 6:04 am    Post subject: DID, what I'm doing wrong? Reply with quote

1. Brekeke Product Name and version:2.3.6.0

2. Java version: 4.1.31

3. OS type and the version: Fedora 8

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

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

6. Your problem: Make call from a pstn--------->CiscoGW--------->SIP server-------->my sip phone. Cisco GW, been configured to use DID, and I can trace my call going to the right dial-peer, but always get a busy signal. Below, are my dial-peers and sip dial plan, any idea why this not working? Any help greatly appreciated.

Let's assume the following:
974444444 is my DID,
215.8.160.20 is my Cisco GW
215.8.163.17 is my sip server IP


dial-peer voice 1 pots
incoming called-number 974444444
direct-inward-dial

dial-peer voice 3 voip
destination-pattern 974444444
session target ipv4:215.8.160.17


Matching Patterns
$request = ^INVITE
$addr = 215\.8\.160\.20
To = sip:97444444@

Deploy Patterns
$auth = off
To = sip:974444444@
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Fri Jun 19, 2009 10:11 am    Post subject: Reply with quote

how about using the dialplan like

Matching Patterns
$request = ^INVITE
To = sip:97444444@

Deploy Patterns
$auth = off
To = sip:974444444@
Back to top
View user's profile
jaldulaimi
Brekeke Member


Joined: 30 Mar 2008
Posts: 17
Location: Sydney

PostPosted: Sat Jun 20, 2009 7:04 am    Post subject: Reply with quote

Can I ask?

What's the difference between my dial plan and yours?

Many thanks for your help...


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


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Jun 22, 2009 10:39 am    Post subject: Reply with quote

$addr returns the source IP address of the INVITE packets, it is the DID provider's IP not the gw.
If check the INVITE packets from gw, use $geturi(From) = sip:(.+)@215.8.160.20 or From = sip:(.+)@215.8.160.20

there are more explanation at http://www.brekeke-sip.com/download/bss/bss_admin_en.pdf
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