|Summary:||ASTERISK-13829: Chan_Sip route to an incorrect DID|
|Date Opened:||2009-03-25 12:32:06||Date Closed:||2011-06-07 14:02:54|
|Environment:||Attachments:||( 0) ExtensionsNew.txt|
( 1) statusNew.txt
( 2) Users_new.txt
|Description:||I have 2 voip numbers configured correctly. I can make outbound call from both of them but I can receive only from the first one. Seems that DID2 context in users.conf route to DID1 in extensions.conf finding no match.|
****** ADDITIONAL INFORMATION ******
Attached files: extensions, users, status, debug.
Linux 2.6.18-92.1.22.el5.centos.plus #1 SMP Wed Dec 17 10:50:49 EST 2008 i686 i686 i386 GNU/Linux
Asterisk GUI-version : SVN-branch-2.0-r4657
|Comments:||By: Alessandro (alex70) 2009-03-25 14:39:04|
I have accindentaly upload wrong files. As there is noway to delete them please consider the New One (usersNew, extensionsNew, statusNew).
Sorry for the inconvenient.
By: Alessandro (alex70) 2009-03-26 05:28:29
Looking on various posts on internet I have found this behaviour is well known but not resolved yet.
It seems to occur when two accounts are registered with the same server, or at least the same IP address.
The work around is to use the same context for both accounts.
Anyway I think it will be good to fix this problem as even the asterisk gui is not able to handle this situation.
By: Leif Madsen (lmadsen) 2009-04-01 19:03:42
This is not a bug. This is a configuration issue and while it may not be ideal, this is how chan_sip matches incoming calls. It has to do with the fact it is unable to match on username, but rather is matching on the IP address, which happens to be the first one listed at 'sip show peers'. However in the future the matching order will not be defined like this.
Please see the asterisk-users mailing list if you need additional help. Thanks!