[OpenSIPS-Users] opensips regster issue

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jan 25 14:20:20 CET 2016


Hi Schneur,

A failing ACK may indicate the problem with sequential routing -> in the 
route set opensips puts the real/advertise IP....basically an IP.

While in domain table you usually put FQDN / domains. Of course, you 
could put the advertised IP in the domain table. It will do the trick 
but it will be a kind of misusage (you use a tool for SIP routing to fix 
some IP routing issue).

This is why I recommend to use the alias global param in combination 
with the advertised address.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.01.2016 15:03, Schneur Rosenberg wrote:
> I'm having similar issue for some ACK messages, but I was wondering 
> how come OpenSIPS does not check the domain table to know that this is 
> a known domain and it should check upon those addresses?
>
> On Mon, Jan 25, 2016 at 1:18 PM, Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     Hi Michael,
>
>     Actually there is simpler solution, if you want to keep your
>     listener with the IP. Just add:
>         alias="yourdomain.com <http://yourdomain.com>"
>
>     So, even OpenSIPS is listening on IP x.y.z.w, it will know it is
>     responsible for handling traffic for the yourdomain.com
>     <http://yourdomain.com> SIP domain.
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 23.01.2016 11:50, MichaelLeung wrote:
>>     i fix the problem myself
>>
>>     just add your domain name to opensips.cfg
>>     like:
>>      listen:udp:yourdoamdin.com:5060 <http://yourdoamdin.com:5060>
>>
>>
>>     On 01/23/2016 02:59 PM, MichaelLeung wrote:
>>>     any reply ?
>>>
>>>     On 01/23/2016 01:17 AM, MichaelLeung wrote:
>>>>     Hi team
>>>>
>>>>     my opensips server can accept regster request using IP address
>>>>     from client , but will not accept with domain name.
>>>>
>>>>     there is the output log from debug 4
>>>>
>>>>     please help me to find out what cause  the problem , thanks
>>>>
>>>>     ---------------------------------------------------------------------------------------
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_msg: SIP Request:
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_msg:  method:  <REGISTER>
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_msg:  uri:     <sip:sip2.xxxxx.eu.org
>>>>     <http://sip2.xxxxx.eu.org>>
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_msg:  version: <SIP/2.0>
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=2
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_via_param: found param type 232, <branch> =
>>>>     <z9hG4bK.RhSz~gcCo>; state=6
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_via_param: found param type 235, <rport> =
>>>>     <n/a>; state=17
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_via: end of header reached, state=5
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: via found, flags=2
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: this is the first via
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:receive_msg: After parse_msg...
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:receive_msg: preparing to run routing scripts...
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=100
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_to: end of header reached, state=9
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_to: display={}, ruri={sip:102 at sip2.xxxxx.eu.org
>>>>     <mailto:sip:102 at sip2.xxxxx.eu.org>}
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:get_hdr_field: <To> [30];
>>>>     uri=[sip:102 at sip2.xxxxx.eu.org <mailto:sip:102 at sip2.xxxxx.eu.org>]
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:get_hdr_field: to body
>>>>     [sip:102 at sip2.xxxxx.eu.org#015#012
>>>>     <mailto:sip:102 at sip2.xxxxx.eu.org#015%23012>]
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:get_hdr_field: cseq <CSeq>: <30> <REGISTER>
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:maxfwd:is_maxfwd_present: value = 70
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:uri:has_totag: no totag
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=78
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:t_lookup_request: start searching: hash=920, isACK=0
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:matching_3261: RFC3261 transaction matching failed
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:t_lookup_request: no transaction found
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=200
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:get_hdr_field: found end of header
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:rr:find_first_route: No Route headers found
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:rr:loose_route: There is no Route HF
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if host==us: 20==13 && 
>>>>     [sip2.xxxxx.eu.org <http://sip2.xxxxx.eu.org>] == [192.168.29.57]
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if port 5060 matches port 5060
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if host==us: 20==7 && 
>>>>     [sip2.xxxxx.eu.org <http://sip2.xxxxx.eu.org>] == [9.9.9.9]
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if port 5060 matches port 5060
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if host==us: 20==13 && 
>>>>     [sip2.xxxxx.eu.org <http://sip2.xxxxx.eu.org>] == [192.168.29.57]
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if port 5060 matches port 5060
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if host==us: 20==7 && 
>>>>     [sip2.xxxxx.eu.org <http://sip2.xxxxx.eu.org>] == [9.9.9.9]
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:grep_sock_info: checking if port 5060 matches port 5060
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:check_self: host != me
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=ffffffffffffffff
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:t_newtran: transaction on entrance=(nil)
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=ffffffffffffffff
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:parse_headers: flags=78
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:t_lookup_request: start searching: hash=920, isACK=0
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:matching_3261: RFC3261 transaction matching failed
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:t_lookup_request: no transaction found
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:run_reqin_callbacks: trans=0x7f68f3afd860, callback type
>>>>     1, id 1 entered
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:tm:run_reqin_callbacks: trans=0x7f68f3afd860, callback type
>>>>     1, id 0 entered
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:mk_proxy: doing DNS lookup...
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:sip_resolvehost: no port, no proto -> do NAPTR lookup!
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:get_record: lookup(sip2.xxxxx.eu.org
>>>>     <http://sip2.xxxxx.eu.org>, 35) failed
>>>>     Jan 23 01:09:52 ali /opt/opensips/sbin/opensips[30344]:
>>>>     DBG:core:sip_resolvehost: no valid NAPTR record found for
>>>>     sip2.xxxxx.eu.org <http://sip2.xxxxx.eu.org>, trying direct SRV
>>>>     lookup...
>>>>
>>>
>>
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto: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/20160125/6cb4a903/attachment-0001.htm>


More information about the Users mailing list