[SR-Users] Qualify from Asterisk to Kamailio's peers
Alexandr Usov
blessendor at gmail.com
Mon Mar 24 16:46:00 CET 2014
Thanks! Will try.
Can you tell me how I can get from Asterisk host hint status of Kamailio
registered peers?
asterisk> core show hints
11 at ext-status : SIP/11
State:Idle Watchers 0
12 at ext-status : SIP/12
State:Idle Watchers 0
It is always Idle, even offline on Kamailio.
So I belived that qualify options can help me, but qualify check only host,
but not user at host
2014-03-24 17:37 GMT+02:00 Daniel Tryba <daniel at pocos.nl>:
> On Monday 24 March 2014 15:23:31 Alexandr Usov wrote:
> > Peers (from Internet behind NAT) registered on Kamailio (local ip
> > 192.168.182.1), calls from/to routed via Asterisk (192.168.182.24).
> >
> >
> > Can't use qualify info:
> >
> > <--- SIP read from UDP:192.168.182.1:5060 --->
> > SIP/2.0 484 Address Incomplete
> ...
> > <------------->
>
> Check your kamailio.cfg. In the "default" config OPTIONS get this response
> due
> to:
> if ($rU==$null)
> {
> # request with no Username in RURI
> sl_send_reply("484","Address Incomplete");
> exit;
> }
>
> You'll have to response with a 200 yourself, eg:
>
> route[REQINIT]{
> ...
> if($si=="192.168.182.24" && is_method("OPTIONS"))
> {
> sl_send_reply("200","Up and running");
> exit;
> }
>
> It's up to you to decide to which OPTIONS requests to response with what
> code.
>
> --
>
> POCOS B.V. - Croy 9c - 5653 LC Eindhoven
> Telefoon: 040 293 8661 - Fax: 040 293 8658
> http://www.pocos.nl/ - http://www.sipo.nl/
> K.v.K. Eindhoven 17097024
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140324/cf622d71/attachment.html>
More information about the sr-users
mailing list