[Devel] [ openser-Feature Requests-1685807 ] Separate
caller/callee attribute branches
Daniel-Constantin Mierla
daniel at voice-system.ro
Thu Mar 22 19:01:13 CET 2007
On 03/22/07 19:26, Juha Heinanen wrote:
> SourceForge.net writes:
>
> > Initial Comment:
> > When using caller and callee attributes in OpenSER <= 1.2, you have
> > to "rename" each loaded caller avp using avp_copy(...) to avoid name
> > collisions when loading the callee avps (important if callee does a
> > call-forward and thus becomes the new "caller").
>
> i suggest you switch to radius and this problem is solved without a
> single new line of openser code. you simply return from radius
> general/domain/user/uri specific attributes of callee or caller
> depending on the function.
>
maybe not that much visible, but actually you can do that using AVPs
flags. Full spec for AVP name is
$avp(flags:id)
flags can be 's' or 'i' followed or not by an integer.
http://www.openser.org/docs/modules/1.2.x/avpops.html#AEN56
avp_db_load("$fu","$avp(i1:123)");
avp_db_load("$ru","$avp(i2:123)");
Loads same named avp but with different flags set for caller and callee.
Cheers,
Daniel
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
>
More information about the Devel
mailing list