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.
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.
On 7/7/05, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
2) SEMS will expect to receive in the fifo command the email also
(as P-Email-Address value).
(...)
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");
Forgive my ignorance, but does this t_write_req replace the original one I have to just "voicemail"? If not, where would I insert it?
Wow, my configuration is getting pretty awful. :-(
Thank you,
A.
Adam Sherman wrote:
On 7/7/05, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
- SEMS will expect to receive in the fifo command the email also
(as P-Email-Address value).
(...)
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");
Forgive my ignorance, but does this t_write_req replace the original one I have to just "voicemail"? If not, where would I insert it?
yes, it replace the original one. Has same functionality, but specifies an extra list of information (vm_email) to be send along via fifo.
regards, bogdan
On 7/7/05, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
modparam("tm", "tw_append", "vm_email:P-Email-Address=avp[i:34]") .... t_write_req("/tmp/sems_fifo", "voicemail/vm_email");
Forgive my ignorance, but does this t_write_req replace the original one I have to just "voicemail"? If not, where would I insert it?
yes, it replace the original one. Has same functionality, but specifies an extra list of information (vm_email) to be send along via fifo.
The modparam is global though? It doesn't affect other calls? That confuses me.
Thanks,
A.
Adam Sherman wrote:
On 7/7/05, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
modparam("tm", "tw_append", "vm_email:P-Email-Address=avp[i:34]") .... t_write_req("/tmp/sems_fifo", "voicemail/vm_email");
Forgive my ignorance, but does this t_write_req replace the original one I have to just "voicemail"? If not, where would I insert it?
yes, it replace the original one. Has same functionality, but specifies an extra list of information (vm_email) to be send along via fifo.
The modparam is global though? It doesn't affect other calls? That confuses me.
the definition is global, but not the usage. If you want to use it or not, you decide in the t_write_req call by appending "/vm_email" specifier. Take a look at: http://www.openser.org/docs/modules/0.9.x/tm.html#AEN245 (for tw_append param) http://www.openser.org/docs/modules/0.9.x/tm.html#AEN456 (for t_write_req)
for sequential requests (like BYEs) you may call : t_write_req("/tmp/sems_fifo", "voicemail"); which will do the same but without adding the email info (no extra info).
regards, bogdan