Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552 FS#387 : MI datagram replies with wrong udp-port

sip-router

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

SIP Router Project

Tasklist

FS#387 - MI datagram replies with wrong udp-port

Attached to Project: sip-router
Opened by Per Carlen (peca) - Wednesday, 15 January 2014, 13:53 GMT
Last edited by Daniel-Constantin Mierla (miconda) - Friday, 21 February 2014, 14:55 GMT
Task Type Improvement
Category Modules kamailio
Status Unconfirmed
Assigned To No-one
Operating System Linux
Severity Low
Priority Normal
Reported Version 4.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When a udp-packet is sent to the address and port specified in kamailio.cfg, the response contains wrong source-port. The result is that external functions will be able to get responses.

In the following trace, mi_datagram listens on 127.0.0.1:9998. A perl-script sent a command to this port and never got the response back, since the portnumber had changed.

127.0.0.1.45047 > 127.0.0.1.9998
127.0.0.1.51988 > 127.0.0.1.45047

I had a brief look in the source-code, and it looks like a new socket is created for responses. Shouldn’t the “server socket” be used for sending responses?

This task depends upon

Comment by Daniel-Constantin Mierla (miconda) - Friday, 21 February 2014, 14:54 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

If anyone can submit a patch, we can review and accept.

So far when I used it (e.g., siremis), the udp receiver waits on its own socket for the response from kamailio.

Loading...