On 04/06/07, Caio Zanolla <caio@lpj.com.br> wrote:> Hi everyone,
>
> in ldap realtime sip peers i need "fullcontact" set to
> "sip:exten@userip" for asterisk to correctly match the peers (at
least
> for the natted peers to reach them)...
>
> anyway, how do I populate fullcontact "on the fly" with
information from
> exten and userip?
Wouldn't these just be dialplan vars?
> of course, i could just do it staticaly on ldap but since the info is
> already there why not make use of it?
>
> on res_ldap.conf i have "attribute = fullcontact =>
AstAccountFullContact"
> it would be nice to have something like:
> attribute = fullcontact =>
"sip:".$AstExten."@".$AstIPaddress
> or some kind of dialplan scripting to archieve this...
I'm pretty sure res_ldap.c can't do this yet.
What version (* and res_ldap) and schema are you using btw?
IIRC, the latest version doesn't need:
attribute = fullcontact => AstAccountFullContact
just:
fullcontact => AstAccountFullContact
Thanks,
Gavin.
>
>
> cheers,
> Caio.
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>