[Serusers] variables in ser.cfg

Daniel-Constantin Mierla daniel at voice-system.ro
Fri Oct 7 11:57:33 CEST 2005


On 10/07/05 11:04, Müller Thorsten wrote:

> Hi all,
>
> is there a possibility to use variables in ser.cfg (ser0.9.0) like
> ...
> set myip=192.168.1.11
> set myaccount=testuser
> set mypasswd=testpasswd
> ...
> modparam("uac","credential","$myaccount:$myip:$mypasswd");
>
all these above are not possible with avpops or something else available 
in ser. Only using a text preprocessor (e.g., m4)

> ...
> rewritehost($myip);
>
this can be done with avpops:

avp_write("192.168.1.11", "i:11");
avp_pushto("$ruri/domain", "i:11");

Daniel

> ...
> Perhaps a solution would be with avpops, but I didn't get it to work 
> in conjunction with dbtext.
> Has someone an example how to read variables with avpops out of a 
> dbtext table which are not connected to a SIP-message?
>
> (I read the README for avpops!!)
>
> Any other solutions would be a help!!
> Would this be possible with openser's pseudo variables or another 
> ser-version?
>
> Thanks
>
> Thorsten
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>




More information about the sr-users mailing list