Askozia Forums
May 21, 2012, 08:56:43 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Critical bug incoming calls  (Read 2093 times)
Sergio Di Mauro
Newbie
*

Karma: 0
Posts: 8


View Profile
« on: February 14, 2008, 09:51:23 am »

There is a critical bug on incoming calls about all versions.

Description:
I have this configuration:

Accounts: Providers

Name       Username     Host     
Eutelia1    0xxxxxxxx1    voip.eutelia.it
Eutelia2    0xxxxxxxx2    voip.eutelia.it
Eutelia3    0xxxxxxxx3    voip.eutelia.it

Incoming Extension(s)
Eutelia1---->100
Eutelia2---->101
Eutelia3---->102

Accounts: Phones

Extension     Caller ID
100      100
101      101
102      102

   
All incoming calls directed to Eutelia1, Eutelia2, Eutelia3 are targeted at the internal sip phone
associated with the last account of the "Accounts: Providers".

Incoming call on:
Eutelia1-->102
Eutelia2-->102
Eutelia3-->102

Regards,
-Sergio Di Mauro
Logged
Brian
Full Member
***

Karma: 1
Posts: 63


View Profile
« Reply #1 on: February 14, 2008, 10:14:29 am »

Didn't someone else mention a bug if you used multiple accounts with the same provider?
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #2 on: February 14, 2008, 11:54:19 am »

Yup: http://wiki.askozia.com/pbx:knownissues#open_issues

If anyone has experienced this in "real world" Asterisk installs, please feel free to provide some feedback. We're going to get a test environment setup for this (and some other issues...) so they can be fixed in pb14.
Logged
Brian
Full Member
***

Karma: 1
Posts: 63


View Profile
« Reply #3 on: February 14, 2008, 12:37:01 pm »

I've got a couple of live environments using askozia now, my test lab went live today as the pstn number ported across to the voip provider so i'll need to get yet another test lab up to play with.

Thats 2 live environments now - both seem to be running ok with only minor issues.


Brian
Logged
Sergio Di Mauro
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #4 on: February 19, 2008, 10:41:52 am »

I have solved the problem.  Wink

The incoming call context provider must be the same, otherwise asterisk  takes the context of the last provider with the same host.
In summary....

I have 3 accounts Eutelia
Same context for all 3 accounts of the same host.


Sip.conf


; 0XXXXXXXX1
register => 0XXXXXXXX1:pass:0XXXXXXXX1@voip.eutelia.it/0XXXXXXXX1
; 0XXXXXXXX2
register => 0XXXXXXXX2:pass:0XXXXXXXX2@voip.eutelia.it/0XXXXXXXX2
; 0XXXXXXXX3
register => 0XXXXXXXX3:pass:0XXXXXXXX3@voip.eutelia.it/0XXXXXXXX3

; 0XXXXXXXX1
[SIP-PROVIDER-18250921744788ab29d9325]
*
context=voip.eutelia.it
host=voip.eutelia.it
*

; 0XXXXXXXX2
[SIP-PROVIDER-8009797114788ac87a7e90]
*
context=voip.eutelia.it
host=voip.eutelia.it
*

; 0XXXXXXXX3
[SIP-PROVIDER-10695278284788acfd1ed8d]
*
context=voip.eutelia.it
host=voip.eutelia.it
*

; internal numbers
; 101
[101]
*
*
; 102
[102]
*
*

; 103
[103]
*
*

Extensions.conf

; incoming provider : 0XXXXXXXX1
[0XXXXXXXX1]
include => public-direct-dial
exten => _X!,1,NoOp()
exten => _X!,n,Set(SENDNOTIFICATIONS="no")
exten => _X!,n,Macro(vm|SIP/101|101|101|to)
exten => s,1,NoOp()
exten => s,n,Set(SENDNOTIFICATIONS="no")
exten => s,n,Macro(vm|SIP/101|101|101|to)

; incoming provider : 0XXXXXXXX2
[0XXXXXXXX2]
include => public-direct-dial
exten => _X!,1,NoOp()
exten => _X!,n,Set(SENDNOTIFICATIONS="no")
exten => _X!,n,Macro(vm|SIP/102|102|102|to)
exten => s,1,NoOp()
exten => s,n,Set(SENDNOTIFICATIONS="no")
exten => s,n,Macro(vm|SIP/102|102|102|to)

; incoming provider : 0XXXXXXXX3
[0XXXXXXXX3]
include => public-direct-dial
exten => _X!,1,NoOp()
exten => _X!,n,Set(SENDNOTIFICATIONS="no")
exten => _X!,n,Macro(vm|SIP/103|103|103|to)
exten => s,1,NoOp()
exten => s,n,Set(SENDNOTIFICATIONS="no")
exten => s,n,Macro(vm|SIP/103|103|103|to)

; for all 3 providers with same host
[voip.eutelia.it]
exten => 0XXXXXXXX1,1,Goto(0XXXXXXXX1,s,1)
exten => 0XXXXXXXX2,1,Goto(0XXXXXXXX2,s,1)
exten => 0XXXXXXXX3,1,Goto(0XXXXXXXX3,s,1)
« Last Edit: February 19, 2008, 11:28:25 am by Sergio » Logged
marco.brunozzi
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #5 on: February 19, 2008, 11:43:36 am »

I have the same problem ....
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #6 on: February 19, 2008, 12:36:13 pm »

Nice work, Sergio!

We were just discussing this today and had come up with another solution. Yours wins though, ours was a little too invasive.

Some logic will be added to the extension generator to recognize sip providers using the same host. If any are found, a switching context as you described will be generated.
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #7 on: February 19, 2008, 03:23:44 pm »

I've just uploaded a new snapshot which should fix this. If you're able to test, please let me know if this solves the problem:

http://downloads.askozia.com/pbx/snapshots/r417
Logged
Sergio Di Mauro
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #8 on: February 19, 2008, 04:36:47 pm »

I have tested new snapshots r417.
The problem is fixed.
 Wink
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #9 on: February 20, 2008, 02:26:41 am »

Great to hear and thanks again for providing a working example. Smiley
Logged
marco.brunozzi
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #10 on: February 25, 2008, 08:54:53 am »

I have the same problem with snapshot r417...
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #11 on: February 25, 2008, 09:24:26 am »

Could you describe how your providers are setup? Mainly, how are incoming extensions setup for each provider?
Logged
marco.brunozzi
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #12 on: February 26, 2008, 09:20:38 pm »

I' ve configured my providers with askozia ... In your opinion is it ok ?
Logged
marco.brunozzi
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #13 on: February 26, 2008, 09:38:15 pm »

I've forgotten that my wrap-board after some days of operation stoped so I must reboot.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.141 seconds with 19 queries.