Commit Graph

513 Commits

Author SHA1 Message Date
Michael Jerris 59478dd599 Thu Apr 16 12:04:08 CDT 2009 Pekka Pessi <first.last@nokia.com>
* nua_client, nua_session: avoid restarting in-progress transactions
  
  This is supposed to fix bugs #SFSIP-135 and #SFSIP-137. Thanks for Tamas
  Jalsovszky and kawarod for reporting the problem.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13062 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-16 17:18:56 +00:00
Michael Jerris 5278050e61 Wed Apr 8 16:37:43 CDT 2009 Pekka Pessi <first.last@nokia.com>
* nua_session.c: do not restart CANCEL requests
  Ignore-this: 2c9d51bbafca2256630a0ea73982abea
  
  Fixes FreesWitch bug SFSIP-134, reported by vile, initial patch by Mike
  Jerris.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13061 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-16 15:00:42 +00:00
Michael Jerris 568baaeef7 Tue Mar 24 07:39:57 CDT 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
* nua/check_register.c: fixed up value setting for NAT-imitating received parameters



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13059 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-16 14:59:59 +00:00
Michael Jerris 3e1b921f8f temporary hack to avoid segfaults on 503 w/ retry-after and 423 responses to CANCEL (and maybe others) (SFSIP-134)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12942 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-07 21:34:31 +00:00
Michael Jerris 54be7df9ff temporary hack to ignore retry-after so we can avoid segfault (SFSIP-134)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12941 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-07 20:53:42 +00:00
Michael Jerris eaf0c7c8b5 libsofiasip: fix buffer overrun (SFSIP-136)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12914 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-03 23:04:42 +00:00
Michael Jerris b23c86a1bf revert
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12857 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-31 20:54:31 +00:00
Michael Jerris 9b42edc319 linux... how did that not crash every time
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12856 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-31 20:51:35 +00:00
Michael Jerris a26400fc4c Tue Mar 3 12:23:35 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>
* su_uniqueid.c: srand() must be called per-thread on windows
  Ignore-this: ee98b86faadc4a39186ba4991b073c40

Mon Mar 23 12:41:53 CDT 2009  Pekka Pessi <first.last@nokia.com>
  * su_uniqueid.c: simple threadsafe implementation
  Ignore-this: b3597fb6032b79a61b63f004f121188b
  
  Using /dev/urandom where available, simple 64-bit prng elsewhere.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12756 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:54:18 +00:00
Michael Jerris 79081a2faa Mon Mar 23 12:22:50 CDT 2009 Pekka Pessi <first.last@nokia.com>
* nta.c: use random key when generating tags
  Ignore-this: 3e989f42549acbdbc259383b1b64e74d


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12754 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:48:19 +00:00
Michael Jerris 123153d843 Wed Mar 11 11:52:58 CDT 2009 Pekka Pessi <first.last@nokia.com>
* tport.c: silence VC warnings
  Ignore-this: b81c43b73fcefa2dd58dd3366dd60368


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12751 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:46:13 +00:00
Michael Jerris bfb14992f1 Wed Mar 11 11:51:43 CDT 2009 Pekka Pessi <first.last@nokia.com>
* sres_sip.c: silence VC warnings
  Ignore-this: dd9d4b774716430cdf429ed86664b109


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12750 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:45:45 +00:00
Michael Jerris 52f03208c9 Wed Mar 11 11:50:44 CDT 2009 Pekka Pessi <first.last@nokia.com>
* msg_mime.c: explicit cast when assigning to mp_len
  Ignore-this: ca5b8291eb84d8b166ab7f659bcf69f8



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12749 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:45:13 +00:00
Michael Jerris 4d643bccc1 Wed Mar 11 11:58:14 CDT 2009 Pekka Pessi <first.last@nokia.com>
* sofia-sip/su_config.h: include extern in SOFIAPUBVAR
  Ignore-this: 7cccd45776e8452a8e404aaf01eaeadf


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12748 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:44:33 +00:00
Michael Jerris 596a0b60cb Mon Mar 9 12:44:03 CDT 2009 Pekka Pessi <first.last@nokia.com>
* su_alloc: shorten race on _su_deinit()
  Ignore-this: 6d4e6edb434a96e66c9bb018a201a3c6
  
  Make home object unusable earlier during denitialization.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12745 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:42:53 +00:00
