BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
149 stars 73 forks source link

Flexisip crash on wrong credentials #16

Closed crontab888 closed 6 years ago

crontab888 commented 6 years ago

Hi,

Scenario: uac( linphone registers/ sends invite to flexisip with wrong credentials) Flexisip crashes all the time printing the following in logs( this is for a register, on invite same happens): Tried with the latest built form git and with flexisip installed from debian repo provided, same behaviour.

Dec 23 11:16:50 debian flexisip: tport_deliver(0x8100c0): msg 0xad6ae0 (759 bytes) from udp/x.x.x.x:5060 next=(nil) Dec 23 11:16:50 debian flexisip: nta: received REGISTER sip:x.x.x.x SIP/2.0 (CSeq 22) Dec 23 11:16:50 debian flexisip: nta: Via check: received=x.x.x.x Dec 23 11:16:50 debian flexisip: nta: canonizing sip:x.x.x.x with contact Dec 23 11:16:50 debian flexisip: nta: REGISTER (22) to message callback Dec 23 11:16:50 debian flexisip: New SipEvent 0xad6ea0 - msg 0xad6ae0 Dec 23 11:16:50 debian flexisip: Receiving new Request SIP message REGISTER from sip:9876@x.x.x.x :#012REGISTER sip:x.x.x.x SIP/2.0#015#012Via: SIP/2.0/UDP 192.168.178.48:42652;branch=z9hG4bK.T7Sf9RG8J;rport=42652;received=x.x.x.x#015#012From: sip:9876@x.x.x.x;tag=QhyYbXVVC#015#012To: sip:9876@x.x.x.x#015#012CSeq: 22 REGISTER#015#012Call-ID: j~UNL6UHgP#015#012Max-Forwards: 70#015#012Supported: replaces, outbound#015#012Accept: application/sdp, text/plain, application/vnd.gsma.rcs-ft-http+xml#015#012Contact: sip:9876@192.168.178.48:42652;app-id=603201691053;pn-type=firebase;pn-tok=f9AbUAQdO-g:APA91bE8VA6SjekwT5ZNuZLBo3hLmugon0fzG15mum6TVizvS7S4-Cfje-rmRDNHwQNz1cgai3uymubB3KA9P9OMBaZTsNaSfSx6HXzuC6hTPxMEjTptjvasRaW9thfO0LA54m0Zbsd3;pn-silent=1;transport=udp;+sip.instance=""#015#012Expires: 3600#015#012User-Agent: LinphoneAndroid/3.3.1 (belle-sip/1.6.3) Dec 23 11:16:50 debian flexisip: Invoking onRequest() on module DoSProtection Dec 23 11:16:50 debian flexisip: Invoking onRequest() on module SanityChecker Dec 23 11:16:50 debian flexisip: Skipping onRequest() on module GarbageIn Dec 23 11:16:50 debian flexisip: Invoking onRequest() on module NatHelper Dec 23 11:16:50 debian flexisip: Fixing contact header with 192.168.178.48:42652 to x.x.x.x:42652 Dec 23 11:16:50 debian flexisip: Invoking onRequest() on module Authentication Dec 23 11:16:50 debian flexisip: New IncomingTransaction 0xad96b0 Dec 23 11:16:50 debian flexisip: nta_incoming_create: created incoming transaction 0xad9000 Dec 23 11:16:50 debian flexisip: flexisip_auth_method_digest: no credentials matched realm or no realm Dec 23 11:16:50 debian flexisip: New nonce gp3o3QAAAADWd6e8AABytu0YVG4AAAAA Dec 23 11:16:50 debian flexisip: Searching for 9876 password to have it when the authenticated request comes Dec 23 11:16:50 debian flexisip: There is no password for the given algorithm Dec 23 11:16:50 debian flexisip: waitpid() error: No child processes Dec 23 11:16:50 debian systemd[1]: flexisip.service: main process exited, code=exited, status=1/FAILURE Dec 23 11:16:50 debian systemd[1]: Unit flexisip.service entered failed state.

Configuration of the auth module: [module::Authentication] enabled=true auth-domains=127.0.0.1 x.x.x.x db-implementation=soci

datasource=soci

available-algorithms=MD5 SHA-256 soci-password-request=select password from accounts where id = :id and activated = "1" soci-backend=mysql soci-connection-string=db=flexisip user=root password='xxxx' host=localhost

As a note, tried( did my best) to use odbc, it crashes all the time and the "request" parameter is not accepted anymore in odbc configuration

Please advice or let me know if i can help in any way to troubleshoot.

Thanks

crontab888 commented 6 years ago

Upgrading Flexisip with latest deb seems to fix this.