In the general section in sip.conf I have
register => 620:MYPW2@192.168.178.1/**620 ; Line1
register => 621:MYPW2@192.168.178.1/**621 ; Line2
then I have
[fritzbox620]
type=peer
host=fritz.fonwlan.box
defaultuser=620
secret=MYPW1
insecure=invite
dtmfmode = rfc2833
context=fritzbox620
nat=no
fromdomain=fritz.box
fromuser=620
directmedia=no
[fritzbox621]
type=peer
host=fritz.fonwlan.box
defaultuser=621
secret=MYPW2
insecure=invite
dtmfmode = rfc2833
context=fritzbox621
nat=no
fromdomain=fritz.box
fromuser=621
directmedia=no
My problem is now that always the dialplan from context620 is executed, no matter wheter the call comes from Line1 or Line2. I also tried to make fritzbox620 and fritzbox621 of type user, but then I always get a fake auth rejection for device . With type friend it is the same problem lie for peer.
What must I do to use the 2 lines correctly?