[Opalvoip-user] Problem with EndPoint/Transport when linkstatus changes
Brought to you by:
csoutheren,
rjongbloed
|
From: David J. <dav...@se...> - 2014-03-25 11:56:54
|
Hello,
I am experiencing a strange behaviour and am not sure if I am using Opal
correctly or missing something.
These are the steps executed:
- Creation of OpalManager and SIPEndPoint
- Creation of custom listeners:
- PStringArray my_listeners;
- my_listeners.AppendString("udp$<MY_IP>:5060"); //<MY_IP> = ip
of my eth0
- my_listeners.AppendString("tcp$<MY_IP>:5060");
- Starting of Listeners: SIPEndPoint->StartListeners(my_listeners);
- Registration on Server: SIPEndPoint->Register(params, token);
After this, the registration succeeds and the phone can be used. Calls
can be started and received.
Now I pull the ethernet cable. Since I am observing the state of the
connection, and realise the link went down, I stop the listeners:
- SIPEndPoint->RemoveListener(0);
After replugging the cable and realising the link went up again, I
restart the listeners and try to register the same way as above:
- SIPEndPoint->StartListeners(my_listeners);
- SIPEndPoint->Register(params, token);
This registration does not succeed. It does not matter how often I am
retrying it.
Here comes the thing I do not understand. I am monitoring all traffic
with wireshark. After the reconnect of the ethernet cable, I see
SIP-register packets being sent from the phone. I also see the response
from the SIP-server (Asterisk), which is a "401 Unauthorized" packet.
The log, that is written from the phone-application (the PTRACE output),
does show the sent register packets (PDU send), but does not show the
ones from the SIP server. There is no "PDU received" after the
reconnect. The application does not seem to see them.
So, what am I doing wrong / missing here?
Has anyone experienced a similar problem?
I am using the version Eridani of Opal and Ptlib (3/2.12.9).
Thank you in advance for your help.
Kind regards
David Jaschuk
|