[Users] DISPATCHER not sending outgoing INVITES 100% of the time

Anders Brownworth abrownworth-openser at bandwidth.com
Tue Feb 7 16:51:33 CET 2006


Thanks Klaus, I appreciate your help.

I did put step-by-step xlogs around my code and can see that the module 
sometimes picks a new IP to go to but most times it doesn't and hence no 
INVITE goes out.

I can't tie success or failure to any specific event. I have now tried 
this configuration in OpenSER 1.1 from yesterday's CVS tree with 
identical results.

Is anyone else seeing this issue?

Thanks.

-Anders

Klaus Darilion wrote:
> Hi Anders!
>
> I've never used the dispatcher module, but by putting xlog statementes 
> after each function in openser.cfg will give you a hints what's going 
> on inside openser.
>
> log important paramters (request URI, dest URI) using xlog and pseudo 
> variables and watch them in syslog.
>
> regards
> klaus
>
> Anders Brownworth wrote:
>> Hi,
>>
>> I haven't been able to get an outgoing INVITE for every incoming 
>> INVITE my dispatcher setup receives.
>>
>> What I'm expecting:
>>
>> When the first INVITE comes from 10.1.50.30 (Asterisk) to 10.1.50.31, 
>> (OpenSER 1.0.0 with dispatcher) I want to see an outgoing INVITE from 
>> 10.1.50.31 to one of the listed addresses. (10.1.50.[34-37])
>>
>> What I'm seeing:
>>
>> A tcpdump shows that most of the time (90%) all I see is the incoming 
>> INVITE. Seemingly random INVITES produce an outgoing INVITE. 
>> Presumably the only substantive difference being the CallID. 
>> Interestingly, all the outgoing INVITEs
>> are addressed to the same IP. (10.1.50.36)
>>
>> Am I not expecting the right thing? Can anyone shed some light on 
>> what I'm doing wrong here?
>>
>> Thanks.
>>
>> 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 "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( );
>>
>>        };
>>
>>        ds_select_domain( "1", "0" );
>>
>>        forward( uri:host, uri:port );
>>
>> }
>>
>>
>> -----------------------------------------------------------------------
>> dispatcher.list:
>> -----------------------------------------------------------------------
>> # gateways
>> 1       sip:10.1.50.34:5060
>> 1       sip:10.1.50.35:5060
>> 1       sip:10.1.50.36:5060
>> 1       sip:10.1.50.37:5060
>>
>>
>> -----------------------------------------------------------------------
>> tcpdump shows:
>> -----------------------------------------------------------------------
>> 07:43:37.216888 IP 10.1.50.30.5060 > 10.1.50.31.5060: UDP, length: 685
>> . at . <http://openser.org/cgi-bin/mailman/listinfo/users>@...
>> .2.
>> .2.........INVITE sip:+18666775910 at 10.1.50.31 
>> <http://openser.org/cgi-bin/mailman/listinfo/users> SIP/2.0
>> Via: SIP/2.0/UDP 10.1.50.30:5060;branch=z9hG4bK434da07b
>> From: "+19195551212" <sip:+19195551212 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>;tag=as3a379ead
>> To: <sip:+18666775910 at 10.1.50.31 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>
>> Contact: <sip:+19195551212 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>
>> Call-ID: 7dd7978262a876832fc69a4364f89f22 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>
>> CSeq: 102 INVITE
>> User-Agent: BandwidthVoice
>> Date: Fri, 03 Feb 2006 12:41:35 GMT
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
>> Content-Type: application/sdp
>> Content-Length: 202
>>
>> v=0
>> o=root 11014 11014 IN IP4 10.1.50.30
>> s=session
>> c=IN IP4 10.1.50.30
>> t=0 0
>> m=audio 8360 RTP/AVP 0 3 8
>> a=rtpmap:0 PCMU/8000
>> a=rtpmap:3 GSM/8000
>> a=rtpmap:8 PCMA/8000
>>
>>        a=silenceSupp:off - - - -
>>
>> -----------------------------------------------------------------------
>>
>> with no outgoing INVITE. Things seem to be dead. Then I try the same 
>> call a few seconds later and I get the outgoing INVITE, but always to 
>> the
>> same IP (10.1.50.36)
>>
>> -----------------------------------------------------------------------
>>
>> 07:43:48.695958 IP 10.1.50.30.5060 > 10.1.50.31.5060: UDP, length: 686
>> . at . <http://openser.org/cgi-bin/mailman/listinfo/users>@...
>> .2.
>> .2.........INVITE sip:+18666775910 at 10.1.50.31 
>> <http://openser.org/cgi-bin/mailman/listinfo/users> SIP/2.0
>> Via: SIP/2.0/UDP 10.1.50.30:5060;branch=z9hG4bK15490a4e
>> From: "+19195551212" <sip:+19195551212 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>;tag=as302ac772
>> To: <sip:+18666775910 at 10.1.50.31 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>
>> Contact: <sip:+19195551212 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>
>> Call-ID: 531db3695f15035620baae890d555216 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>
>> CSeq: 102 INVITE
>> User-Agent: BandwidthVoice
>> Date: Fri, 03 Feb 2006 12:41:46 GMT
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
>> Content-Type: application/sdp
>> Content-Length: 203
>>
>> v=0
>> o=root 11015 11015 IN IP4 10.1.50.30
>> s=session
>> c=IN IP4 10.1.50.30
>> t=0 0
>> m=audio 28484 RTP/AVP 0 3 8
>> a=rtpmap:0 PCMU/8000
>> a=rtpmap:3 GSM/8000
>> a=rtpmap:8 PCMA/8000
>> a=silenceSupp:off - - - -
>>
>> 07:43:48.696191 IP 10.1.50.31.5060 > 10.1.50.36.5060: UDP, length: 747
>> E....*@. at ..g <http://openser.org/cgi-bin/mailman/listinfo/users>
>> .2.
>> .2$......S.INVITE sip:+18666775910 at 10.1.50.36 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>: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=z9hG4bK15490a4e
>> From: "+19195551212" <sip:+19195551212 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>;tag=as302ac772
>> To: <sip:+18666775910 at 10.1.50.31 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>
>> Contact: <sip:+19195551212 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>>
>> Call-ID: 531db3695f15035620baae890d555216 at 10.1.50.30 
>> <http://openser.org/cgi-bin/mailman/listinfo/users>
>> CSeq: 102 INVITE
>> User-Agent: BandwidthVoice
>> Date: Fri, 03 Feb 2006 12:41:46 GMT
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
>> Content-Type: application/sdp
>> Content-Length: 203
>>
>> v=0
>> o=root 11015 11015 IN IP4 10.1.50.30
>> s=session
>> c=IN IP4 10.1.50.30
>> t=0 0
>> m=audio 28484 RTP/AVP 0 3 8
>> a=rtpmap:0 PCMU/8000
>> a=rtpmap:3 GSM/8000
>> a=rtpmap:8 PCMA/8000
>>
>>        a=silenceSupp:off - - - -
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list