7.1.4. EIR_AttributesHook Previous topic Parent topic Child topic Next topic

This parameter is a hook that allows customising how to set IMEI and other values are passed to EIR. This has not any default value.
When this is set, IMEIAttribute, IMSIAttribute, and SoftwareVersionAttribute are ignored.
Here is an example that shows how to get the values from current request attributes:
EIR_AttributesHook sub 
      { my $p = $_[0]; my $imei = $_[1]; my $sv = $_[2]; my $imsi = $_[3]; \
      $$imei = $p->get_attr('X-OSC-SIM-IMEI'); \
      $$sv   = $p->get_attr('X-OSC-SIM-Software-Version'); \
      $$imsi = $p->get_attr('X-OSC-SIM-IMSI'); }