[Users] openser & sems memory error
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Mar 1 13:59:08 CET 2006
Hi,
try to remove the append from the t_write_req()...what platform are you
using?
guess the error appears for INVITE, right?
regards,
bogdan
Ibrahim TUNALI wrote:
> Hi,
> i installed openser (1.0 stable) and sems (0.9 stable). I recive
> "ERROR:tm:write_to_fifo: writev failed: Cannot allocate memory" error
> when openser send request to sems voice mail. Is it compile error or
> do you have any solution for this.
>
> regards
>
> openser voicemail seciton;
> --------------------------
> # switch to stateful mode:
> if (!t_newtran()){
> sl_send_reply("500","could not create transaction");
> return;
> };
>
> # prevent timeout on the other side:
> t_reply("100","Trying - just wait a minute !");
>
> # actively absorb ACKs
> if (method == "ACK") {
> t_relay();
> return;
> }
> if (method=="INVITE"){
>
> # no service number, redirect to voicemail.
> # do not forget to load AVPs so that voicemail gets the
> # callee's email address.
> avp_db_load("$ruri","i:34/$email_scheme");
> if(!t_write_req("/tmp/am_fifo","voicemail/vm_email")) {
> t_reply("500","error contacting sems");
> };
> return;
> }
> else if (method=="BYE" || method=="CANCEL") {
>
> # Sems should already know which plug-in is handling that
> # call. "bye" is no plug-in name. It is a reserved name
> which
> # tells Sems to terminate the call.
>
> if(!t_write_req("/tmp/am_fifo","bye")) {
> t_reply("500","error contacting sems");
> };
> };
>
> ____________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list