Distribute incoming SIP peer calls to different contexts

Hi there,
I have multiple users registered both in OpenSER and in the Asterisk database.
In my sip.conf i declared that all calls coming from OpenSER are to be
delivered to a [SER_Asterisk] context.


[general]

context=SER_Asterisk

bindport = 5090
bindaddr = 0.0.0.0

srvlookup=yes

disallow=all
allow=gsm
allow=ulaw
allow=alaw

autocreatepeer=yes

[ser]
type=friend
username=asterisk
secret=asterisk
host=192.168.69.254
port=5060
insecure=very

Each registered phone is at a different location, and MUST have its own rules-of-dial.

How can I route their calls to individual contexts?

by having a “context=” statement in the user definition.