You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing commit 1dc6da8 compiled from source on Debian unstable/amd64.
When the parameter uac.reg_keep_callid is enabled to refresh registrations reusing the same Call-Id, attempts to update the registration fail with a timeout [uac_reg_tm_callback(): got sip response 408 while registering], which causes kamailio to subsequently register (successfully) using a new Call-Id.
This is the first registration after starting kamilio. Note how the From: header contains a tag=.
After 9 minutes (or 1 minute before expiry), kamilio attempts to update the registration, sending out 10 requests of which none is answered by the upstream provider. Note how the From: header is missing the above tag=. I suspect that the incomplete From: is the reason the upstream provider is not answering.
U 2017/01/15 19:06:18.850555 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Via: SIP/2.0/UDP 1.2.3.4;branch=z9hG4bKa4d5.c4f157d1000000000000000000000000.0.
To: <sip:11111111@sip.example.org>.
From: <sip:11111111@sip.example.org>.
CSeq: 12 REGISTER.
Call-ID: 705a8b605d872669-5747@127.0.0.1.
Max-Forwards: 70.
Content-Length: 0.
User-Agent: kamailio (5.0.0-pre0 (x86_64/linux)).
Contact: <sip:12345678@1.2.3.4:5060>.
Expires: 600.
U 2017/01/15 19:06:19.313086 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:20.312741 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:22.312706 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:26.312796 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:30.312725 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:34.312725 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:38.312711 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:42.312710 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
U 2017/01/15 19:06:46.312701 1.2.3.4:5060 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.
Same headers as above.
Each registration attempt coincides with a log entry by the dialog module:
Jan 15 19:06:18 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:19 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:20 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:22 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:26 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:30 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:34 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:38 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:42 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:46 ERROR: dialog [dlg_handlers.c:676]: pre_match_parse(): failed to get From header
Jan 15 19:06:48 ERROR: uac [uac_reg.c:1031]: uac_reg_tm_callback(): got sip response 408 while registering [12345678]
After a minute kamilio successfully registers using a new Call-id and a From: with tag=.
I just pushed a patch in tm to catch the situations when the modules don't provide a From tag when aiming at a request within a dialog. Can you pull the latest master and test?
I am testing commit 1dc6da8 compiled from source on Debian unstable/amd64.
When the parameter uac.reg_keep_callid is enabled to refresh registrations reusing the same Call-Id, attempts to update the registration fail with a timeout [
uac_reg_tm_callback(): got sip response 408 while registering
], which causes kamailio to subsequently register (successfully) using a new Call-Id.This is the first registration after starting kamilio. Note how the
From:
header contains atag=
.After 9 minutes (or 1 minute before expiry), kamilio attempts to update the registration, sending out 10 requests of which none is answered by the upstream provider. Note how the
From:
header is missing the abovetag=
. I suspect that the incompleteFrom:
is the reason the upstream provider is not answering.Each registration attempt coincides with a log entry by the dialog module:
After a minute kamilio successfully registers using a new Call-id and a
From:
withtag=
./etc/kamailio/kamailio.cfg
/etc/kamailio/dbtext/uacreg
The text was updated successfully, but these errors were encountered: