Respected sir,
can you pl. help me out.
i need to know that, can we use open ser to build softswitch which had
features like class 4. and yes, then is there any guideline for that.
so i can move ahead in that direction./
pl. any little help will be appiciate.
Thanks.
Best Regards,
Ashi.
Hey everyone,
I was wondering if it's possible to combine the two methods of lookup
so that a user can authenticate to both radius and local database (on the
one
that he is defined).
to authenticate via radius it is done in my register section like this:
if (!radius_www_authorize(""))
{
www_challenge("","0");
exit;
};
and so I was wondering if it's possible to do something like this:
if ( (!www_authorize("","subscriber")) || (!radius_www_authorize("")) )
{
www_challenge("","0");
exit;
};
Thanks,
Lir.
Hi All,
I'm trying to get FreeRadius to work with rlm_radius, but it would appear
that although my perl script
is loaded - it won't authenticate with it. Anyone ever worked with this
before?
Regards,
Zap2Link
Hi All,
I seem to have run into a situation where OpenSER doesn't send the user-password to the Radius server, upon initiating the Register method. The following information is received at the radius end:
rad_recv: Access-Request packet from host 192.168.2.80:48582, id=200, length=194
User-Name = "101(a)192.168.2.80"
Digest-Attributes = 0x0a05313031
Digest-Attributes = 0x010e3139322e3136382e322e3830
Digest-Attributes = 0x022a34363961326338396334343963303038323664396265313331653431376334316333303763376134
Digest-Attributes = 0x04127369703a3139322e3136382e322e3830
Digest-Attributes = 0x030a5245474953544552
Digest-Response = "8a61cba1c0729fa70929a115c6ae7c31"
Service-Type = Authenticate-Only
X-Ascend-PW-Lifetime = 0x313031
NAS-Port = 5060
NAS-IP-Address = 192.168.2.80
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 75
perl_pool: item 0x98baa10 asigned new request. Handled so far: 3
found interpetator at address 0x98baa10
rlm_perl: RAD_REQUEST: X-Ascend-PW-Lifetime = 0x313031
rlm_perl: RAD_REQUEST: Digest-Response = 8a61cba1c0729fa70929a115c6ae7c31
rlm_perl: RAD_REQUEST: User-Name = 101(a)192.168.2.80
rlm_perl: RAD_REQUEST: Service-Type = Authenticate-Only
rlm_perl: RAD_REQUEST: NAS-IP-Address = 192.168.2.80
rlm_perl: RAD_REQUEST: NAS-Port = 5060
rlm_perl: RAD_REQUEST: Digest-Attributes = ARRAY(0x99f368c)
perl_pool total/active/spare [32/0/32]
This clearly shows that the User-Password attribute is not sent. Anyone can point me at the direction to look?
z2l
Hi all,
When SER receives an INVITE with a single Route header pointing to
itself, it's supposed to delete it and process the message as if no
Route header was there in the first place. This is what RFC3261
mandates, right?
But currently the loose_route function returns true to the script in
this case, just like when more Route headers are present.
So I have some routing logic for when no Route headers are present,
and if I want to apply the same routing logic to the case when there
is a single Route header pointing to myself (naturally, as it's the
same as if no Route header was present), I currently have to replicate
the same routing logic inside the if (loose_route())...
Or is there an other way? Do I have to develop my own module function
or use some regexp search from the script to detect if there are more
Routes besides myself before I call loose_route?
The best would be to change loose_route to return false and just
remove the Route header pointing to myself when there are no more
Route headers in the message... what do you think?
JF
Hello,
I have a problem with a cisco GW, if i only set g711 ulaw or alow as codec
in my ata the the GW return a media not acceptable error.
but If i add the g729 codec the all is ok.
I see in the config of the cisco where to define codec for imcoming call but
not for outgoing
*Jul 17 15:57:02.604: Received:
INVITE sip:0041787518551@192.168.0.110 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.107:5070;branch=z9hG4bK5f66.fc82e301.0
To: <sip:0041787518551@192.168.0.110>
From: 021111111 <sip:021111111@peoplefone.ch
>;tag=27B98752-469CEA8A0002F2E4-5F903B30
CSeq: 10 INVITE
Call-ID: 1973211C-469CEA8A0002F2EA-5F903B30(a)212.203.123.82
Content-Length: 250
User-Agent: OpenSER (1.2.1-notls (i386/linux))
Contact: <sip:sems@192.168.0.107:5070>
P-MsgFlags: 0
billingid: 106
accountid: 28928
Remote-Party-ID: <sip:0445532001@192.168.0.106
>;party=calling;id-type=subscriber;screen=yes
Content-Type: application/sdp
v=0
o=MxSIP 0 198 IN IP4 192.168.0.249
s=SIP Call
c=IN IP4 200.200.100.106
t=0 0
m=audio 39318 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=direction:active
a=nortpproxy:yes
*Jul 17 15:57:02.608: 0x64C01D00 : State change from (STATE_NONE,
SUBSTATE_NONE) to (STATE_IDLE, SUBSTATE_NONE)
*Jul 17 15:57:02.608: sipSPIStreamTypeAndDtmfRelay: ERROR - no voice codec
and no dtmf-relay match
*Jul 17 15:57:02.608: sipSPIDoAudioNegotiation: Media negotiation failed for
m-line 1
*Jul 17 15:57:02.608: sipSPIDoMediaNegotiation: ERROR - no valid fax or
audio streams
*Jul 17 15:57:02.608: sipSPIHandleInviteMedia: Media Negotiation failed for
an incoming call - Sending 488
*Jul 17 15:57:02.608: 0x64C01D00 : State change from (STATE_IDLE,
SUBSTATE_NONE) to (STATE_DISCONNECTING, SUBSTATE_NONE)
*Jul 17 15:57:02.608: Sent:
SIP/2.0 488 Not Acceptable Media
Via: SIP/2.0/UDP 192.168.0.107:5070;branch=z9hG4bK5f66.fc82e301.0
From: 021111111 <sip:021111111@peoplefone.ch
>;tag=27B98752-469CEA8A0002F2E4-5F903B30
To: <sip:0041787518551@192.168.0.110>;tag=C0E57710-2347
Date: Tue, 17 Jul 2007 15:57:02 GMT
Call-ID: 1973211C-469CEA8A0002F2EA-5F903B30(a)212.203.123.82
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 10 INVITE
Allow-Events: telephone-event
Content-Length: 0
Hi, I'm trying to configure the imc module for IM chat rooms and I get
nothing.
My conf related to this is:
------------------------------
modparam("imc", "db_url", "mysql://openser:openserrw@localhost/openser")
if(method=="MESSAGE") {
if (uri=~ "sip:chat1@") {
imc_manager();
}
}
------------------------------
Of course "chat1" doesn't exist in subscription o location table.
So I open Linphone and send a message to "chat1(a)domain.org":
#create test_room
and I get in Linphone:
"[<sip:test_room@openser.ilimit.es>] :*** room was created"
And in fifo I see:
~$ openserctl fifo imc_list_rooms
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd imc_list_rooms
200 OK
ROOM:: URI=sip:chat1@domain.org MEMBERS=0 OWNER=sip:810@domain.org
But if I send a message to "test_room(a)domain.org" I get a 404 in OpenSer.
And now, what more? I've tryed with #join chat1 but no members are added
anywhere.
So I'd appreciate a help with this since I don't find enough information about
this module.
PD: Why the MySQL tables imc_rooms and imc_members are always empty
when "openserctl fifo imc_list_rooms" shows me the created rooms?
Thanks a lot.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es
Not sure it is worth patching the code which is IMO working.
If I understand it right, you are having tel URI in Route? However this might
have happened, that seems little sensible to me. The point is that tel URI is used
to decouple a PSTN destination from a possible path via IP netowrk, whereas Route is
intended to lay down such a path. Putting these two things together appears of limited
use value to me.
Anyhow, would you mind sending a dump of the SIP request in question -- I'm a bit
confused what situation we are actually solving.
-jiri
At 19:46 10/07/2007, JF wrote:
>no comments?
>
>On 6/28/07, JF <jfkavaka(a)gmail.com> wrote:
>> I would propose to simply apply this patch to modules/rr/loose.c:
>>
>> @@ -1069,8 +1069,8 @@
>> return -1;
>> }
>>
>> - if (is_myself(&_m->parsed_uri.host, _m->parsed_uri.port_no)
>> - || _m->parsed_uri.type==TEL_URI_T ||
>> _m->parsed_uri.type==TELS_URI_T) {
>> + if (_m->parsed_uri.type==TEL_URI_T || _m->parsed_uri.type==TELS_URI_T ||
>> + is_myself(&_m->parsed_uri.host,
>> _m->parsed_uri.port_no)) {
>> DBG("loose_route: RURI is myself (or tel URI)\n");
>> if ((ret = is_myself(&puri.host, puri.port_no)) == 1 &&
>> !(enable_double_rr && is_2rr(&puri.params))) {
>>
>>
>> JF
>>
>> On 6/22/07, Greger Viken Teigre <greger(a)teigre.com> wrote:
>> > This seems like a corner case where the tel uri with no domain results in maybe a bit unfortunate return code from loose_route.
>> > Comments anyone?
>> > g-)
>> >
>> >
>> > ------- Original message -------
>> > From: JF <jfkavaka(a)gmail.com>
>> > Cc: serusers(a)iptel.org, openimscore-cscf(a)lists.berlios.de
>> > Sent: 22.6.'07, 11:11
>> >
>> > > Thanks Greger,
>> > >
>> > > The problem is related to the fact that the Req-URI is a tel-URI.
>> > > I had to work around it in the script by not letting loose_route get
>> > > called when the URI is a tel URI.
>> > >
>> > > In loose.c, loose_route() says (by looking at the log):
>> > > DBG("loose_route: RURI is NOT myself\n");
>> > > because Req-URI doesn't have a host part.
>> > >
>> > > Then after_loose(_m, &puri, 1, 0) is called because the single
>> > > existing Route header has our SIP URI.
>> > > And then:
>> > > DBG("after_loose: Topmost route URI: '%.*s' is me\n", uri->len, ZSW(uri->s));
>> > > and
>> > > DBG("after_loose: No next URI found\n");
>> > > An since _ruri_myself == 0, return RR_DRIVEN;
>> > >
>> > > IMO the fact that the Req-URI is a tel URI shouldn't make loose_route
>> > > return true in this case...
>> > >
>> > > JF
>> > >
>> > >
>> > > On 6/21/07, Greger V. Teigre <greger(a)teigre.com> wrote:
>> > > > If there's a single Route header pointing to itself, then this is a good
>> > > > indication that a UA added a Route to your proxy as an outbound proxy.
>> > > > If SER correctly identities the uri as itself, it should AFAIK return false.
>> > > > Could you please turn on debugging and then look for loose_route and
>> > > > after_loose debug messages in the logs and post them?
>> > > > g-)
>> > > >
>> > > > JF wrote:
>> > > > > Hi all,
>> > > > >
>> > > > > When SER receives an INVITE with a single Route header pointing to
>> > > > > itself, it's supposed to delete it and process the message as if no
>> > > > > Route header was there in the first place. This is what RFC3261
>> > > > > mandates, right?
>> > > > >
>> > > > > But currently the loose_route function returns true to the script in
>> > > > > this case, just like when more Route headers are present.
>> > > > >
>> > > > > So I have some routing logic for when no Route headers are present,
>> > > > > and if I want to apply the same routing logic to the case when there
>> > > > > is a single Route header pointing to myself (naturally, as it's the
>> > > > > same as if no Route header was present), I currently have to replicate
>> > > > > the same routing logic inside the if (loose_route())...
>> > > > >
>> > > > > Or is there an other way? Do I have to develop my own module function
>> > > > > or use some regexp search from the script to detect if there are more
>> > > > > Routes besides myself before I call loose_route?
>> > > > >
>> > > > > The best would be to change loose_route to return false and just
>> > > > > remove the Route header pointing to myself when there are no more
>> > > > > Route headers in the message... what do you think?
>> > > > >
>> > > > > JF
>> > > > > _______________________________________________
>> > > > > Serusers mailing list
>> > > > > Serusers(a)lists.iptel.org
>> > > > > http://lists.iptel.org/mailman/listinfo/serusers
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > _______________________________________________
>> > > Serusers mailing list
>> > > Serusers(a)lists.iptel.org
>> > > http://lists.iptel.org/mailman/listinfo/serusers
>> >
>> >
>>
>_______________________________________________
>Serusers mailing list
>Serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/