Error 476 Unresolvable destination

885 views
Skip to first unread message

pir...@gmail.com

unread,
Jul 15, 2013, 12:32:39 PM7/15/13
to oversip
Good afternoon, I'm using OverSIP with OpenSIPS to connect a JsSIP
client (the TryIt demo running in local) with LinPhone, and I'm able
to connect from JsSIP to LinPhone and send chat messages but don't in
the other way, receiving an error "476 Unresolvable destination". I've
tested this both with OverSIP and OpenSIPS running on independent
machines and also in localhost, both with the same result. Doing a
trace with WireShark when both programs where running in local using
the loop interface, it seems it's a DNS problem trying to find the
.invalid domain created by OverSIP for the WebSocket connection. What
could be happening? How can I be able to fix it?

Greetings, Jesús Leganés Combarro "piranna".


--
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux

Iñaki Baz Castillo

unread,
Jul 15, 2013, 12:41:29 PM7/15/13
to ove...@googlegroups.com
2013/7/15 pir...@gmail.com <pir...@gmail.com>:
> Good afternoon, I'm using OverSIP with OpenSIPS to connect a JsSIP
> client (the TryIt demo running in local) with LinPhone, and I'm able
> to connect from JsSIP to LinPhone and send chat messages but don't in
> the other way, receiving an error "476 Unresolvable destination". I've
> tested this both with OverSIP and OpenSIPS running on independent
> machines and also in localhost, both with the same result. Doing a
> trace with WireShark when both programs where running in local using
> the loop interface, it seems it's a DNS problem trying to find the
> .invalid domain created by OverSIP for the WebSocket connection. What
> could be happening? How can I be able to fix it?


Could you please provide a capture (here in text within the mail
better than a pcap) of the SIP request arriving to OverSIP (that being
rejected with 476)?

--
Iñaki Baz Castillo
<i...@aliax.net>

José Luis Millán

unread,
Jul 15, 2013, 12:47:32 PM7/15/13
to ove...@googlegroups.com
Are you using a SIP Registrar Piranna?


2013/7/15 Iñaki Baz Castillo <i...@aliax.net>

--
You received this message because you are subscribed to the Google Groups "OverSIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oversip+u...@googlegroups.com.
To post to this group, send an email to ove...@googlegroups.com.
Visit this group at http://groups.google.com/group/oversip.
For more options, visit https://groups.google.com/groups/opt_out.





--
José Luis Millán

Jesús Leganés Combarro

unread,
Jul 15, 2013, 3:26:51 PM7/15/13
to ove...@googlegroups.com
I'm using the local running OpenSIPS and the external ones as registars. The external one accept any client connection always it has it's domain, and the local one with the default ubuntu package configuration (no database) does the same, so I supose both has the same configuration.

How can I be able to get the capture in text format? I have it in pcap.

José Luis Millán

unread,
Jul 15, 2013, 3:49:40 PM7/15/13
to ove...@googlegroups.com
You can redirect the output of ngrep to a text file.

`ngrep -d any -p -q -W byline port 5060`

5060 or the port where OpenSIPs is listening.


2013/7/15 Jesús Leganés Combarro <pir...@gmail.com>



--
José Luis Millán

pir...@gmail.com

unread,
Jul 15, 2013, 4:44:35 PM7/15/13
to oversip
I have the capture in pcap format fetch with WireShark, how can I
convert it? I don't know where or how I should use ngrep... :-/

2013/7/15 José Luis Millán <jmi...@aliax.net>:
> You received this message because you are subscribed to a topic in the
> Google Groups "OverSIP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/oversip/avr07aEfCck/unsubscribe.
> To unsubscribe from this group and all of its topics, send an email to
> oversip+u...@googlegroups.com.
> To post to this group, send an email to ove...@googlegroups.com.
> Visit this group at http://groups.google.com/group/oversip.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--

Iñaki Baz Castillo

unread,
Jul 15, 2013, 5:26:09 PM7/15/13
to ove...@googlegroups.com
Take a look to ngrep-sip:

http://dev.sipdoc.net/projects/sip-stuff/wiki/Ngrep-SIP

;)

2013/7/15 pir...@gmail.com <pir...@gmail.com>:
Iñaki Baz Castillo
<i...@aliax.net>

pir...@gmail.com

unread,
Jul 16, 2013, 6:43:58 AM7/16/13
to oversip
Here I've atached two trace in text format exported from WireShark,
one only with a capture of only the SIP messages related to the
problem from the first time I saw it, and another after running
OverSIP and OpenSIPS both on my local machine of the full process
since JsSIP try to reister to the OpenSIPS server and send chat
messages to the LinPhone client and viceversa.

2013/7/15 Iñaki Baz Castillo <i...@aliax.net>:
476 Unresolvable destination.txt
sesion completa.txt

Iñaki Baz Castillo

unread,
Jul 16, 2013, 7:21:39 AM7/16/13
to ove...@googlegroups.com
It is OpenSIPS replying 476 and not OverSIP. Not sure if you have
enabled Path support in OpenSIPS which is required to work in this
scenario. Otherwise OpenSIPS will retrieve the binding/location of
"jssip" user, which would have a Contact like
"sip:js...@xxxxxx.invalid;transport=ws" and of course OpenSIPS cannot
open a WS connection.

2013/7/16 pir...@gmail.com <pir...@gmail.com>:

pir...@gmail.com

unread,
Jul 16, 2013, 12:08:28 PM7/16/13
to oversip
Reading OpenSIPS doc seems to be the solution, but where should I set
this? Reading the docs I only find about setting modparam("register",
"use_path", 1) on opensips.cfg, but this seems to be for v1.4
requiring new ones to use save(), but where should I set it?

2013/7/16 Iñaki Baz Castillo <i...@aliax.net>:

Iñaki Baz Castillo

unread,
Jul 17, 2013, 5:29:03 AM7/17/13
to ove...@googlegroups.com
2013/7/16 pir...@gmail.com <pir...@gmail.com>:
> Reading OpenSIPS doc seems to be the solution, but where should I set
> this? Reading the docs I only find about setting modparam("register",
> "use_path", 1) on opensips.cfg, but this seems to be for v1.4
> requiring new ones to use save(), but where should I set it?

Honestly no idea, probably it is better to ask it in the OpenSISP maillist ;)

pir...@gmail.com

unread,
Jul 17, 2013, 5:38:15 AM7/17/13
to oversip
We'll take a workaround until the local openSIPS expert come back to
see it, so now i'll start digging with JsSIP instead and at last start
coding again since two weeks ago... :-P

2013/7/17 Iñaki Baz Castillo <i...@aliax.net>:

weimade chenwei

unread,
Feb 28, 2016, 8:21:50 AM2/28/16
to OverSIP
hey,did you fix the error?
i face the same error...

在 2013年7月17日星期三 UTC+8下午5:38:15,Jesús Leganés Combarro写道:
Reply all
Reply to author
Forward
0 new messages