Sorry, dont know why but the text is missing, here we go again:
Hello,
Im configuring Openser with LCR module and Im having an extrange
behavior, I have 2 gateways, GW1(preference1) and GW2(preference2),
GW1(pref.1)
/ \
ClientA --> OpenSer --> Client B
\ GW2 (pref.2) /
When I call from Client A to Client B using GW1, all works fine, its the
same when hang up Client B or Client A, but when GW1 fail(I provoke it
changing codec) and use failure route (GW 2) then if Client A hang up all
works fine, but the problem is when is Client B who hang up, its like a new
conversation, GW 2 send BYE to openser and Openser just send "503 Service
Not avilable - No gateways" to GW2, but doesnt send nothing to ClientA, any
idea ????
Thx in advance
this is my basic configuration( I have attached full config file):
route{
if (!method=="REGISTER") {
record_route();
};
if (loose_route()) {
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
exit;
};
if (method=="INVITE") {
if (!lookup("location")) {
if (!load_gws()) {
sl_send_reply("500", "Server Internal Error
- Cannot load gateways");
return;
};
};
if (!next_gw()) {
sl_send_reply("503", "Service not available - No gateways");
return;
};
};
};
};
t_on_failure("1");
route(1);
}
route[1] {
if (!t_relay()) {
sl_send_reply("666","t_relay fallido");
return;
};
exit;
}
failure_route[1] {
if (!next_gw()) {
t_reply("503", "Service not available - No gateways 1");
return;
};
if (!t_relay()) {
t_reply("666","t_relay fallido");
return;
};
}
Hi Lenir!
You should read the emails on the mailing list (or the archive).
Read the thread initiated from Helge on 8.12.2005
klaus
Lenir wrote:
> Hello guys,
>
>
>
> I read in the documentation for the ACC module that it supports multi
> call-leg accounting via the use of AVPs, which comes in handing when
> doing call forwarding. However, I’ve googled the way with all the
> keywords that I could think of and I cant find an example of this
> feature. I understand that you have to turn it on using:
>
>
>
> modparam("acc", "multi_leg_enabled", 1)
>
> modparam("acc", "src_leg_avp_id", 110)
>
> modparam("acc", "dst_leg_avp_id", 111)
>
>
>
> But it doesn’t show or say when/how to use the AVPs. Can anybody provide
> a sample snippet or their openser.cfg file to demonstrate how it’s used?
>
>
>
>
>
> Thanks in advance!
>
>
>
> Lenir
>
>
>
> P.s. perhaps put a sample config in the documentation. The one there
> doesn’t show how to use Multi Call-leg billing.
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
Hello,
Im configuring Openser with LCR module and Im having an extrange
behavior, I have 2 gateways, GW1(preference1) and GW2(preference2),
GW1(pref.1)
/ \
ClientA --> OpenSer --> Client B
\ GW2 (pref.2) /
When I call from Client A to Client B using GW1, all works fine, its the
same when hang up Client B or Client A, but when GW1 fail(I provoke it
changing codec) and use failure route (GW 2) then if Client A hang up all
works fine, but the problem is when is Client B who hang up, its like a new
conversation, GW 2 send BYE to openser and Openser just send "503 Service
Not avilable - No gateways" to GW2, but doesnt send nothing to ClientA, any
idea ????
Thx in advance
this is my basic configuration( I have attached full config file):
route{
if (!method=="REGISTER") {
record_route();
};
if (loose_route()) {
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
exit;
};
if (method=="INVITE") {
if (!lookup("location")) {
if (!load_gws()) {
sl_send_reply("500", "Server Internal Error
- Cannot load gateways");
return;
};
};
if (!next_gw()) {
sl_send_reply("503", "Service not available - No gateways");
return;
};
};
};
};
t_on_failure("1");
route(1);
}
route[1] {
if (!t_relay()) {
sl_send_reply("666","t_relay fallido");
return;
};
exit;
}
failure_route[1] {
if (!next_gw()) {
t_reply("503", "Service not available - No gateways 1");
return;
};
if (!t_relay()) {
t_reply("666","t_relay fallido");
return;
};
}
Klaus,
Asterisk can't use a database for location/contact information. It also has no native means to transfer registrations between itself and another Asterisk system. It can't even perform a user defined action when a phone registers... doesn't leave us with many options. Right now, using OpenSER to replicate (forward,t_relay,t_replicate whatever) seems to be working ok. Do you have any reason to believe it wouldn't scale up well?
Doug.
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Thursday, December 15, 2005 3:23 AM
To: Douglas Garstang
Cc: users(a)openser.org
Subject: Re: [Users] Transaction already in Process
Hi Douglas!
I still think it is a bad idea to replicate REGISTER to Asterisk 4
times. Where does Asterisk store the location table? In a database? Why
not replicate the location data on DB level?
regards
klaus
Douglas Garstang wrote:
> Arrgh!
>
> Now I'm getting "t_newtran: transaction already in process" messages whenever I try to call t_relay() or t_replicate twice, even when the first attempt has FAILED. In the case of t_relay() I have new addresses in the destination set and I still get this error. Why? When you attempt to deliver, and it fails, how can to attempt again without getting those messages? What fundamental piece am I missing?
>
> How could I do this? Forget the fancy stuff. I don't care about checking for failure anymore.
>
> t_replicate("192.168.10.7","5060");
> t_replicate("192.168.10.8","5060");
> t_replicate("192.168.10.200","5060");
>
> Doug.
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
I'm attempting to send an IM via SIP using the method described in the admin
guide (from the command line). When I try, I get these messages in the logs:
Dec 15 10:10:26 death /usr/local/sbin/ser[8138]: ERROR: fifo_server: command
must begin with :: NOTIFY
Dec 15 10:10:26 death /usr/local/sbin/ser[8138]: ERROR: fifo_server: command
must have at least 3 chars
Dec 15 10:10:26 death /usr/local/sbin/ser[8138]: ERROR: fifo_server: command
must begin with :: To: sip:1234@my.server.com
Dec 15 10:10:26 death /usr/local/sbin/ser[8138]: ERROR: fifo_server: command
must begin with :: Hello world!!!!
Can someone tell me what crucial step I'm missing here?
N.
Klaus,
To answer your earlier question, Asterisk stores the registrations in a local file, using the Berkeley DB format. It's keyed on user/extension.
Douglas.
-----Original Message-----
From: Douglas Garstang
Sent: Thursday, December 15, 2005 8:09 AM
To: Klaus Darilion
Cc: users(a)openser.org
Subject: RE: [Users] Transaction already in Process
Klaus,
Asterisk can't use a database for location/contact information. It also has no native means to transfer registrations between itself and another Asterisk system. It can't even perform a user defined action when a phone registers... doesn't leave us with many options. Right now, using OpenSER to replicate (forward,t_relay,t_replicate whatever) seems to be working ok. Do you have any reason to believe it wouldn't scale up well?
Doug.
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Thursday, December 15, 2005 3:23 AM
To: Douglas Garstang
Cc: users(a)openser.org
Subject: Re: [Users] Transaction already in Process
Hi Douglas!
I still think it is a bad idea to replicate REGISTER to Asterisk 4
times. Where does Asterisk store the location table? In a database? Why
not replicate the location data on DB level?
regards
klaus
Douglas Garstang wrote:
> Arrgh!
>
> Now I'm getting "t_newtran: transaction already in process" messages whenever I try to call t_relay() or t_replicate twice, even when the first attempt has FAILED. In the case of t_relay() I have new addresses in the destination set and I still get this error. Why? When you attempt to deliver, and it fails, how can to attempt again without getting those messages? What fundamental piece am I missing?
>
> How could I do this? Forget the fancy stuff. I don't care about checking for failure anymore.
>
> t_replicate("192.168.10.7","5060");
> t_replicate("192.168.10.8","5060");
> t_replicate("192.168.10.200","5060");
>
> Doug.
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
AVP's.... I just can't follow the docs on this. I wish I could.
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: Thursday, December 15, 2005 3:43 AM
To: Douglas Garstang
Cc: users(a)openser.org
Subject: Re: [Users] Variables
Hi Doug,
use avp_printf() or avp_subst() to process the content of an avp - this
function covers the assigning operation.
regards,
bogdan
Douglas Garstang wrote:
>All,
>
>I can't find any documentation of OpenSER use of variables. I'm sending a lot of info to syslog with xlog(), and with multiple threads (processes?) and multiple calls running, all the output is out of sequence. As a result, I'd like to prefix the debug output with the call-id. The call-id however is very long and I'd like to cut it down and only display a portion of it.
>
>How can I extract a string from a SIP message, cut it up, extract the portion I want, and print that portion? OpenSER doesn't seem to have any concept of assigning variables by:
>
>variable = value
>
>Thanks,
>Doug.
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users(a)openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
Oh... those AVP's again which I still completely don't understand....
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Thursday, December 15, 2005 3:27 AM
To: Douglas Garstang
Cc: users(a)openser.org
Subject: Re: [Users] Variables
I think xlog can log AVPs. Thus write the callid into an AVP and xlog
this AVP. I think you can rewrite the AVP using regexp, thus it should
be possible to shorten the callid.
klaus
Douglas Garstang wrote:
> All,
>
> I can't find any documentation of OpenSER use of variables. I'm sending a lot of info to syslog with xlog(), and with multiple threads (processes?) and multiple calls running, all the output is out of sequence. As a result, I'd like to prefix the debug output with the call-id. The call-id however is very long and I'd like to cut it down and only display a portion of it.
>
> How can I extract a string from a SIP message, cut it up, extract the portion I want, and print that portion? OpenSER doesn't seem to have any concept of assigning variables by:
>
> variable = value
>
> Thanks,
> Doug.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
which cvs version should i use? which is the latest stable one?
how can i test presence and istant messaging without using eyebeam?
...testing presence often makes eyebeam or ser crash!
thank you!
On 12/14/05, Vaclav Kubart <vaclav.kubart(a)iptel.org> wrote:
>
> I think that it will work in "peer-to-peer mode" too (I have used
> "presence agent mode" in my tests).
> And you don't need XCAP or resource lists - your config should be
> sufficient.
>
> It is probably quite old version which had not this fifo command
> implemented (and features like resource lists or XCAP auth)...
>
> You can watch message flows if something working wrong, but I recommend
> use of current CVS version (there are still some problems, but it could
> work better than old versions).
>
> Vaclav
Ok,
I have downloaded the packages from deb-stable directory? So I guess I have to change to the unstable packages...
I guess libc is not the same on them.
openser_1.0.0.0_i386.deb
openser-mysql-module_1.0.0.0_i386.deb
Regards
/Maria
> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
> Sent: den 15 december 2005 13:07
> To: Maria Yndefors
> Cc: users(a)openser.org
> Subject: Re: [Users] mysql cluster and openser
>
>
> Hi Maria,
>
> my question is was for what debian version was compiled the debian
> package you are using? I will help me to tell you the
> required mysql lib
> version.
>
> regards,
> bogdan
>
> Maria Yndefors wrote:
>
> >Yes I have testing/unstable on both machines, one which run
> SER and one which I
> >have installed Openser.
> >Regards
> >/Maria
> >
> >
> >
> >>-----Original Message-----
> >>From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
> >>Sent: den 14 december 2005 20:59
> >>To: Maria Yndefors
> >>Cc: users(a)openser.org
> >>Subject: Re: [Users] mysql cluster and openser
> >>
> >>
> >>Hi Maria,
> >>
> >>what debian version package are you using? unstable or...?
> >>
> >>regards,
> >>bogdan
> >>
> >>Maria Yndefors wrote:
> >>
> >>
> >>
> >>>Hallo,
> >>>I run openser on a debian used the deb package to install it.
> >>>I have a ndb-cluster setup that I have used successfully
> >>>
> >>>
> >>with SER 0.9.4, now I have tested to install openser and I
> >>
> >>
> >>>can't manage to get the openser mysql module to find the
> >>>
> >>>
> >>correct libmysql.
> >>
> >>
> >>>I have:
> >>>
> >>>/usr/lib/libmysqlclient.so.12
> >>>/usr/lib/libmysqlclient.so.15
> >>>
> >>>I have tried with a softlink from libmysql.so.10 but I
> don't manage.
> >>>What is the difference from standard SER and openser mysql module?
> >>>
> >>>Regards
> >>>/Maria
> >>>
> >>>
> >>>
> >>>Maria Yndefors
> >>>_______________________________________________________________
> >>>System Management & Development
> >>>BREDBANDSBOLAGET / B2 Bredband AB
> >>>Direct: +46 (0)8 50 69 83 80
> >>>Mobile: +46 (0)7 33 81 92 51
> >>>Fax: +46 (0)8 54 90 46 08
> >>>http://www.bredband.com
> >>>_______________________________________________________________
> >>>
> >>>
> >>>_______________________________________________
> >>>Users mailing list
> >>>Users(a)openser.org
> >>>http://openser.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
>
>