[SR-Users] Kamilio+asterisk = deregister after 2-3 minute

Barry Flanagan barry at flanagan.ie
Fri Dec 11 14:34:01 CET 2020


On 11/12/2020 13:23, Mihai Cezar wrote:
> Hello, You right, i've found something, seems that the kamailio-probe 
> it puts the destination down. Any ideas why it's doing this ?
>

"OPTIONS-Request was finished with code 404"

The OPTIONS returns a 404. You need to put something into your default 
context in Asterisk so it returns 200. If your default context is 
"default" then this would work in extensions.conf:

/[default]/

/exten => s,1,Hangup()/

Then do a "dialplan reload" in asterisk.

Hope this helps

-Barry Flanagan

>
> : ds_run_route(): ds_run_route event_route[dispatcher:dst-down
> : ds_run_route(): route does not exist 8(24491) DEBUG: {2 10 OPTIONS 
> 3afe874f6d71811b-24504 at 127.0.0.1 
> <mailto:3afe874f6d71811b-24504 at 127.0.0.1>} dispatcher
> : ds_options_callback(): OPTIONS-Request was finished with code 404 
> (to sip:10.1.2.2;transport=udp, group 1)
> : ds_update_state(): update state for sip:10.1.2.2;transport=udp in 
> group 1 to 10
> : ds_update_state(): destination did not replied 10 times, threshold 10
> : ds_update_state(): deactivate destination, threshold 10 reached
> : ds_run_route(): ds_run_route event_route[dispatcher:dst-down
> : ds_run_route(): route does not exist 8(24491) DEBUG: {2 10 OPTIONS 
> 3afe874f6d71811c-24504 at 127.0.0.1 
> <mailto:3afe874f6d71811c-24504 at 127.0.0.1>} dispatcher [dispatch.c:2805
> : ds_manage_routes(): set 1
>
> On Thu, Dec 10, 2020 at 11:53 AM Володимир Іванець 
> <volodyaivanets at gmail.com <mailto:volodyaivanets at gmail.com>> wrote:
>
>     Hello,
>
>     Can you see some warnings or errors in the Kamailio log file? If
>     no, try to increase the verbosity level.
>
>     Also, how does the third REGISTER compares to the first or second one?
>
>     чт, 10 груд. 2020 о 09:08 Mihai <m at mokalife.ro
>     <mailto:m at mokalife.ro>> пише:
>
>         Hi,
>
>         I am forwarding all the traffic to my asterisk server (
>         including registers)
>         everything seems to work when i first register but if stay
>         idle 2-3 minute it gets unregistered and then i can't register
>         back unless i restart kamailio
>         see attached print screen
>         _______________________________________________
>         Kamailio (SER) - Users Mailing List
>         sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>         https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>         <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>     _______________________________________________
>     Kamailio (SER) - Users Mailing List
>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>     <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
-Barry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201211/187210e1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xB1C81B216B50A825.asc
Type: application/pgp-keys
Size: 3066 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201211/187210e1/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201211/187210e1/attachment.sig>


More information about the sr-users mailing list