Hi!
My asterisk version is the latest:
Asterisk 1.6.2.13 built by root @ office on a x86_64 running Linux on 2010-09-17 10:47:51 UTC
and I figured out, registering multiple SIP Accounts from one provider, leads that all calls are routed to the context, which was assigned to the 1st account, asterisk registered itself.
So, when a call for “3349322e1” comes inside, asterisk tells me on the console (verbose 10) that ‘3349322e1’ wasn’t found which by information is true, but logically false because the accounts had been assigned to different context.
If I register comment out any of the other accounts, or let asterisk at first register the account with the context ‘tamertelein’ and the other accounts afer, all calls want to be routed, (independently which context is listed in the other accounts) in the context of the 1st account that registered.
And, asterisk is telling me, that all calls from all 3 accounts, come from the remote sip account which registered at 1st, which is for me very strange.
Any ideas how to solve it? Here the error, and the configs!
[Sep 21 11:32:30] NOTICE[21215]: chan_sip.c:20200
handle_request_invite: Call from ‘3349322e0’ to extension '3349322e1’
rejected because extension not found in context ‘mamatelein’.
sip.conf:
register = 3349322e0:xxxxxxx@sipgate.de/3349322e0
register = 3349322e1:xxxxxxx@sipgate.de/3349322e1
register = 3349322e2:xxxxxxx@sipgate.de/3349322e2
sipgate
type=friend
fromdomain=sipgate.de
host=sipgate.de
insecure=invite ; otherwise I get authentication errors
nat=yes
secret=xxxxxxx
caninvite=no
canreinvite=no
allow=alaw
allow=ulaw
allow=speex
allow=g729
dtmfmode=rfc2833
3349322e0
username=3349322e0
fromuser=3349322e0
context=mamatelein
3349322e1
username=3349322e1
fromuser=3349322e1
context=tamertelein
3349322e2
username=3349322e2
fromuser=3349322e2
context=tamertelein
extensions.ael:
context mamatelein {
3349322e0 => {
Dial(SIP/2002,r);
Hangup;
}
}
context tamertelein {
3349322e[12] => {
Dial(SIP/2000,r);
Hangup;
}
}