Hi Adam,
there are / were to ways to get the email to SEMS: 1) SEMS fetch the email address directly from DB via OpenSER's FIFO DB. You have to configure the db_fifo parameter in OpenSER - http://openser.org/docs/db_fifo.html. Not sure if this still works. 2) SEMS will expect to receive in the fifo command the email also (as P-Email-Address value).
to load the email into an avp:
modparam("avpops", "db_scheme", "email_scheme:username_col=username; \ domain_col=domain;value_col=email_address;table=subscriber") ..... avp_db_load("$ruri","i:34/$email_scheme"); # load RURI user's email in avp i:34 .....
to pass this avp to SEMS:
modparam("tm", "tw_append", "vm_email:P-Email-Address=avp[i:34]") .... t_write_req("/tmp/sems_fifo", "voicemail/vm_email");
This one works for sure :)
regards, bogdan
Adam Sherman wrote:
I'm attempting to configure OpenSER to feed SEMS the correct information for voicemail, namely the email address.
SEMS documentation referes to the avp.so module, which I understand is no longer relevant.
If all I need to do is pull the email address out of the subscribers table and feed it to SEMS, what openser config do I need?
Thanks,
A.