Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Reject Calls
Author Message
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Wed Nov 20, 2013 10:43 am    Post subject: Reject Calls Reply with quote

1. Brekeke Product Name and Version: Version 3.2.4.3 Evaluation

2. Java version: 1.7.0_25

3. OS type and the version: Linux RH 6 2.6.32-131.0.15.el6.x86_64

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

5. Your problem:

Can Brekeke Sip Server Reject all calls that did not match any rule in the Dial Plan?
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Nov 20, 2013 11:09 am    Post subject: Reply with quote

create the rule and put below all other rules

Matching Patterns
$request = ^INVITE
Deploy Patterns
$response = 603

If the call cannot apply any rule above this one, sip server will reply 603 for the invite
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Wed Nov 20, 2013 11:33 am    Post subject: Reply with quote

I Did It, but Brekeke Reject All the calls. I Put this rule in the last row.

In the History (Dial PLan) I see that the call apply the 2 rules but the gateway (brekeke) reply 603 to all calls although match the first rule (send the call to a PBX)

can you helpme?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Wed Nov 20, 2013 12:39 pm    Post subject: Reply with quote

Can you find associated calls in the [Calls Logs] or [Error Logs] page?
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Wed Nov 20, 2013 12:52 pm    Post subject: Reply with quote

I can see the Call in Error Log ( $response=603). The call match the 2 rules (TO_PBX_SIP & REJECTEDS) but I need the call that match the first rule (rule TO_PBX_SIP) be send to the PBX and not rejected too (rule REJECTEDS).

Can you help me?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Wed Nov 20, 2013 4:51 pm    Post subject: Reply with quote

> The call match the 2 rules (TO_PBX_SIP & REJECTEDS)

It means your first rule "TO_PBX_SIP" doesn't point any destination.

Add "To=" or "$target=" in the Deploy Pattern in the rule "TO_PBX_SIP" to point PBX's IP address:port.

If so, it works.
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Fri Nov 22, 2013 8:43 am    Post subject: Reply with quote

This is my Matching Patterns and Deploy Pattern of the rule TO_PBX_SIP:

Matching Patterns
$request = ^INVITE
$registered = false
To = 202020@
To = sip:(.+)@
$route.underlimit( "%1","10" ) = true

Deploy Patterns
$routename = %1
$continue = true
$auth = false
$transport = udp
To = sip:101010@PBX_IP_ADDRESS

But the problem persist.

Can you helpme?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Fri Nov 22, 2013 9:59 am    Post subject: Reply with quote

> To = sip:101010@PBX_IP_ADDRESS

Did you specify PBX's port number there?

For example:
To = sip:101010@PBX_IP_ADDRESS:15060
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Fri Nov 22, 2013 10:32 am    Post subject: Reply with quote

James thanks for youre help,

I put now the number of port in the rule but the call is rejected again. (takes the second rule and is rejected)

can you helpme?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Fri Nov 22, 2013 10:35 am    Post subject: Reply with quote

The 603's rejection happens even if you disable the rule "REJECTEDS"?
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Fri Nov 22, 2013 11:14 am    Post subject: Reply with quote

James,

when I disable the rule REJECTEDS, the call is sent correctly to the PBX.

But I need, Brekeke Sip Server Reject all calls that did not match any rule in the Dial Plan.

I need REJECTEDS rule for Filtrer possible no permitted Calls.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Fri Nov 22, 2013 1:00 pm    Post subject: Reply with quote

try removing $continue = true from rule "TO_PBX_SIP" if no other rule below needs to apply to the call
and put reject rule at the bottom of all other rules
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Fri Nov 22, 2013 2:12 pm    Post subject: Reply with quote

Thanks hope,

the solution is replace the line $continue = true by $continue = false
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