Author |
Message |
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Mon May 18, 2009 2:01 pm Post subject: How to receive calls from callers not registered |
|
|
1. Brekeke Product Name and version:PBX version 2.3.6.0 PRO
2. Java version:6, update 1
3. OS type and the version:Windos Vista Bussines
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:
Some carries offers IP telephony but is not requiered to be registered to make and receive calls, in fact they don't ask customer to register to his service, they use a dedicate link.
I need to accept calls from these carriers but Bekeke PBX rejects the incoming call by 407 : proxy server authentication required.
I have set "no"for authentication REGISTER at BSS SIP configuration, but the error remains
I have set at dial plan :
Matching patterns :$request=^INVITE
Deploy patterns: $auth=false and $continue=true
And the error 407 remains.
I have set at "from" of deploy pattern in ARS IN one expression that meet with one extension registered, but the error remains.
What is the right way for do that Brekeke PBX accepts any call form a caller not registered?
Thanks _________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue May 19, 2009 11:23 am Post subject: |
|
|
create ars for accepting the incoming calls, like:
Register URI: sip:yourDIDnumber@127.0.0.1
Proxy Address:127.0.0.1
Patterns-IN
Matching patterns:
To: sip:yourDIDnumber@
Deploy patterns:
To:PBXExtension |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Tue May 19, 2009 2:05 pm Post subject: |
|
|
hope wrote: |
create ars for accepting the incoming calls, like:
Register URI: sip:yourDIDnumber@127.0.0.1
Proxy Address:127.0.0.1
Patterns-IN
Matching patterns:
To: sip:yourDIDnumber@
Deploy Patterns | To:PBXExtension |
|
Thanks
I have set your hints bur the problem remains, I suppose that PBXExtension is my AA.
I receive a call with:
From: sip:3548980@italtel.com, where 3548980, is the local caller ID , in fact can be any 7 digits number, and italtel.com is my carrier
To:sip:44033100@200.13.230.37, where 44033100 is my local number and 200.13.230.37 is the IP of my carrier.
I need PBX Brekeke accepts the call but my carrier is not registered.
I need to accept calls without registyration of the caller, I ask why is possible that the option Authentication REGISTER and INVITE set as "no" is not enough?
Thanks in advance _________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Wed May 20, 2009 1:49 pm Post subject: |
|
|
juanmanuel wrote: |
hope wrote: |
create ars for accepting the incoming calls, like:
Register URI: sip:yourDIDnumber@127.0.0.1
Proxy Address:127.0.0.1
Patterns-IN
Matching patterns:
To: sip:yourDIDnumber@
Deploy Patterns | To:PBXExtension |
|
Thanks
Hi:
I have solved the problem by setting at dial plan:
Matching Patterns | $request = ^INVITE $registered ( From ) = false
|
If the call is drived to one extension of the Brekeke PBX, the extension rings, but if the call is drived to one AA, Brekeke returns: 404 Not Found.
At extension I have forwarded the call to the AA, but the call drived to the extension continues ringing at the extension, not the AA forwared.
Do you waht happen?
Thanks.
I have set your hints bur the problem remains, I suppose that PBXExtension is my AA.
I receive a call with:
From: sip:3548980@italtel.com, where 3548980, is the local caller ID , in fact can be any 7 digits number, and italtel.com is my carrier
To:sip:44033100@200.13.230.37, where 44033100 is my local number and 200.13.230.37 is the IP of my carrier.
I need PBX Brekeke accepts the call but my carrier is not registered.
I need to accept calls without registyration of the caller, I ask why is possible that the option Authentication REGISTER and INVITE set as "no" is not enough?
Thanks in advance |
_________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed May 20, 2009 3:32 pm Post subject: |
|
|
Quote: |
I need to accept calls without registyration of the caller, I ask why is possible that the option Authentication REGISTER and INVITE set as "no" is not enough? |
it depends on what dialplans are set on sip server.
can you make call now?
if yes, when you call you can check what rule is in use at sip server/active sessions details
here is explain on the changes in v2.3
http://wiki.brekeke.com/wiki/Security |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Fri Jun 05, 2009 8:42 am Post subject: |
|
|
Hi:
By now I can receive the calls setting at dial plan:
One entry with priority 1 and:
Matching Patterns | $request = ^INVITE
| Deploy Patterns | $auth = false $continue = true
|
Then a second entry with priority 2
Matching Patterns | $request = ^INVITE
|
Deploy Patterns | To = sip:100@127.0.0.2 $target = 127.0.0.1
|
The call is accepted, Brekeke sends one INVITE to 100@127.0.0.1, but send it to the IP address 200.13.230.37.
I guess that is because the ITSP INVITE sends to brekeke has as To= sip:MyDID@200.13.230.37, where 200.13.230.37 is the public IP of the ITSP Server.
How can I to force that brekeke sends the INVITE to 127.0.0.1 instead 200.13.230.37?
Thanks
Juan Acevedo
juanmanuel wrote: |
juanmanuel wrote: |
hope wrote: |
create ars for accepting the incoming calls, like:
Register URI: sip:yourDIDnumber@127.0.0.1
Proxy Address:127.0.0.1
Patterns-IN
Matching patterns:
To: sip:yourDIDnumber@
Deploy Patterns | To:PBXExtension |
|
Thanks
Hi:
I have solved the problem by setting at dial plan:
Matching Patterns | $request = ^INVITE $registered ( From ) = false
|
If the call is drived to one extension of the Brekeke PBX, the extension rings, but if the call is drived to one AA, Brekeke returns: 404 Not Found.
At extension I have forwarded the call to the AA, but the call drived to the extension continues ringing at the extension, not the AA forwared.
Do you waht happen?
Thanks.
I have set your hints bur the problem remains, I suppose that PBXExtension is my AA.
I receive a call with:
From: sip:3548980@italtel.com, where 3548980, is the local caller ID , in fact can be any 7 digits number, and italtel.com is my carrier
To:sip:44033100@200.13.230.37, where 44033100 is my local number and 200.13.230.37 is the IP of my carrier.
I need PBX Brekeke accepts the call but my carrier is not registered.
I need to accept calls without registyration of the caller, I ask why is possible that the option Authentication REGISTER and INVITE set as "no" is not enough?
Thanks in advance |
|
_________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Fri Jun 05, 2009 9:34 am Post subject: |
|
|
Quote: |
By now I can receive the calls setting at dial plan:
One entry with priority 1 and:
Matching Patterns | $request = ^INVITE
| Deploy Patterns | $auth = false $continue = true
|
Then a second entry with priority 2
Matching Patterns | $request = ^INVITE
|
Deploy Patterns | To=sip:100@127.0.0.2
$target=127.0.0.1 |
|
disable the above dialplans
and make a dialplan as
Matching Patterns | $request = ^INVITE To = sip:(.+)@200.13.230.37
| Deploy Patterns | $auth = false To = sip:%1@127.0.0.1:15060
|
and create an ARS as
Patterns-IN
Matching patterns:
To: sip:yourDIDnumber@
Deploy patterns:
To:AutoAttendant_number |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Fri Jun 05, 2009 2:40 pm Post subject: |
|
|
Thanks for your answer.
I have set as your last tips, by now the call is drived to Brekeke, but brekeke answer with 407 message: proxy authentication requerid.
What about the settings for Register and Invite authentication at SIP configuration?
I wish to send you a hard copy of the dial plan and ARS, as well a pcap file with the sniffer trace of the incoming call, but wiki does not give me this option
In don't know what more do.
By the way, where can I find information about syntax and symbols used for the rules of dial plan? I have Dial Plan Tutor Version 2.0 for Brekeke SIP Server, but it does not contains the syntaxis
Best Regards
Juan Acevedo
consultorit@umi.com.co
[/list] _________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Jun 08, 2009 10:09 am Post subject: |
|
|
Quote: |
What about the settings for Register and Invite authentication at SIP configuration? |
It seems the new dialplan is not in use. Because there is auth=false in the new dialplan, 407 message should not appear even the authentication is on at SIP configuration.
please change the new dialplan as below and put it before the first dialplan with "To pbx ..."
Matching Patterns | $request = ^INVITE $addr = 200.13.230.37
|
Deploy Patterns | $auth = false $target = 127.0.0.1:15060
|
and keep the ARS as before
Quote: |
By the way, where can I find information about syntax and symbols used for the rules of dial plan? |
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
there are more example at sip server admin guide
http://www.brekeke-sip.com/download/bss/bss_admin_en.pdf |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Wed Jun 10, 2009 1:34 pm Post subject: |
|
|
Hi:
Thanks for your message.
I have set your tips, and I feel that the target in deploy patterns is not working.
When I call from a device not registered, but at same subnet as IPPBX, when the address in to and from is the same, the call incomes.
But if the call is originated by the ITSP, the address for To is not at same network that the address of the Invite URI, Brekeke send tha call to the address of the "To", avoiding the target.
By how can I to send the pcaps of the incoming call?
Thanks _________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Fri Jun 12, 2009 9:23 am Post subject: |
|
|
Hi:
I see at sniffer for the INVITE packet one parameter named route that keeps the address 200.13.230.37, and I feel that this is the reason why Brekeke send the INVITE to this address.
I have set:
&net.sip.addrecordroute=false
&net.sip.addrecordroute.lr=false
But the packet still is sended to 200.13.230.37.
How can I avoid the route parameter at INVITE packet
Once again
Thanks _________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue Jun 16, 2009 12:41 pm Post subject: |
|
|
i found a mistake in my last post, i forgot the from and to are not the same address, please change as below
dialplan, its priority should be lower than the "from pbx..." dialplans but higher than the "To PBX ..." dialplans
Matching Patterns | $request = ^INVITE From = sip:(.+)@italtel.com To = sip:(.+)@200.13.230.37
| Deploy Patterns | $auth = false To = sip:%2@127.0.0.1:15060
|
and create an ARS as
Patterns-IN
Matching patterns:
To: sip:44033100@
Deploy patterns:
To:AutoAttendant_number
please notice the priority of the dialplan and need to click "apply rules" button after saving the dialplan
i donot think the record route is the cause. |
|
Back to top |
|
juanmanuel Brekeke Guru
Joined: 04 Mar 2009 Posts: 107
Location: Medellin,Colombia
|
Posted: Tue Jun 23, 2009 2:42 pm Post subject: |
|
|
Hi Brekeke Master Guru:
You wrote: "its priority should be lower than the "from pbx..." dialplans but higher than the "To PBX ..." dialplans"
But at original Dial Plan, the last "from PBX " has priority 3 and the first "To PBX.." has 4, any priority lower than 3 must be lower than 4.
Perhaps you wont to say "its priority should be HIGHER than the "from pbx..." dialplans but LOWER than the "To PBX ..." dialplans
Am I right?
Thanks _________________ Juan Manuel Acevedo
Medellin, Colombia
email:jacevedo@e-global.com.co |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed Jun 24, 2009 3:32 pm Post subject: |
|
|
dialplans with smaller priority number get higher priority. |
|
Back to top |
|
|