[Serusers] SER 0.9.2 & Route & Analog FXO Problems :(
Ozan Blotter
cosmocid at ispro.net.tr
Fri Jun 3 22:14:06 CEST 2005
Dear Friends,
I know this is annoying to post nearly same things but still no answer :( Is
it really so hard or can anybody tell me why this is not working.
There are :
ATA 1 : 12345 (registered and can call 54321, no problem)
ATA 2 : 54321 (registered and can call 12345, no problem)
ANALOG FXO : 201 (registered as 201, for test purposes i only registered one
port of it)
With Brekeke's Ondo SIP Proxy, i created a simple dial-plan and it worked,
even i can add more prefixes no problem. But in SER i cannot :( I'm using
ver 0.9.2. Normally it's like when i want to call a GSM, proxy simply adds a
prefix 201 which is same with registered sip number for regarding analog
port and forwards it (looks like sip:20105353490056 at 192.168.1.35) to Gateway
and Gateway simply strips 201 from it and dials 05353490056, yes it
connects. But what this same does not work on SER, any ideas because it's
very boring to play all day and night ?
Thanks....
>>>>>>>>>> minimal SER.CFG >>>>>>>>>>
debug=3
fork=yes
log_stderror=no
check_via=no
dns=no
rev_dns=no
listen=192.168.1.10
port=5060
children=4
fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
modparam("usrloc", "db_mode", 0)
modparam("rr", "enable_full_lr", 1)
route {
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
record_route();
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
break;
};
if (uri=~"^sip:053[0-9]*@.*") {
prefix("201");
rewritehostport ("192.168.1.35:5060");
# forward ("192.168.1.35:5060");
t_relay_to_udp("192.168.1.35","5060");
break;
};
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
if (!t_relay()) {
sl_reply_error();
};
}
>>>>>>>>>> call from 12345 to 54321 (SIP 2 SIP Call) >>>>>>>>>>
U 192.168.1.10:5060 -> 192.168.1.201:5060
INVITE sip:54321 at 192.168.1.201:5060 SIP/2.0..Record-Route:
<sip:192.168.1.1
0;ftag=xITO2cDMxID;lr=on>..Via: SIP/2.0/UDP
192.168.1.10;branch=z9hG4bK233f
.8f8b9d41.0..Via: SIP/2.0/UDP
192.168.1.200:5060;branch=z9hG4bKba4b3e1d3eed
9c7c..Max-Forwards: 16..To: <sip:54321 at 192.168.1.10>..From:
<sip:12345 at 192.
168.1.10;user=phone>;tag=xITO2cDMxID..Call-ID:
911D1B912D91212 at 192.168.1.20
0..CSeq: 1 INVITE..Contact:
<sip:12345 at 192.168.1.200:5060>..Session-Expires
: 100;refresher=uac..Supported: timer..Content-Type:
application/sdp..Conte
nt-Length: 185....v=0..o=12345 0 0 IN IP4 192.168.1.200..s=-..c=IN IP4
192.
168.1.200..t=0 0..m=audio 2142 RTP/AVP 18 18..a=rtpmap:18
G729/8000..a=send
recv..a=rtpmap:18 G729/8000..a=sendrecv..a=ptime:20..
#
U 192.168.1.10:5060 -> 192.168.1.200:5060
SIP/2.0 180 Ringing..Via: SIP/2.0/UDP
192.168.1.200:5060;branch=z9hG4bKba4b
3e1d3eed9c7c..To: <sip:54321 at 192.168.1.10>;tag=xETOxUDMxED..From:
<sip:1234
5 at 192.168.1.10;user=phone>;tag=xITO2cDMxID..Call-ID:
911D1B912D91212 at 192.16
8.1.200..CSeq: 1 INVITE..Record-Route:
<sip:192.168.1.10;ftag=xITO2cDMxID;l
r=on>..Content-Length: 0....
>>>>>>>>>> call from 12345 to 05353490056 (GSM Call) >>>>>>>>>>
U 192.168.1.10:5060 -> 192.168.1.200:5060
SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP
192.16
8.1.200:5060;branch=z9hG4bK31bc676961f91e18..To:
<sip:05353490056 at 192.168.1
.10>..From: <sip:12345 at 192.168.1.10;user=phone>;tag=xIjNxkDMxID..Call-ID:
8
76D1B912D91212 at 192.168.1.200..CSeq: 1 INVITE..Server: Sip EXpress router
(0
.9.2 (i386/linux))..Content-Length: 0..Warning: 392 192.168.1.10:5060
"Nois
y feedback tells: pid=4587 req_src_ip=192.168.1.200 req_src_port=5060
in_u
ri=sip:05353490056 at 192.168.1.10
out_uri=sip:20105353490056 at 192.168.1.35:506
0 via_cnt==1"....
#
U 192.168.1.10:5060 -> 192.168.1.35:5060
INVITE sip:20105353490056 at 192.168.1.35:5060 SIP/2.0..Record-Route:
<sip:192
.168.1.10;ftag=xIjNxkDMxID;lr=on>..Via: SIP/2.0/UDP
192.168.1.10;branch=z9h
G4bK188d.03855495.0..Via: SIP/2.0/UDP
192.168.1.200:5060;branch=z9hG4bK31bc
676961f91e18..Max-Forwards: 16..To: <sip:05353490056 at 192.168.1.10>..From:
<
sip:12345 at 192.168.1.10;user=phone>;tag=xIjNxkDMxID..Call-ID:
876D1B912D9121
2 at 192.168.1.200..CSeq: 1 INVITE..Contact:
<sip:12345 at 192.168.1.200:5060>..S
ession-Expires: 100;refresher=uac..Supported: timer..Content-Type:
applicat
ion/sdp..Content-Length: 185....v=0..o=12345 0 0 IN IP4
192.168.1.200..s=-.
.c=IN IP4 192.168.1.200..t=0 0..m=audio 2146 RTP/AVP 18 18..a=rtpmap:18
G72
9/8000..a=sendrecv..a=rtpmap:18 G729/8000..a=sendrecv..a=ptime:20..
#
U 192.168.1.10:5060 -> 192.168.1.35:5060
INVITE sip:20105353490056 at 192.168.1.35:5060 SIP/2.0..Record-Route:
<sip:192
.168.1.10;ftag=xIjNxkDMxID;lr=on>..Via: SIP/2.0/UDP
192.168.1.10;branch=z9h
G4bK188d.03855495.0..Via: SIP/2.0/UDP
192.168.1.200:5060;branch=z9hG4bK31bc
676961f91e18..Max-Forwards: 16..To: <sip:05353490056 at 192.168.1.10>..From:
<
sip:12345 at 192.168.1.10;user=phone>;tag=xIjNxkDMxID..Call-ID:
876D1B912D9121
2 at 192.168.1.200..CSeq: 1 INVITE..Contact:
<sip:12345 at 192.168.1.200:5060>..S
ession-Expires: 100;refresher=uac..Supported: timer..Content-Type:
applicat
ion/sdp..Content-Length: 185....v=0..o=12345 0 0 IN IP4
192.168.1.200..s=-.
.c=IN IP4 192.168.1.200..t=0 0..m=audio 2146 RTP/AVP 18 18..a=rtpmap:18
G72
9/8000..a=sendrecv..a=rtpmap:18 G729/8000..a=sendrecv..a=ptime:20..
#
U 192.168.1.10:5060 -> 192.168.1.35:5060
INVITE sip:20105353490056 at 192.168.1.35:5060 SIP/2.0..Record-Route:
<sip:192
.168.1.10;ftag=xIjNxkDMxID;lr=on>..Via: SIP/2.0/UDP
192.168.1.10;branch=z9h
G4bK188d.03855495.0..Via: SIP/2.0/UDP
192.168.1.200:5060;branch=z9hG4bK31bc
676961f91e18..Max-Forwards: 16..To: <sip:05353490056 at 192.168.1.10>..From:
<
sip:12345 at 192.168.1.10;user=phone>;tag=xIjNxkDMxID..Call-ID:
876D1B912D9121
2 at 192.168.1.200..CSeq: 1 INVITE..Contact:
<sip:12345 at 192.168.1.200:5060>..S
ession-Expires: 100;refresher=uac..Supported: timer..Content-Type:
applicat
ion/sdp..Content-Length: 185....v=0..o=12345 0 0 IN IP4
192.168.1.200..s=-.
.c=IN IP4 192.168.1.200..t=0 0..m=audio 2146 RTP/AVP 18 18..a=rtpmap:18
G72
9/8000..a=sendrecv..a=rtpmap:18 G729/8000..a=sendrecv..a=ptime:20..
#
U 192.168.1.10:5060 -> 192.168.1.35:5060
INVITE sip:20105353490056 at 192.168.1.35:5060 SIP/2.0..Record-Route:
<sip:192
.168.1.10;ftag=xIjNxkDMxID;lr=on>..Via: SIP/2.0/UDP
192.168.1.10;branch=z9h
G4bK188d.03855495.0..Via: SIP/2.0/UDP
192.168.1.200:5060;branch=z9hG4bK31bc
676961f91e18..Max-Forwards: 16..To: <sip:05353490056 at 192.168.1.10>..From:
<
sip:12345 at 192.168.1.10;user=phone>;tag=xIjNxkDMxID..Call-ID:
876D1B912D9121
2 at 192.168.1.200..CSeq: 1 INVITE..Contact:
<sip:12345 at 192.168.1.200:5060>..S
ession-Expires: 100;refresher=uac..Supported: timer..Content-Type:
applicat
ion/sdp..Content-Length: 185....v=0..o=12345 0 0 IN IP4
192.168.1.200..s=-.
.c=IN IP4 192.168.1.200..t=0 0..m=audio 2146 RTP/AVP 18 18..a=rtpmap:18
G72
9/8000..a=sendrecv..a=rtpmap:18 G729/8000..a=sendrecv..a=ptime:20..
#
U 192.168.1.10:5060 -> 192.168.1.200:5060
SIP/2.0 200 ok -- no more pending branches..Via: SIP/2.0/UDP
192.168.1.200:
5060;branch=z9hG4bK31bc676961f91e18..To:
<sip:05353490056 at 192.168.1.10>;tag
=2f9bfc2acf470ceacf4efdebbaa289b4-026c..From:
<sip:12345 at 192.168.1.10;user=
phone>;tag=xIjNxkDMxID..Call-ID: 876D1B912D91212 at 192.168.1.200..CSeq: 1
CAN
CEL..Server: Sip EXpress router (0.9.2 (i386/linux))..Content-Length:
0..Wa
rning: 392 192.168.1.10:5060 "Noisy feedback tells: pid=4586
req_src_ip=19
2.168.1.200 req_src_port=5060 in_uri=sip:05353490056 at 192.168.1.10
out_uri=s
ip:20105353490056 at 192.168.1.35:5060 via_cnt==1"....
More information about the sr-users
mailing list