Michael Jerris 06dfd6b602 Mon Mar 9 12:32:13 CDT 2009 Pekka Pessi <first.last@nokia.com>
* nua: added nua_i_none to nua_event_name()
  Ignore-this: 5d262decadfc28b82ab7292330e20530


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12742 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:41:03 +00:00
Michael Jerris 3c9cb00a4b Thu Mar 5 13:09:53 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta.c: #include <sofia-sip/htable.h> here
  Ignore-this: bab8054edc65e3defbed6db325e1deba


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12740 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:39:08 +00:00
Michael Jerris 93aa2e4ac7 Thu Mar 5 13:08:22 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta.c: nta_leg_tag(leg, NULL) now always returns the tag (old or new)
  Ignore-this: f5a7d67ed90e2c284f6696d6b5b89326



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12739 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:38:33 +00:00
Michael Jerris 0bafa3b1cd Thu Mar 5 13:06:59 CST 2009 Pekka Pessi <first.last@nokia.com>
* run_test_nta: fixed bashism with exec
  Ignore-this: 6d034eb8fd66f6a903e3219589f62eef



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12738 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:37:43 +00:00
Michael Jerris 22dae2b9fa Thu Mar 5 13:21:25 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_sres_sip.c: use S2_CASE()
  Ignore-this: da194ea35fa98a73f3da3b4b5257aa8f



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12737 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:37:01 +00:00
Michael Jerris 277137cf8e Thu Mar 5 13:06:15 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nta: use S2_CASE()
  Ignore-this: c94d4219b0882f1343bcfc56f975ea48



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12736 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:36:03 +00:00
Michael Jerris 676d7c5b75 Thu Mar 5 13:04:56 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: use S2_CASE()
  Ignore-this: 85691a39065d7ad3da57f45fe87c1da



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12735 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:34:23 +00:00
Michael Jerris 70ddbdd6d6 Thu Mar 5 10:20:11 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: s2_setup_logs() now turns on transport logging, too
  Ignore-this: 4ad4dc1efaf76c34a46038586a00e084



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12732 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:32:08 +00:00
Brian West fe71e492c7 Thu Mar 5 10:19:35 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: using fail_unless_event() macro
  Ignore-this: b03dc7431e8fea9835322bd8f825a803



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12731 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-24 15:30:45 +00:00
Michael Jerris 51a8cb2827 Wed Mar 4 12:24:57 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta_incoming_magic(): if callback is NULL, return any magic



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12557 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 19:58:34 +00:00
Michael Jerris c4c67ac090 Wed Mar 4 12:22:52 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: add nta_outgoing_magic()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12556 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 19:57:32 +00:00
Michael Jerris 2a0b960efb Thu Mar 5 08:00:45 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: added check-based test program check_nta



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12554 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 19:55:00 +00:00
Michael Jerris 1bb6e48c63 Wed Mar 4 12:27:36 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: added nta_agent_tports()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12552 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 19:52:52 +00:00
Michael Jerris b4a57d3300 Wed Mar 4 12:27:19 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta.c: removed spurios SOFIAPUBFUNs



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12551 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 19:52:07 +00:00
Michael Jerris 2b572ee523 Wed Mar 4 13:35:37 CST 2009 Fabio Margarido <fabiomargarido AT gmail DOT com>
* msg: allow compact headers inside multipart payload



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12550 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-10 19:50:46 +00:00
Michael Jerris 4357c2aca4 Wed Mar 4 12:37:47 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua: moved contents of test_s2.[hc] to check_nua.[hc]
  Ignore-this: f53929b29092e2d62e661fc40397492e



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12422 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-04 20:41:38 +00:00
Michael Jerris 721612aa82 Wed Mar 4 12:28:12 CST 2009 Pekka Pessi <first.last@nokia.com>
* run_test_nta: run tests without named if named refuses to start



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12418 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-04 20:37:00 +00:00
Michael Jerris 3446ae280f Wed Mar 4 12:22:20 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: fix timer N3
  Ignore-this: 4018f3a32723692153389c2109b72296
  
  Try UDP instead of TCP if TCP server does not respond quick enough.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12417 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-04 20:35:51 +00:00
Mathieu Rene b342ff1b2a Revert 12400
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12406 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-04 14:21:51 +00:00
Michael Jerris eb218a9656 Tue Mar 3 12:23:35 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>
* su_uniqueid.c: srand() must be called per-thread on windows



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12400 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 22:02:55 +00:00
Michael Jerris 83e087e162 Tue Mar 3 12:18:30 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_session.c: more CANCEL timeout cases



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12399 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 22:01:25 +00:00
Michael Jerris 522b3c4858 Tue Mar 3 12:15:01 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua: check_nua now uses s2base.h and s2sip.h



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12398 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 22:00:56 +00:00
Michael Jerris 76f57d02bb Tue Mar 3 11:30:32 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: added test case for CANCELed INVITE timing out



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12397 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 22:00:18 +00:00
Michael Jerris 24c198c098 fix merge conflict
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:41:06 +00:00
Michael Jerris ba34225301 Tue Mar 3 07:47:19 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: calculate timer D correctly
  Ignore-this: f43d9dcc11fb6a19c3674a6da35ee7ec
  
  Timer D is either 32 seconds or 64 times T1, whichever is larger.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:26:13 +00:00
Michael Jerris 721735cd90 Tue Mar 3 10:56:34 CST 2009 Pekka Pessi <first.last@nokia.com>
* test_soa.c: ignore fgets() return value. really.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:24:01 +00:00
Michael Jerris 82a42fc678 Tue Mar 3 10:49:51 CST 2009 Pekka Pessi <first.last@nokia.com>
* test_nta.c: timer C now CANCELs INVITE transaction
  Ignore-this: 8de2e5747e7ae0e62e2d8ad9aeb0cbed
  
  408 response is not generated (unless CANCEL times out, too.)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12383 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:23:31 +00:00
Michael Jerris b38b9edd99 Tue Mar 3 10:47:40 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta_tag.c: fixed NTATAG_TIMER_C() documentation



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12382 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:23:03 +00:00
Michael Jerris 9cac599609 Tue Mar 3 10:47:00 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: timeout CANCELed INVITE transactions properly
  Ignore-this: 4e7fdc56065dba617352443a9310bb28
  
  Use timer D (instead of timer C) to timeout CANCELed INVITE transactions.
  
  Also, generate 408 Request Timeout to all forks that have not received a
  final response.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12381 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:22:35 +00:00
Michael Jerris 742d765b53 Tue Mar 3 10:40:57 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: nta_agent_set_params() now returns correct value for tport parameters set



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12380 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:22:01 +00:00
Michael Jerris 62fdae5055 Mon Mar 2 11:58:01 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta.c: use already-resolved transport for CANCEL/ACK to [3456]XX



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12379 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:21:26 +00:00
Michael Jerris 0862be8103 Thu Feb 26 16:28:28 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua/check_session.c: added test cases for REFER



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12377 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:20:55 +00:00
Michael Jerris b5ea56318d Thu Feb 26 15:39:37 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua/check_simple.c: removed extra debug logging, fixed 6.3.4 name



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12376 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:20:24 +00:00
Michael Jerris 97c72d0a46 Mon Mar 2 11:21:17 CST 2009 Pekka Pessi <first.last@nokia.com>
* sl_utils_print.c: propagate error from fwrite()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12375 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:19:58 +00:00
Michael Jerris 094de86372 Tue Mar 3 07:56:30 CST 2009 Pekka Pessi <first.last@nokia.com>
* tport.c: add TPTAG_LOG() and TPTAG_DUMP() to tport_get_params()
  
  Fixed return value from tport_set_params(), too.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12374 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-03 17:19:09 +00:00