Hi Anders,
according to the openser output, the request is forwarded. I also see no
errors indicating that the send failed.
Are you sure is not an issue with your network configuration? routes?
interfaces? filters?
regards,
bogdan
Anders Brownworth wrote:
I'm seeing the R-URI properly set 100% of the
time. I still only get
an outgoing INVITE about 10% of the time, and always to the same IP.
(10.1.50.36)
What has to happen to get OpenSER to fire off an outgoing INVITE for
every incoming INVITE?
In the example below, R-URI is set properly to
sip:+18666775910@10.1.50.37:5060 but still no outgoing INVITE...
thoughts?
Thanks.
-Anders
-------------------------------------------------------
openser.cfg:
-------------------------------------------------------
debug=4
fork=yes
log_stderror=no
children=4
check_via=no
dns=off
rev_dns=off
port=5060
mpath="/usr/local/lib/openser/modules"
loadmodule "maxfwd.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "xlog.so"
loadmodule "dispatcher.so"
modparam( "dispatcher", "list_file",
"/usr/local/etc/openser/dispatcher.list" )
route {
if ( ! mf_process_maxfwd_header( "10" ) ) {
sl_send_reply( "483", "To Many Hops" );
drop( );
};
xlog( "L_ERR", "A: $rm $fu -> $tu - $ru" );
ds_select_domain( "1", "0" );
xlog( "L_ERR", "B: $rm $fu -> $tu - $ru" );
forward( uri:host, uri:port );
}
-------------------------------------------------------
syslog:
-------------------------------------------------------
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: SIP Request:
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: method: <INVITE>
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: uri:
<sip:+18666775910@10.1.50.31>
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: version:
<SIP/2.0>
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: parse_headers:
flags=2
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: Found param
type 232, <branch> = <z9hG4bK51d46bb6>; state=16
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: end of header
reached, state=5
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: parse_headers:
Via found, flags=2
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: parse_headers:
this is the first via
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: After parse_msg...
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: preparing to
run routing scripts...
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: parse_headers:
flags=100
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
DEBUG:parse_to:end of header reached, state=9
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: DEBUG:
get_hdr_field: <To> [31]; uri=[sip:+18666775910@10.1.50.31]
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: DEBUG: to body
[<sip:+18666775910@10.1.50.31> ]
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: get_hdr_field:
cseq <CSeq>: <102> <INVITE>
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: DEBUG:
get_hdr_body : content_length=201
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: found end of
header
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: DEBUG:
is_maxfwd_present: max_forwards header not found!
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: DEBUG:
add_param: tag=as09581ebe
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
DEBUG:parse_to:end of header reached, state=29
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: xl_printf:
final buffer length 98
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: A: INVITE
sip:+19195551212@10.1.50.30 -> sip:+18666775910@10.1.50.31 -
sip:+18666775910@10.1.50.31
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
DISPATCHER:ds_select_dst: set index [1->0]
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
DISPATCHER:ds_select_dst: alg hash [2371427583]
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
DISPATCHER:ds_select_dst: selected [0-1/0/3] <sip:10.1.50.37:5060>
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: xl_printf:
final buffer length 103
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: B: INVITE
sip:+19195551212@10.1.50.30 -> sip:+18666775910@10.1.50.31 -
sip:+18666775910@10.1.50.37:5060
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: DEBUG:
mk_proxy: doing DNS lookup...
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
check_via_address(10.1.50.30, 10.1.50.30, 0)
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: Sending: INVITE
sip:+18666775910@10.1.50.37:5060 SIP/2.0 Max-Forwards: 10 Via:
SIP/2.0/UDP 10.1.50.31;branch=0 Via: SIP/2.0/UDP
10.1.50.30:5060;branch=z9hG4bK51d46bb6 From: "+19195551212"
<sip:+19195551212@10.1.50.30>;tag=as09581ebe To:
<sip:+18666775910@10.1.50.31> Contact: <sip:+19195551212@10.1.50.30>
Call-ID: 4b8b1db93f954af53c94ff356570f0bd(a)10.1.50.30 CSeq: 102
INVITE User-Agent: BandwidthVoice Date: Tue, 07 Feb 2006 17:43:41
GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Content-Type:
application/sdp Content-Length: 201 v=0 o=root 5622 5622 IN IP4
10.1.50.30 s=session c=IN IP4 10.1.50.30 t=0 0 m=audio 15872
RTP/AVP 0 3 8 a=rtpmap:0 PCMU/8000 a=rtpmap:3 GSM/8000 a=rtpmap:8
PCMA/8000 a=silenceSupp:off - - - - .
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: orig. len=684,
new_len=745, proto=1
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]:
DEBUG:destroy_avp_list: destroying list (nil)
Feb 7 12:45:41 siplb01 /usr/local/sbin/openser[5684]: receive_msg:
cleaning up
-------------------------------------------------------
ngrep -d any port 5060 or icmp
-------------------------------------------------------
U 10.1.50.30:5060 -> 10.1.50.31:5060
INVITE sip:+18666775910@10.1.50.31 SIP/2.0..Via: SIP/2.0/UDP 10.1.50.30:
5060;branch=z9hG4bK51d46bb6..From: "+19195551212" <sip:+19195551212@10.1
.50.30>;tag=as09581ebe..To: <sip:+18666775910@10.1.50.31>..Contact: <sip
:+19195551212@10.1.50.30>..Call-ID: 4b8b1db93f954af53c94ff356570f0bd@10.
1.50.30..CSeq: 102 INVITE..User-Agent: BandwidthVoice..Date: Tue, 07 Feb
2006 17:43:41 GMT..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER..Con
tent-Type: application/sdp..Content-Length: 201....v=0..o=root 5622 5622
IN IP4 10.1.50.30..s=session..c=IN IP4 10.1.50.30..t=0 0..m=audio 15872
RTP/AVP 0 3 8..a=rtpmap:0 PCMU/8000..a=rtpmap:3 GSM/8000..a=rtpmap:8 PC
MA/8000..a=silenceSupp:off - - - -..
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users