[OpenSIPS-Users] opensips doesn't forward registration request

vip killa vipkilla at gmail.com
Wed Aug 17 18:25:44 CEST 2011


In case anyone was wondering, i had to set the flags = 0
so my dispatcher table looked like:
+----+-------+-----------------+-------+--------+-------+-------------+
| id | setid | destination     | flags | weight | attrs | description |
+----+-------+-----------------+-------+--------+-------+-------------+
|  4 |     1 | sip:10.20.30.18 |     0 |      1 |       | FS1         |
+----+-------+-----------------+-------+--------+-------+-------------+

or you can just run this command:
opensipsctl dispatcher addgw 1 sip:10.20.30.18 0 'FS1'


On Tue, Aug 16, 2011 at 2:14 PM, vip killa <vipkilla at gmail.com> wrote:

> ----------------begin of packet -----------------------------
> U 2011/08/16 14:11:53.026316 72.237.213.162:5060 -> 10.20.30.17:5060
>
> REGISTER sip:10.20.30.17 SIP/2.0
> CSeq: 54 REGISTER
> Via: SIP/2.0/UDP 72.237.213.162:5060
> ;branch=z9hG4bKc5a0eeab-e604-1910-80c1-002622a67db9;rport
> User-Agent: Ekiga/3.2.7
> From: <sip:1000 at 10.20.30.17>;tag=758eeeab-e604-1910-80c1-002622a67db9
> Call-ID: 758eeeab-e604-1910-80c0-002622a67db9 at ievolve113
> To: <sip:1000 at 10.20.30.17>
> Contact: <sip:1000 at 72.237.213.162:5060>;q=1
> Allow:
> INVITE,ACK,OPTIONS,BYE,CANCEL,SUBSCRIBE,NOTIFY,REFER,MESSAGE,INFO,PING
> Expires: 3600
> Content-Length: 0
> Max-Forwards: 70
>
>
> ------------------end of packet -----------------------------
> ----------------begin of packet -----------------------------
> U 2011/08/16 14:11:53.356244 10.20.30.17:5060 -> 72.237.213.162:5060
>
> SIP/2.0 503 Service Unavailable
> CSeq: 54 REGISTER
> Via: SIP/2.0/UDP 72.237.213.162:5060
> ;branch=z9hG4bKc5a0eeab-e604-1910-80c1-002622a67db9;rport=5060
> From: <sip:1000 at 10.20.30.17>;tag=758eeeab-e604-1910-80c1-002622a67db9
> Call-ID: 758eeeab-e604-1910-80c0-002622a67db9 at ievolve113
> To: <sip:1000 at 10.20.30.17>;tag=eb64f4865b25b383530fbea3a793a5fa.2d86
> Server: OpenSIPS (1.6.4-2-notls (x86_64/linux))
> Content-Length: 0
>
>
>
>
> ------------------end of packet -----------------------------
>
> On Tue, Aug 16, 2011 at 2:08 PM, vip killa <vipkilla at gmail.com> wrote:
>
>> this is the dispatcher table:
>> +----+-------+-----------------+-------+--------+-------+-------------+
>> | id | setid | destination     | flags | weight | attrs | description |
>> +----+-------+-----------------+-------+--------+-------+-------------+
>> |  3 |     1 | sip:10.20.30.18 |     1 |      1 |       | FS1         |
>> +----+-------+-----------------+-------+--------+-------+-------------+
>>
>>
>> i dont see any response... i supposed i should do an ngrep
>>
>>
>> On Tue, Aug 16, 2011 at 2:04 PM, Mario Stocco <info at advantia.ca> wrote:
>>
>>> Do you have entries in your dispatcher table for your Freeswitch
>>> system(s)?
>>> What is response returned to the registering UA?
>>>
>>> Mario
>>> http://advantia.ca
>>>
>>> On Tue, Aug 16, 2011 at 10:47 AM, vip killa <vipkilla at gmail.com> wrote:
>>> > Running opensips-1.6.4-2-tls, I cannot get OpenSIPS to forward the
>>> > registration request to FreeSWITCH. Here is what the debugging looks
>>> like
>>> > when i try to register with the opensip box
>>> > 10.20.30.17 is the opensips box.
>>> > 10.20.30.18 is the FreeSWITCH box.
>>> > my opensips.cfg is copied from
>>> > http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS with
>>> the IPs
>>> > switched out appropriately
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_msg:
>>> > SIP Request:
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_msg:
>>> >  method:  <REGISTER>
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_msg:
>>> >  uri:     <sip:10.20.30.17>
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_msg:
>>> >  version: <SIP/2.0>
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_headers: flags=2
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:get_hdr_field: cseq <CSeq>: <43> <REGISTER>
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_via_param: found param type 232, <branch> =
>>> > <z9hG4bKda029da0-e604-1910-80bc-002622a67db9>; state=6
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_via_param: found param type 235, <rport> = <n/a>;
>>> state=17
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_via:
>>> > end of header reached, state=5
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_headers: via found, flags=2
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_headers: this is the first via
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:receive_msg: After parse_msg...
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:receive_msg: preparing to run routing scripts...
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_headers: flags=100
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_to:
>>> > end of header reached, state=10
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_to:
>>> > display={}, ruri={sip:1000 at 10.20.30.17}
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:get_hdr_field: <To> [24]; uri=[sip:1000 at 10.20.30.17]
>>> >  ]  16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:get_hdr_field: to body [<sip:1000 at 10.20.30.17>
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:get_hdr_field: content_length=0
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:maxfwd:is_maxfwd_present: value = 70
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:uri:has_totag:
>>> > no totag
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_to_param: tag=70ea9ca0-e604-1910-80bc-002622a67db9
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_to:
>>> > end of header reached, state=29
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> DBG:core:parse_to:
>>> > display={}, ruri={sip:1000 at 10.20.30.17}
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:dispatcher:ds_select_dst: set [1]
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:dispatcher:ds_select_dst: alg hash [1], id [1]
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:parse_headers: flags=ffffffffffffffff
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:get_hdr_field: found end of header
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:check_ip_address: params 72.237.213.162, 72.237.213.162, 0
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:destroy_avp_list: destroying list (nil)
>>> > Aug 16 13:40:14 voipdev1 /usr/local/sbin/opensips[2580]:
>>> > DBG:core:receive_msg: cleaning up
>>> > _______________________________________________
>>> > Users mailing list
>>> > Users at lists.opensips.org
>>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> >
>>> >
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110817/7aa5d890/attachment.htm>


More information about the Users mailing list