You map the individual switchports to an ERL which has one or more ELINs associated to it. ER then does SNMP queries on the switch to see the MAC address of the phone attached to each port. From there it knows where the phone is and can set the ELIN accordingly.