[OpenSIPS-Users] capability of load balancer

Agung agoengnug at gmail.com
Wed Jun 23 18:29:04 CEST 2010


Bogdan-Andrei Iancu <bogdan at ...> writes:

> 
> Hi Agung,
> 
> I see - so you have a cluster of servers for audio and video playback 
> and you want to put opensips in front to load balance the incoming 
> traffic to the servers from the cluster.
> 
> That is a correct applicability for a load balancer. Now, if you read 
> the LB tutorial, you know you have to define the resources (like a audio 
> channel or a video channel) and to use 2 set for balancing (one for 
> audio destinations, one for video destination).
> 
> Regards,
> Bogdan
> 

Yes that what I do. And thanks to your doc, it help me a lot.
Now I want to test my server using sipP. 
Did you have an example xml for register and INVITE???

I have create a thousand user but I still cannot test my server using my xml.
This is my xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>

<scenario name="register_client">
  <send retrans="500">
    <![CDATA[
      REGISTER sip:[field1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: <sip:[field0]@[field1]>;tag=[call_number]
      To: <sip:[field0]@[field1]>
      Call-ID: [call_id]
      CSeq: 1 REGISTER
      Contact: sip:[field0]_[branch]@[local_ip]:[local_port]
      Max-Forwards: 5
      Expires: 3600
      User-Agent: SIPp/Linux
      Content-Length: 0
    ]]>
  </send>

<recv response="100" optional="true">
  </recv>
  <recv response="401" auth="true">
  </recv>
  <send retrans="500">
    <![CDATA[
      REGISTER sip:[field1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: <sip:[field0]@[field1]>;tag=[call_number]
      To: <sip:[field0]@[field1]>
      Call-ID: [call_id]
      CSeq: 2 REGISTER
	Contact: sip:[field0]_[branch]@[local_ip]:[local_port]
      [field2]
      Supported: path
      Max-Forwards: 5
      Expires: 3600
      User-Agent: SIPp/Linux
      Content-Length: 0
    ]]>
  </send>
<recv response="100" optional="true">
  </recv>
  <recv response="200">
  </recv>
</scenario>

And it say error like this:

Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: 
bad header field
Jun 23 13:19:17 [13407] ERROR:maxfwd:is_maxfwd_present: 
parsing MAX_FORWARD header failed!
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: 
expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: bad header field
Jun 23 13:19:17 [13407] ERROR:tm:t_lookup_request: too few headers
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq:
 expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: bad header field
Jun 23 13:19:17 [13407] ERROR:rr:find_first_route: 
failed to parse headers
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: bad header field
Jun 23 13:19:17 [13407] ERROR:textops:search_body_f:
failed to get the message body
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: bad header field
Jun 23 13:19:17 [13407] ERROR:dialog:init_leg_info:
 bad sip message or missing CSeq hdr :-/
Jun 23 13:19:17 [13407] ERROR:dialog:dlg_create_dialog: 
could not add further info to the dialog
Jun 23 13:19:17 [13407] ERROR:load_balancer:do_load_balance: 
failed to create dialog
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq:
 expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: bad header field
Jun 23 13:19:17 [13407] ERROR:auth:find_credentials: 
failed to parse headers
Jun 23 13:19:17 [13407] ERROR:auth:pre_auth: 
failed to find credentials
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: expecting CSeq EoL
Jun 23 13:19:17 [13407] ERROR:core:parse_cseq: bad cseq
Jun 23 13:19:17 [13407] ERROR:core:get_hdr_field: bad cseq
Jun 23 13:19:17 [13407] INFO:core:parse_headers: bad header field
Jun 23 13:19:17 [13407] ERROR:core:build_res_buf_from_sip_req:
 parse_headers failed
Jun 23 13:19:17 [13407] ERROR:sl:sl_send_reply_helper: 
response building failed
Jun 23 13:19:17 [13407] ERROR:signaling:sig_send_reply_mod:
 failed to send reply
with sl module
Jun 23 13:19:17 [13407] ERROR:auth:pre_auth: failed to send 400 reply 





More information about the Users mailing list